Add notes about PXE booting and br0
This commit is contained in:
parent
b5a6ddbc22
commit
9d6fe8ea0f
1 changed files with 11 additions and 12 deletions
|
@ -33,20 +33,14 @@ Creating the VM
|
||||||
found for this example by running "virsh vncdisplay rhel9".
|
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
|
Import a template image by copying the template into place and
|
||||||
same assumptions as "Creating the VM" above.
|
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 \
|
PXE-boot a VM by replacing the "--cdrom /path/to/disc.iso" option
|
||||||
--osinfo rhel9.1 \
|
with "--pxe".
|
||||||
--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
|
|
||||||
|
|
||||||
|
|
||||||
Tips
|
Tips
|
||||||
|
@ -60,3 +54,8 @@ Tips
|
||||||
A list of supported operating systems can be found by running:
|
A list of supported operating systems can be found by running:
|
||||||
|
|
||||||
virt-install --osinfo list
|
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
|
||||||
|
|
Loading…
Reference in a new issue