Here is my quick howto reference on PXE boot enabling for KVM guests under Fedora 9 using virt-manager.
(Having NetworkManager & network service disabled , host system obtains address via DHCP on its eth0)
--snip--
Setup:
# chkconfig network off
# chkconfig NetworkManager off
# service NetworkManager stop
# brctl addbr br0
# brctl addif br0
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
#BOOTPROTO=dhcp
HWADDR=yo:ur:ma:ac:aa:dd
ONBOOT=yes
BRIDGE=br0
# cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=bridge
# modprode tun
# ifup lo
# ifup eth0
# ifup br0
Make it persistent:
# cat /etc/rc.local
modprobe tun
ifup lo
ifup eth0
ifup br0
touch /var/lock/subsys/local
--snip--
I yet need to figure out how to make br0 come up first by using network service-script or a more simpler way to get this done. If any one else knows a better & more tested procedure then please share.
My sequence shared here might not be correct since I had to struggle for few minutes before I got this working for me. Thanks to Niranjan for providing pointers on how to get this solved in first place.
Thursday, July 17, 2008
Fedora 9, KVM GuestOS PXE boot
Posted by Kevin Verma at 12:51 PM
Subscribe to:
Post Comments (Atom)


1 comments:
I don't know why you use the manual 'ifup' commands - it all 'just works' on any Fedora box I use. It could be because you have 'TYPE=bridge' instead of 'TYPE=Bridge' - notice the uppercase 'B'.
FYI, this page describes the recommended networking setups for libvirt:
http://wiki.libvirt.org/page/Networking
Post a Comment