Re: Virtualization platform choice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux