Hellow fellows i need help about regarding Xen Domain-U static ip address binding. I use Xen 3 on fedora core 8 all is working fine but problem is that when guest domain create it always find ip address by DHCP. I set static ip address in vm.cfg and currently no dhcp server is running on Domain-0, but i don''t know why it tries dhcp for domain-U. I test it on both bridge and routed mode but no success. Here below my vm.cfg file. kernel = "/boot/vmlinuz-2.6.21-2950.fc8xen" ramdisk = "/boot/initrd-2.6.21-2950.fc8xen-domU.img" memory = 128 name = "muzi" vif = [''ip=192.168.10.5 ] disk = [''tap:aio:/xen/root,sda1,w'', ''tap:aio:/xen/swap,sda2,w'', ''tap:aio:/xen/var,sda3,w''] root = "/dev/sda1 ro" on_reboot = ''restart'' on_crash = ''restart'' i mount root image and set ifcfg-eth0 manually # Xen Virtual Ethernet DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.10.5 NETMASK=255.255.255.0 GATEWAY=192.168.10.2 And when i do xm create -c vm.cfg it shows for eth0 , it shows for eth0 when vm booting Bringing up interface eth0: [OK] Determining IP information for eth0... failed.[FAILED] and when i check its ifcfg-eth0 file is changed :( # Xen Virtual Ethernet DEVICE=eth0 ONBOOT=yes BOOTPROTO=dhcp HWADDR=00:16:3e:3b:77:dc I have one solution to do it by rc.local but i want to proper fixing when booting not determine ip from dhcp. kindly give ur suggestions. -- Regards, Muzammel Asghar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Muzammel Asghar wrote:>Hellow fellows i need help about regarding Xen Domain-U static ip >address binding. I use Xen 3 on fedora core 8 all is working fine but >problem is that when guest domain create it always find ip address by >DHCP. I set static ip address in vm.cfg and currently no dhcp server is >running on Domain-0, but i don''t know why it tries dhcp for domain-U.Have you configured your guest to use static addressing ? I''m not quite sure what setting the IP address in the Xen config file does, but you need to configure your client in much the same way as you would a standalone machine. -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Hobson, on 12/05/2008 11:52 PM [GMT+500], wrote :> Muzammel Asghar wrote: >> Hellow fellows i need help about regarding Xen Domain-U static ip >> address binding. I use Xen 3 on fedora core 8 all is working fine but >> problem is that when guest domain create it always find ip address by >> DHCP. I set static ip address in vm.cfg and currently no dhcp server is >> running on Domain-0, but i don''t know why it tries dhcp for domain-U. > > Have you configured your guest to use static addressing ? > > I''m not quite sure what setting the IP address in the Xen config file > does, but you need to configure your client in much the same way as > you would a standalone machine. >Thanks for your reply yes i do a static ip configuration in ifcfg-eth0 file for host and also define ip in cfg file of vm. But still no success :( -- Regards, Muzammel Asghar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users