Skip to content

Instantly share code, notes, and snippets.

@marmarek
Created May 24, 2020 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marmarek/d8102e92848d545166d23adf8f6d9713 to your computer and use it in GitHub Desktop.
Save marmarek/d8102e92848d545166d23adf8f6d9713 to your computer and use it in GitHub Desktop.
Set debian-10 vm to boot via OVMF in Qubes R4.0
in TemplateVM/StandaloneVM:
fdisk -l /dev/xvda # verify xvda1 is "EFI system"
mkfs.vfat /dev/xvda1
mkdir /boot/efi
echo '/dev/xvda1 /boot/efi vfat defaults 0 0' >> /etc/fstab
mount /boot/efi
Add noapic to GRUB_CMDLINE_LINUX in /etc/default/grub
apt install grub-efi-amd64
grub-install --target=x86_64-efi --removable /dev/xvda
Installing for x86_64-efi platform.
Installation finished. No error reported.
in dom0:
qvm-prefs VMNAME kernel ''
qvm-prefs VMNAME virt_mode hvm
# to access ovmf/grub if needed for debugging
qvm-prefs VMNAME debug 1
qvm-features VMNAME uefi 1
@pietrushnic
Copy link

noapic should be added after grub-efi-amd64 installation otherwise debian complains that there is modified config

@marmarek
Copy link
Author

Or even in a new file in /etc/default/grub.d. I'd consider packaging it, but I need to verify interactions with other setups (especially - BIOS boot).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment