Add commands for importing a template
This commit is contained in:
parent
eef30f9cb0
commit
d2fde56318
1 changed files with 17 additions and 1 deletions
|
@ -22,8 +22,8 @@ Creating the VM
|
|||
virt-install --name rhel9 \
|
||||
--osinfo rhel9.1 \
|
||||
--boot uefi \
|
||||
--disk /var/lib/libvirt/rhel9.qcow2,size=20 \
|
||||
--cdrom /var/lib/libvirt/isos/rhel-baseos-9.1-x86_64-dvd.iso \
|
||||
--disk /var/lib/libvirt/rhel9.qcow2,size=20 \
|
||||
--network type=direct,source=enp2s0,source_mode=bridge \
|
||||
--graphics vnc \
|
||||
--console pty,target.type=virtio \
|
||||
|
@ -33,6 +33,22 @@ Creating the VM
|
|||
found for this example by running "virsh vncdisplay rhel9".
|
||||
|
||||
|
||||
Import a VM template
|
||||
|
||||
Import a template image with the following command. This makes the
|
||||
same assumptions as "Creating the VM" above.
|
||||
|
||||
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
|
||||
|
||||
|
||||
Tips
|
||||
|
||||
For a virtio network card on Windows machines, add "model=virtio" to
|
||||
|
|
Loading…
Reference in a new issue