Gentoo - Failed to boot with Xen
-
@olivierlambert So I sent now an email to the mailing list.
Just one question on my mind. If I am using a gentoo 64bits no multilib, can I run a Windows 11 with some 32 bits applications ?
-
I think that should work, yes
-
How are you building your kernel? This looks like either LVM is not available a boot time or encryption is gettting in the way. It's been too long ago that I build systems with root on LVM.
Have you tried it without encryption? This seems discussion seems to tough upon many possible issues; your error message alone is not enough to be more specific.
Gentoo Forum -
@AndreS Like how the gentoo wiki recommend:
https://wiki.gentoo.org/wiki/Xen
In few words, the wiki explained now, Xen can use the same kernel as the system for Xen. So normally Xen have the lvm and dmcrypt support.
But I agree with you, it look like Xen don't recognize the encrypted partition.
Even Xen use the gentoo-sources kernel, do you think I need to configure something more else ?
-
The wiki only mentions that IF you use LVM how to address it in the grub config. Encryption is not even mentioned. Note that this really makes the setup much more complicated. As far as I know a plain vanilla kernel (or gentoo-sources kernel) does not have LVM enabled by default. You are trying to troubleshoot a setup that is not exactly mentioned in the wiki (only referenced in the grub setup). The Gentoo liveCD kernel has everything you can think of enabled and uses (I think) initramfs.
I would either start with a more simple scheme like building it on top of a ext4/xfs/whatever root filesystem and maybe experiment with the ecrypted/LVM version inside a VM unless you can find a guide/wiki that describes all three options: Xen dom0 on an encrypted LVM volume.
Maybe you can start here or here. Advise is to get Gentoo up and running before you build a Xen enabled kernel; that way you have first of all a fallback scenario (your system will boot and you dont't have to go through the chroot thing everytime) and you separate things to make troubleshooting easier. Good luck!
-
@AndreS yeah I tried to see what configuration I need for Xen, but to be honest the documentation is very poor about that.
But I need encryption. I will pursue my investigations.
I emailed the xen mail list, but actually I don't have any answer
The documentation you linked me , I know already all about that , because WITHOUT xen, my system boot properly my encrypted system with LVM
Definitely the problem come from Xen unable to boot the partition, it's only xen
-
@Fulgurance What did you base the Xen kernel config on? Did you start with the working kernel config and added the Xen requirements? In that case I believe you indeed need to reach out out the XEN team to understand what the issue is.
You could try to start first with LVM and add XEN (leave the encryption out) or with encryption and XEN (leave LVM out) to see if it is one of the two that is causing the issue.
-
@AndreS Exactly what I did, I started with the working kernel config and added the Xen requirements
-
To be honest it's a bit frustrating, I wrote to the gentoo mail list, normal and dedicated xen mail list, to the xen forum mail list and support. No one replied to me. It's like the Xen providers don't really now how to use it
I think I will try to ask the Qubes OS support
-
@Fulgurance Good luck!
From you response I could not see if you tried with Xen config only first (or LVM first) instead of trying both at the same time.
This could help you narrow done the problem area. Remember you are trying to add Xen, LVM AND encrypted root at the same time. -
@AndreS I mentionned it already but I can repeat again. My system is already installed in 3 partitions: /boot, /boot/efi and the last one is encrypted, inside 2 LVM volumes, one for swap and and the other one as root.
I can't try just xen without LVM and dmcrypt, because my system is already installed.
And no, I am not trying to add 3 in one, without Xen, my system work already with LVM and dmcrypt