6.4. Creating Guests with PXE
PXE guest installation requires a PXE server running on the same subnet as the guest virtual machines you wish to install. The method of accomplishing this depends on how the virtual machines are connected to the network. Contact Support if you require assistance setting up a PXE server.
virt-install
PXE installations require both the --network=bridge:installation
parameter, where installation
is the name of your bridge, and the --pxe
parameter.
reboot-timeout
to allow the guest to retry booting if no bootable device is found, like so:
# qemu-kvm -boot reboot-timeout=1000
Example 6.2. Fully-virtualized PXE installation with virt-install
# virt-install --hvm --connect qemu:///system \ --network=bridge:installation --pxe --graphics spice \ --name rhel6-machine --ram=756 --vcpus=4 \ --os-type=linux --os-variant=rhel6 \ --disk path=/var/lib/libvirt/images/rhel6-machine.img,size=10
--hvm
) guest can only be installed in a text-only environment if the --location
and --extra-args "console=console_type"
are provided instead of the --graphics spice
parameter.
Procedure 6.2. PXE installation with virt-manager
Select PXE
Select PXE as the installation method and follow the rest of the steps to configure the OS type, memory, CPU and storage settings.Figure 6.8. Selecting the installation method
Figure 6.9. Selecting the installation type
Figure 6.10. Specifying virtualized hardware details
Figure 6.11. Specifying storage details
Start the installation
The installation is ready to start.Figure 6.12. Finalizing virtual machine details