[Fedora-xen] domU disregard static IP information at boot time
Costa Kavanides
turtlevelo at yahoo.com
Fri Sep 14 10:42:18 UTC 2007
My dom0 has kernel 2.6.20-2931.fc7xen whereas the
fully virtualised
domU has kernel 2.6.21-1.3194.fc7.
I wanted a static IP address for the domU thus I
specified it during
installation + in the xen config file.
Notwithstanding all my efforts to tell it that it has
to use a static IP
address, whenever domU boots it always look for a DHCP
server to get its
IP address from.
Even changing the lines in ifcfg-eth0 to define a
static IP address is not a solution. With next reboot
it still wants a DHCP server to provide the IP
address.
Changing ifcfg-eth0 + issuing an "service network
restart" works as long as there is no reboot. As soon
as I reboot the odd behaviour prevails.
Where may act to change this behaviour?
costa
-------------------------
domU xen config file
--------------------
import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 256
shadow_memory = 8
name = "Test_2_FC7"
vif = [ 'type=ioemu, ip=192.168.2.29,
mac=00:16:3e:00:00:11, bridge=xenbr0' ]
disk = [ \
'file:/home/XEN/images/FC7_disk_2.img,hda,r',
\
'phy:/dev/cdrom,hdb:cdrom,r', \
]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
device_model = '/usr/' + arch_libdir +
'/xen/bin/qemu-dm'
boot = "c"
sdl=1
vnc=0
stdvga=0
serial='pty'
usbdevice='tablet'
____________________________________________________________________________________
Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV.
http://tv.yahoo.com/
More information about the Fedora-xen
mailing list