[CentOS] Virtualization platform choice

Steve Thompson smt at vgersoft.com
Sun Mar 27 14:10:12 UTC 2011


On Sun, 27 Mar 2011, Nico Kadel-Garcia wrote:

> How did you get the PXE working?

I already had a PXE server for physical hosts, so I just did a 
virt-install with the --pxe switch, and it worked first time. The MAC 
address was pre-defined and known to the DHCP server. I installed both 
Linux and Windows guests with PXE.

> And do you have widgets for setting up the necessary bridged
> networking?

I edited the ifcfg-eth0 file on the host and added an ifcfg-br0, all by 
hand, and then rebooted. I didn't have to think about it again.

/etc/sysconfig/network-scripts/ifcfg-eth0:
 	DEVICE=eth0
 	HWADDR=xx:xx:xx:xx:xx:xx
 	ONBOOT=yes
 	BRIDGE=br0
 	NM_CONTROLLED=0

/etc/sysconfig/network-scripts/ifcfg-br0:
 	DEVICE=br0
 	TYPE=Bridge
 	BOOTPROTO=static
 	BROADCAST=<braddr>
 	IPADDR=<ipaddr>
 	NETMASK=<netmask>
 	NETWORK=<network>
 	ONBOOT=yes

For each guest, something like this was used:

     <interface type='bridge'>
       <mac address='52:54:00:1d:58:cf'/>
       <source bridge='br0'/>
       <model type='virtio'/>
     </interface>

Steve



More information about the CentOS mailing list