Installation guide

15.2. Boot ing a guest using PXE
This section demonstrates how to boot a guest virtual machine with PXE.
15.2.1. Using bridged net working
Pro ced u re 15.2. Bo o t in g a g u est u sin g PXE and brid g ed n et wo rkin g
1. Ensure bridging is enabled such that the PXE boot server is available on the network.
2. Boot a guest virtual machine with PXE booting enabled. You can use the vi rt-i nstal l
command to create a new virtual machine with PXE booting enabled, as shown in the
following example command:
virt-install --pxe --network bridge=breth0 --prompt
Alternatively, ensure that the guest network is configured to use your bridged network, and
that the XML guest configuration file has a <bo o t d ev= ' netwo rk' /> element inside the
<o s> element, as shown in the following example:
<os>
<type arch='x86_64' machine='rhel6.2.0'>hvm</type>
<boot dev='network'/>
<boot dev='hd'/>
</os>
<interface type='bridge'>
<mac address='52:54:00:5a:ad:cb'/>
<source bridge='breth0'/>
<target dev='vnet0'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
</interface>
15.2.2. Using a privat e libvirt net work
Pro ced u re 15.3. Using a privat e libvirt n et wo rk
1. Configure PXE booting on libvirt as shown in Section 15.1.1, “Setting up a PXE boot server
on a private libvirt network .
2. Boot a guest virtual machine using libvirt with PXE booting enabled. You can use the vi rt-
i nstal l command to create/install a new virtual machine using PXE:
virt-install --pxe --network network=default --prompt
Alternatively, ensure that the guest network is configured to use your bridged network, and that the
XML guest configuration file has a <bo o t d ev= ' netwo rk' /> element inside the <o s> element, as
shown in the following example:
<os>
<type arch='x86_64' machine='rhel6.2.0'>hvm</type>
<boot dev='network'/>
<boot dev='hd'/>
Chapt er 1 5. Net work boot ing wit h libvirt
119