Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 9. Network Booting with libvirt
Guest virtual machines can be booted with PXE enabled. PXE allows guest virtual machines to boot and load their configuration off the network itself. This section demonstrates some basic configuration steps to configure PXE guests with libvirt.
This section does not cover the creation of boot images or PXE servers. It is used to explain how to configure libvirt, in a private or bridged network, to boot a guest virtual machine with PXE booting enabled.
Warning
These procedures are provided only as an example. Ensure that you have sufficient backups before proceeding.
9.1. Preparing the Boot Server Link kopierenLink in die Zwischenablage kopiert!
Link kopierenLink in die Zwischenablage kopiert!
To perform the steps in this chapter you will need:
- A PXE Server (DHCP and TFTP) - This can be a libvirt internal server, manually-configured dhcpd and tftpd, dnsmasq, a server configured by Cobbler, or some other server.
- Boot images - for example, PXELINUX configured manually or by Cobbler.
9.1.1. Setting up a PXE Boot Server on a Private libvirt Network Link kopierenLink in die Zwischenablage kopiert!
Link kopierenLink in die Zwischenablage kopiert!
This example uses the default network. Perform the following steps:
Procedure 9.1. Configuring the PXE boot server
- Place the PXE boot images and configuration in
/var/lib/tftpboot
. - enter the following commands:
virsh net-destroy default virsh net-edit default
# virsh net-destroy default # virsh net-edit default
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Edit the
<ip>
element in the configuration file for the default network to include the appropriate address, network mask, DHCP address range, and boot file, where BOOT_FILENAME represents the file name you are using to boot the guest virtual machine.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run:
virsh net-start default
# virsh net-start default
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Boot the guest using PXE (refer to Section 9.2, “Booting a Guest Using PXE”).