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

    Red Hat Virtualization (RHV or RHVH) installation not booting

    Scheduled Pinned Locked Moved Compute
    5 Posts 2 Posters 1.9k Views 1 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.
    • W Offline
      Wugutech
      last edited by Wugutech

      Red Hat Virtualization (RHVH) installation not booting on XCP-NG

      If I create it on XCP-NG, it always failed while booting
      I tried BIOS, UEFI, other install media, rhel8 template,

      the boot process shows:
      Failed to mount /sysroot
      hostname also does not apply correctly

      94c9c55e-7edf-4098-83a7-971c81e92c7d-image.png

      it says:

      mount: /sysroot: cannot mount /dev/mapper/rhvh-root read only.
      kernel: XFS (dm-3): log mount failed
      systemd[1]: sysroot.mount: Mount process exited, code=existed status=32
      systemd[1]: sysroot.mount: Failed with result 'exit-code'.
      systemd[1]: Failed to mount /sysroot.
      

      3f014bc3-ebfa-4b5f-832b-f99cd6e065ce-image.png

      • I tried this on VirtualBox, it just boot to the OS normally, so I presume may be it has something to do with the hypervisor,
      • including hostname applied correctly,
      • and also, in virtualbox, the boot menu shows RHVH -4.4.9.2 and so on
      • while with XCP-NG VM, the boot menu shows Red Hat Enterprise Linux (kernel version)
      • virtualbox use sda while XCP use xvda (so may be because of this?)

      234920cf-ba3b-4880-8eff-8daea8ec4a3d-image.png

      eb76d59b-d58f-4710-a251-3bce71aabaf6-image.png

      Thanks!

      W 1 Reply Last reply Reply Quote 0
      • W Offline
        Wugutech @Wugutech
        last edited by

        😀 😀 😀 😀 😀

        1 Reply Last reply Reply Quote 0
        • DanpD Offline
          Danp Pro Support Team
          last edited by

          Apparently it's a known issue. The details are here, but you need a login to view the entire KB article.

          W 1 Reply Last reply Reply Quote 0
          • W Offline
            Wugutech @Danp
            last edited by

            @danp

            thanks for replying!

            W 1 Reply Last reply Reply Quote 0
            • W Offline
              Wugutech @Wugutech
              last edited by Wugutech

              https://access.redhat.com/solutions/5347091

              System fails to mount filesystem on multipath partition during boot time in RHEL8
              Solution Verified - Updated May 31 2021 at 2:25 PM - English
              Environment

              Red Hat Enterprise Linux 8
                  dracut-049-27.git20190906.el8.x86_64
              

              Issue

              System fails to mount filesystem created on multipath partition during boot time in RHEL8.
              

              Raw

              [ 235.191955] testsystem systemd[1]: Mounting /sysroot...
              [ 235.398136] testsystem kernel: SGI XFS with ACLs, security attributes, no debug enabled
              [ 235.398913] testsystem mount[2922]: mount: /sysroot: /dev/sdb4 already mounted or mount point busy.
              [ 235.399207] testsystem systemd[1]: sysroot.mount: Mount process exited, code=exited status=32
              [ 235.399259] testsystem systemd[1]: sysroot.mount: Failed with result 'exit-code'.
              [ 235.399480] testsystem systemd[1]: Failed to mount /sysroot.

              Resolution

              Upgrade dracut package to dracut-049-135.git20210121.el8 as per RHBA-2021:1661
              As a workaround, rebuild initramfs with /lib/udev/rules.d/11-dm-parts.rules.
              

              Raw

              dracut -f -v --include /lib/udev/rules.d/11-dm-parts.rules /lib/udev/rules.d/11-dm-parts.rules

              Or create /etc/dracut.conf.d/part.conf with below lines and rebuild initramfs image.
              #vi /etc/dracut.conf.d/part.conf
              install_items+=/lib/udev/rules.d/11-dm-parts.rules

              Root Cause

              dracut doesn't install /lib/udev/rules.d/11-dm-parts.rules, which is what changes the link priority for kpartx partition devices, which should make /dev/disk/by-uuid point to multipath devices instead of the scsi path devices.
              

              Diagnostic Steps

              Check boot logs and verify whether root filesystem mounted using sdX device or mpath device.
              

              Raw

              [ 235.185721] testsystem systemd[1]: Starting File System Check on /dev/disk/by-uuid/3a9fc23b-e95d-44a2-b95c-9651799f8c77...
              [ 235.190597] testsystem systemd-fsck[2920]: fsck.none doesn't exist, not checking file system on /dev/disk/by-uuid/3a9fc23b-e95d-44a2-b95c-9651799f8c77.
              [ 235.191192] testsystem systemd[1]: Started File System Check on /dev/disk/by-uuid/3a9fc23b-e95d-44a2-b95c-9651799f8c77.
              [ 235.191955] testsystem systemd[1]: Mounting /sysroot...
              [ 235.398913] testsystem mount[2922]: mount: /sysroot: /dev/sdb4 already mounted or mount point busy.

              Verify /lib/udev/rules.d/11-dm-parts.rules rule available in initramfs image.
              

              Raw

              lsinitrd initramfs-4.18.0-193.el8.x86_64.img |grep dm-parts |wc -l

              0

              Rebuild initramfs image with /usr/lib/udev/rules.d/11-dm-parts.rules.
              

              Raw

              #lsinitrd initramfs-4.18.0-193.el8.x86_64.img |grep dm-parts
              Arguments: -f -v -a 'multipath' --include '/usr/lib/udev/rules.d/11-dm-parts.rules' '/usr/lib/udev/rules.d/11-dm-parts.rules'
              -rw-r--r-- 1 root root 1442 Dec 17 2019 usr/lib/udev/rules.d/11-dm-parts.rules

              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