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

    Cant Boot Ubuntu 22.04 LTS after release update

    Scheduled Pinned Locked Moved Xen Orchestra
    13 Posts 4 Posters 4.9k Views 4 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.
    • stormiS
      stormi Vates 🪐 XCP-ng Team
      last edited by

      Was your VM installed as a PV guest instead of HVM?

      M 1 Reply Last reply
      Reply Quote 0
      • M
        Meth0d @stormi
        last edited by

        @stormi Yes its a PV VM

        1 Reply Last reply
        Reply Quote 0
        • stormiS
          stormi Vates 🪐 XCP-ng Team
          last edited by

          Then there are probably extra steps to do when the bootloader changes like probably happened in this upgrade.

          I'm not familiar with the steps myself, PV guests being not supported since XCP-ng 8.1 and only kept (for now) for compatibility with very old VMs.

          Why was this ubuntu installed as a PV guest in the first place?

          M 1 Reply Last reply
          Reply Quote 0
          • M
            Meth0d @stormi
            last edited by

            I am not sure why exactly, probably because the inital Install is quite old, i think its coming from 14.04. or 16. I will try to install grub on xvda and convert it. I was not aware that PV would become "suddenly" an issue 😉

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

              You should really leave PV as soon as possible, in terms of performance and security, HVM is better.

              M 1 Reply Last reply
              Reply Quote 0
              • M
                Meth0d @olivierlambert
                last edited by Meth0d

                I converted to PVHVM after using grub-install /dev/xvda successfully on Ubuntu 20.04 LTS and it boots just fine.

                Now if i do-release-upgrade to 22.04 LTS the VM hangs on GRUB "grub_disk_native_sectors".
                Am i missing something ?

                08d370e1-5ada-447b-836c-e2b03c4561af-image.png

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

                  Hmm that's weird. You could try to use a LiveCD to do a grub install (in a chroot) or use Grub rescue CD and force a rewrite of Grub.

                  To me, it's a pure Grub issue in this case.

                  M 1 Reply Last reply
                  Reply Quote 0
                  • M
                    Meth0d @olivierlambert
                    last edited by

                    As this is just a test restore of my live system i have a snapshot pre-release upgrade. Can i do something else besides using grub-install and update-grub ? I have found this while looking for the error: https://askubuntu.com/questions/1404066/executing-grub2-command-nativedisk-before-boot-for-huge-disks

                    But to me its unclear why its should be necessary to mess with the disk module all of a sudden.

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

                      I have no idea either. Probably a question to the Ubuntu I think, because I can't see any reason why it could be connected to HVM mode (which is close to the "metal" in terms of Grub behavior!)

                      M 1 Reply Last reply
                      Reply Quote 0
                      • M
                        Meth0d @olivierlambert
                        last edited by

                        @olivierlambert after fiddeling around with almost every advice including dpkg-reconfigure grub-pc and to re-enable OS Proper (which aparently was disabled between 20.04 and 22.04) the one thing that worked for me was to purge grub* and reinstall it.

                        So i still have no idear what was going on, but i have my VM booting now on 22.04 🙂
                        Thanks for all the idears.

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

                          Great news 🙂 Happy using HVM mode with a "free" 20/30% boost 😉

                          1 Reply Last reply
                          Reply Quote 0
                          • andrewperryA
                            andrewperry @Meth0d
                            last edited by

                            @Meth0d thanks for sharing your experience. Fortunately I was able to just hit "Convert to HVM" after my imported PV failed to reboot after upgrade from 20.04 to 22.04 - was all set to load a livecd etc too!

                            1 Reply Last reply
                            Reply Quote 0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            • First post
                              Last post