[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] set static ip in config file


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: ma qiang <maqiang1984@xxxxxxxxx>
  • Date: Mon, 1 Feb 2010 15:40:46 +0800
  • Delivery-date: Sun, 31 Jan 2010 23:41:18 -0800
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.