From 9d6fe8ea0f63282eda8ed3783d173a3428d073e1 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 20 Oct 2022 13:00:36 +0100 Subject: [PATCH] Add notes about PXE booting and br0 --- docs/VirtInstall.txt | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/docs/VirtInstall.txt b/docs/VirtInstall.txt index 5b55750..e891ef6 100644 --- a/docs/VirtInstall.txt +++ b/docs/VirtInstall.txt @@ -33,20 +33,14 @@ Creating the VM found for this example by running "virsh vncdisplay rhel9". -Import a VM template +Alternative install options - Import a template image with the following command. This makes the - same assumptions as "Creating the VM" above. + Import a template image by copying the template into place and + replacing "--cdrom /path/to/disc.iso" with "--import". The file size + is not needed in the --disk option in this case. - virt-install --name rhel9.1 \ - --osinfo rhel9.1 \ - --boot uefi \ - --import \ - --disk /var/lib/libvirt/rhel9.qcow2 \ - --network type=direct,source=enp2s0,source_mode=bridge \ - --graphics vnc \ - --console pty,target.type=virtio \ - --autoconsole none + PXE-boot a VM by replacing the "--cdrom /path/to/disc.iso" option + with "--pxe". Tips @@ -60,3 +54,8 @@ Tips A list of supported operating systems can be found by running: virt-install --osinfo list + + If the host hypervisor has a bridged network set up already, such as + br0, replace the --network option with: + + --network bridge=br0