Created
May 24, 2020 12:58
-
-
Save marmarek/d8102e92848d545166d23adf8f6d9713 to your computer and use it in GitHub Desktop.
Set debian-10 vm to boot via OVMF in Qubes R4.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
noapic
should be added after grub-efi-amd64 installation otherwise debian complains that there is modified config