Assigning static ip in Xen guest domain.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Assigning static ip in Xen guest domain.

Gourab
Hellow guys i need help about regarding Xen Domain-U static ip address binding.I am engaged in a cloud project. I set static ip address in dom1.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 dom1.cfg file. kernel = "/boot/vmlinuz-2.6.21-2950.xen" ramdisk = "/boot/initrd-2.6.21-2950.xen_noSCSI-domU.img" memory = 128 name = "dom1" vif = ['ip=192.168.10.5' ] disk = ['tap:aio:/xen/root,sda1,w'] root = "/dev/sda1 ro" 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 .bash_profile but i want to proper fixing when booting not determine ip from dhcp. kindly give ur suggestions. ------------- regards, Gourab.
Loading...