Wednesday, October 19, 2011

Default DHCP on xen

Xen has its own DHCP server which uses virbr0 bridge,

For DHCP server to be ready, you need to make sure that libvirtd service is running.

To use any VM as dhcp client on Xen :

In the vm.cfg add the below entries :
========================
dhcp = "dhcp"
vif = ['bridge=virbr0,mac=00:16:3E:76:D6:7D,type=netfront']


mac is the mac address of eth0 configured in Virtual Machine.

Always hardcode the mac address by defining it in the
/etc/sysconfig/network/ifcfg-eth0 script in the VM machine

The line would be :

HWADDR=00:16:3E:76:D6:7D
BOOTPROTO=dhcp













No comments:

Post a Comment