XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Gentoo - Failed to boot with Xen

    Scheduled Pinned Locked Moved Compute
    14 Posts 3 Posters 1.2k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • olivierlambertO Online
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      Well, there's mainly people around XCP-ng here, so less people able to assist on plain Xen (I'd love to have a bigger vanilla Xen community here, but it's not easy).

      Have you tried on xen users mailing list?

      F 1 Reply Last reply Reply Quote 0
      • F Offline
        Fulgurance @olivierlambert
        last edited by

        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 ?

        1 Reply Last reply Reply Quote 0
        • olivierlambertO Online
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          I think that should work, yes 🙂

          1 Reply Last reply Reply Quote 0
          • A Offline
            AndreS
            last edited by

            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

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              Fulgurance @AndreS
              last edited by

              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 ?

              1 Reply Last reply Reply Quote 0
              • A Offline
                AndreS
                last edited by

                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!

                F 1 Reply Last reply Reply Quote 0
                • F Offline
                  Fulgurance @AndreS
                  last edited by Fulgurance

                  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

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    AndreS @Fulgurance
                    last edited by

                    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.

                    F 1 Reply Last reply Reply Quote 0
                    • F Offline
                      Fulgurance @AndreS
                      last edited by

                      AndreS Exactly what I did, I started with the working kernel config and added the Xen requirements

                      F 1 Reply Last reply Reply Quote 0
                      • F Offline
                        Fulgurance @Fulgurance
                        last edited by

                        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

                        A 1 Reply Last reply Reply Quote 0
                        • A Offline
                          AndreS @Fulgurance
                          last edited by

                          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.

                          F 1 Reply Last reply Reply Quote 0
                          • F Offline
                            Fulgurance @AndreS
                            last edited by

                            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

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post