Assuming you have a DHCP server on the local net, maybe ip tables in the dom0 is blocking the dhcp traffic?
Did you configure xend to do bridged or nat'd? Default is bridged.
-Ross
----- Original Message ----- From: centos-virt-bounces@centos.org centos-virt-bounces@centos.org To: centos-virt@centos.org centos-virt@centos.org Sent: Sun Mar 23 18:31:15 2008 Subject: Re: [CentOS-virt] DHCP for Xen VMs
Ross S. W. Walker wrote on Thu, 20 Mar 2008 11:59:17 -0400:
Configure the Xen VM to use the xen managed network xenbr0 instead of the libvirt managed network virbr0.
Unfortunately, doesn't work for me. If I change to xenbr0 the VM doesn't get an IP address. And as I'm having problems with the keymap I can't even look at the logs at the moment. If I set an IP address in the same subnet manually it works, but dhclient doesn't set one. Any ideas?
Kai
Ross S. W. Walker wrote on Sun, 23 Mar 2008 19:29:47 -0400:
Assuming you have a DHCP server on the local net, maybe ip tables in the dom0
is blocking the dhcp traffic?
Did you configure xend to do bridged or nat'd? Default is bridged.
Well, networking *does* work if I set an IP address manually and as I can reach it then from other machines it must be bridged. The problem is that I don't get an IP address when using dhcp :-( I wasn't aware that iptables is on and preconfigured in a domU that got setup with CentOS 5.1 virt-manager. Unfortunately, shutting it off doesn't solve the problem. Logging shows that the server gets a request from that MAC address and offers an IP address, but the client doesn't receive it. There's no firewall between the two, but the offer doesn't get back to the client somehow.
Kai