uefi_test_vm
Table of Contents
UEFI Virtual Machine for testing
This instruction lets you create a UEFI VM for testing with an external USB-drive on a Fedora host.
Preperation
- Install tools:
dnf install virt-install virt-viewer libvirt
- Add yourself to the
libvirt
group. - Lookup the USB drive device, for example
/dev/sda
.
The UEFI virtual machine
- Create the VM with UEFI support:
virt-install --connect qemu:///system --name uefi \ --vcpus 4 \ --memory 2048 \ --disk /dev/sda,bus=usb,removable=true \ --boot uefi,menu=on \ --os-variant rhl7 \ --noautoconsole
- Open console:
virt-viewer --connect qemu:///system uefi
- Force off:
virsh --connect qemu:///system destroy uefi
- Remove VM:
virsh --connect qemu:///system undefine --nvram uefi
uefi_test_vm.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1