Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


uefi_test_vm

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: 2017/07/12 13:52 by admin