I had some troubles booting, and then using, Fedora from the Live USB, but I figured out how to fix the bootloader. Here’s the steps in case anyone finds this useful:
- On the old PC, start a terminal in an AppVM
git clone https://github.com/livecd-tools/livecd-tools.git
sudo make install
- Download a Fedora ISO image
- Plug a spare USB key into a USB port - ALL DATA ON IT WILL BE ERASED BELOW
-
sudo livecd-iso-to-disk --efi --format ext4 --nomac ~/Downloads/Fedora-Workstation-Live-x86_64-35-1.2.iso /dev/xvdi
- adjust the name of your.iso
file and USB device as appropriate - Detach the USB device from the AppVM
Now, on the new PC:
- Ensure that UEFI boot is enabled and the graphics card is removed/disabled
- Remove the USB key from the old PC and plug it into the new PC
- Boot into the USB key
- Choose the option to Start Fedora-Workstation-Live (or whatever)
- Wait for it to boot and then choose “Try Fedora”
- Press Alt+F2
- Type
gnome-terminal
sudo bash
- Mount the Qubes installation as described in the documentation here. In my case I had to type
crypsetup luksOpen /dev/nvme0n1p7 qubes
and thenmount /dev/qubes_dom0/root /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sysfs /mnt/sys
mount -t efivarfs efivarfs /mnt/sys/firmware/efi/efivars
mount -o bind /dev /mnt/dev
mount -t tmpfs tmpfs /mnt/run
cat /mnt/etc/fstab
- Use
blkid --uuid
to find the /boot device whose UUID is given in the above file mount /dev/nvme0n1p6 /mnt/boot
- Use
fdisk
to find the ESP mount /dev/nvme0n1p1 /mnt/boot/EFI
chroot /mnt
-
grub2-install --efi-directory=/boot/efi
. This will probably fail with an error about modinfo.sh not existing. If so, you’ll need to install the relevant package usingdnf
. This is a bit tricky because Qubes’ dnf config doesn’t work in a chroot. -
grub2-install --efi-directory=/boot/efi
. This will probably fail with an error about efibootmgr not existing. If so, you’ll need to install the relevant package usingdnf
. This is a bit tricky because Qubes’ dnf config doesn’t work in a chroot. -
grub2-install --efi-directory=/boot/efi
. This should finally work with no errors now! -
exit
the chroot - Reboot
- Select Qubes in the boot menu
However, now I am again faced with a blank screen, and I can’t progress any further. Any suggestions?