WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] set static ip in config file

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] set static ip in config file
From: ma qiang <maqiang1984@xxxxxxxxx>
Date: Mon, 1 Feb 2010 15:40:46 +0800
Delivery-date: Sun, 31 Jan 2010 23:41:18 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ciopWYtsXQj6+lXEBA+M7QfiSpb7mhGmOa/sorrPvf0=; b=Zy8pmrLUGIrP9ylyL7kfE46CRRoWx0vltBPy7WkRWKsVSnYLJ5rP0uv9Yd08yyZ1j0 JugwZZ4qQLDuoRH9b687sflNIcYzIupOfQh/cUlnNT1gOpXKcfkBQEpRBnxP7hJ2vH+M MpuQ1SgXKIai6gr6wgjBL0aKe7uS9ZzhxcZaE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=G1B/x2XQuGCHmIsj4AKtitAQgZov+bdarEI903b6InbGuN27NR2Dnh/aAZix/RYA5P igC3tdJDG+Ru4Bj49Uiv6rqmdx3AAkFLUM6iSzNgK61zTbyAm6dmWwK4DlgMxpSuEAg4 WVUjV+EDT4ruZJw9FpDocdQsLNfMMRj8SWeg0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi all,
    I have create a centos in domU using "xm create test.cfg". The
content of test.cfg print as below:

kernel = "/usr/lib/xen/boot/hvmloader"
builder = 'hvm'
name = "test"
memory = 512
disk = [ 'file:/root/xen/ubuntu-9.10-desktop-i386.iso,hdc:cdrom,r',
'file:/srv/xen/mailserver.img,hda,w' ]
boot = "d"
vif = ['ip=192.168.1.100,bridge=eth1']
dhcp = "off"
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'
sdl=0
vnc=1
vnclisten="0.0.0.0"
vncpasswd='password'
stdvga=0
serial='pty'
usbdevice='tablet'

I set static ip==192.168.1.100 in vif, but the centos in domU still
use the dhcp.  To be noted here, I can set static ip in centos when I
connect to the console of domU.

Who can tell me why and how to set static ip in config file.
Thanks a lot.

Best Wishes!
Qiang Ma

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] set static ip in config file, ma qiang <=