-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Sat, Apr 30, 2016 at 06:49:37PM -0700, Martin Páleník wrote:
> My goal is to have a dual-boot of Qubes OS 3.1 and Fedora 23 Workstation
> (respin). This guy
> <
https://micahflee.com/2014/04/dual-booting-qubes-and-ubuntu-with-encrypted-disks/>
> got it working on Ubuntu, but he installed Ubuntu first, while I installed
> Qubes first. The last resort would be to follow him and reinstall from
> scratch, but I want to learn something.
>
> What have I tried:
>
> - installed Qubes OS 3.1 (OK)
> - updated Qubes OS 3.1 dom0 and Fedora23 template (OK)
> - installed the latest Fedora 23 Workstation respin (OK, but reported some
> GRUB2 bootloader failure; nevertheless Fedora booted fine)
> - updated the latest Fedora 23 Workstation (OK, there were no updates)
> - tried to boot Qubes (fail, no menuentry in GRUB2 boot menu yet)
> - created a menuentry for Qubes (OK, see bellow)
> - tried to boot Qubes (fail, see screenshot
> <
https://drive.google.com/open?id=1EWjuC3evDB7Duq4dF20drVO0Fa6m6fSAvA>)
> - googled this workaround
> <
https://ask.fedoraproject.org/en/question/79005/xen-on-fedora-23-boot-issue/> and
> installed the package
> - I get thgrough the error message now, but after a few seconds the system
> reboots itself and does that infinitely
>
> How I added the menuitem:
>
> I booted into Fedora and went to the `/etc/grub.d/` folder, and edited the
> `40_custom` file. In there i pasted everything between the xen section of
> the /boot/grub2/grub.cfg file on the qubes boot partition, into the end of
> that `40_custom` file on Fedora. Then I executed the following command
> under root
>
> `grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg`
>
> and the qubes menuitems got generated into the `grub.cfg` and became
> visible in the boot menu. I can provide the contents of grub.cfg later, in
> the meantime I'd like to know what might got wrong and how to fix it.
>
> Notable information:
>
> - Qubes boots from GPT on Legacy BIOS (with 2MB biosboot partition)
> - Fedora boots from GPT on UEFI (with EFI partition)
This is main problem - you're trying to boot legacy system (Qubes here)
from UEFI grub (Fedora). You need to choose one of them - either boot
both in legacy mode, or both in UEFI mode (or change bios settings at
each boot...). So, one option is to setup Fedora in legacy mode - then
putting Qubes legacy boot entry in 40_custom (as you've done) should be
enough.
It is also possible to boot Qubes from UEFI, but it requires different
configuration. And in most cases Grub doesn't make it easier... Anyway
you can try:
1. Locate xen-4.6.0.efi - it should be installed into /boot/efi/EFI/qubes/.
Place it in your EFI System Partition (if /boot/efi isn't there
already).
2. Create xen.cfg in the same directory with a content like this:
[global]
default=4.1.13-8.pvops.qubes.x86_64
[4.1.13-8.pvops.qubes.x86_64]
options=loglvl=all
kernel=vmlinuz-4.1.13-8.pvops.qubes.x86_64 root=/dev/dm-2
vconsole.font=latarcyrheb-sun16
rd.lvm.lv=qubes_dom0/root
ramdisk=initramfs-4.1.13-8.pvops.qubes.x86_64.img
Adjust kernel version, root= and
rd.lvm.lv= parameters.
3. Make sure the kernel and initramfs files are in the same directory as
xen.cfg (most likely you'll need to copy them from /boot). It is
critical to have them on EFI System Partition (even if Grub can load
them from other places).
4. Add grub entry:
menuentry 'Qubes UEFI' {
chainloader /EFI/qubes/xen-4.6.0.efi
}
Look here for related troubleshooting:
https://www.qubes-os.org/doc/uefi-troubleshooting/
https://github.com/QubesOS/qubes-issues/issues/794
- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCAAGBQJXLmtcAAoJENuP0xzK19cseYQH+wfEKT910kp5dOL7gOy23RMf
OUb3sPXks62ARLlzNDQ87INcykcnIZU5qzdgWtYrohI+7nUguGrfSroZHCpwxzlF
BSlMWNOl2/nj5QxYjI5BjHqREJ0R5iO97NP+sqi10S5wI+MmStrdJ+sT9ojnQe9C
6jqAht1+9UbEGXo7+7vB/Zl0LhdEMX65Z3phwRGCsspr9UJEN4yINaKGPPfdVG5C
4SXeJxMWMtmkz4LwvcvB2lwrge6S3JGp3BFwcutk/YjOa53zXTFhVYdsnxXjbLpG
sPV7dN2HobOzVPMgzyM714njKTeqll8suOT18HHWh7RXR1B6SUJtsASNMtBKcZA=
=qbmu
-----END PGP SIGNATURE-----