Since I spent a little time putting the pieces together I will share my experience based on CentOS 5.5. Basically it all went es expected, I only had some trouble to get the XEN PV VMs into the regular network via bridging versus the NAT which is the default that comes with CentOS.
- Configure your VMware VM to allow promiscuous networking:
- Allow promiscuous networking on the vSwitch
- Add this line of manual configuration to the Extended Configuration of the VM:
- Install regular CentOS and add the group "Virtualization":
yum groupinstall Virtualization
- Make sure that there is enough free disk space in /var/lib/xen/images to store your virtual disk images.
- Edit /etc/libvirt/qemu/networks/default.xml to look like this:
<network>lan is the name of our virtual bridge, keep your original UUID in place.
<bridge name='lan' stp='on' forwardDelay='0' />
- Edit /etc/xen/xend-config.sxp:
- change the network-script line to look like this:
this disables the network setup by XEN because we let CentOS do it instead.
- change the vif-script line to look like this:
(vif-script 'vif-bridge bridge=arc_int')
this configures XEN to also use our virtual bridge
- Edit the CentOS network-scripts for bridging:
- Create /etc/sysconfig/network-scripts/ifcfg-lan like this:
- Edit /etc/sysconfig/network-scripts/ifcfg-eth0 like this:
DEVICE=eth0Leave the MAC address as it was to match your NIC.
- Reboot system to test if network configuration is correct
The only drawback of this setup is the the low performance of the XEN VM, but for testing purposes and to develop scripts and automation this does not matter and I was happy to skip ordering and setting up a hardware server just to test a few scripts.