Any suggestions on setting a vSwitch to allow a kvm guest to pxe install from an external boot server?
I’m trying to configure a vSwitch, in Fedora 20, so that I would be able to do a net-install, of a VM guest, from an external kickstart server.
Any suggestions on where I can find background/concept information on how the bridging network works?
If you’re using libvirt, you can’t do this in the virt-manager GUI, you have to edit the network XML directly, e.g. with
virsh net-edit <networkname>
You need to add a
<tftp> element to set up a TFTP server (if you don’t already have one), and add a
<bootp> element inside the
<dhcp> element of the configuration to tell clients about it.
For example, to run a TFTP server on your host at 192.168.122.1, with files served from
/tftpboot, and provide it to clients with a boot filename of
/pxelinux.0 you would change:
<ip address='192.168.122.1' netmask='255.255.255.0'> <dhcp> <range start='192.168.122.128' end='192.168.122.254'/> </dhcp> </ip>
<ip address='192.168.122.1' netmask='255.255.255.0'> <tftp root='/tftpboot'/> <dhcp> <range start='192.168.122.128' end='192.168.122.254'/> <bootp file="/pxelinux.0" server="192.168.122.1"/> </dhcp> </ip>
Make sure that you have placed the proper file in
/tftpboot is the default TFTP server directory; you can change it, but you will have to adjust your SELinux file contexts for your chosen directory if you do.)
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.