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

    Nested virtualization

    Scheduled Pinned Locked Moved XCP-ng
    9 Posts 3 Posters 73 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.
    • U Online
      User-cxs
      last edited by

      I was trying to install Docker on Windows, but when I got to the point where I needed to enable virtualisation, I couldn’t do it. Does anyone know why? Here’s what happened: ea1edfaa-c255-4f07-99a6-bd24ac0c14b1-image.jpeg b599d749-9dd4-4918-9aef-6bb68a841dba-image.jpegAnd I can't turn it on

      A M 2 Replies Last reply Reply Quote 0
      • A Online
        acebmxer @User-cxs
        last edited by

        @User-cxs

        Assuming you enabled nested virtualization on the xcp-ng host you also need to enabled in the vms bios settings for windows.

        1 Reply Last reply Reply Quote 0
        • M Online
          MajorP93 @User-cxs
          last edited by MajorP93

          @User-cxs Is there an error message when clicking on / hovering over the yellow warning symbol next to "Nested virtualization" on your Xen Orchestra screenshot?

          You need that feature for Docker desktop virtualization to work in your VM.

          Also: do you have PV drivers / guest utilities installed on your VM?

          U 1 Reply Last reply Reply Quote 0
          • U Online
            User-cxs
            last edited by

            I'm getting back to you. I've enabled ‘Nested virtualisation’, and I've also run the following command in PowerShell within the VM: "dism.exe /online /enable-feature /featurename:Microsoft-Hyper-V-All /all /norestart
            dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart" in a PowerShell session within the VM, but it still isn’t working. Is this normal? Is Docker not working on Windows under XCP-NG?

            M 1 Reply Last reply Reply Quote 0
            • M Online
              MajorP93 @User-cxs
              last edited by

              @User-cxs PV drivers / Xen Tools installed? Was the system rebooted cleanly after enabling nested virtualization/Hyper-V?

              1 Reply Last reply Reply Quote 0
              • U Online
                User-cxs @MajorP93
                last edited by

                @MajorP93 I’ve tested everything and restarted the system properly (nested virtualisation enabled, Xen Tools installed, Hyper-V features enabled, full restart), but Docker Desktop still isn’t working.

                Systeminfo displays:
                ‘A hypervisor has been detected’

                Hyper-V cannot therefore function fully within the virtual machine. It appears that nested virtualisation on XCP-ng (Xen) does not offer full support for Hyper-V, which prevents Docker Desktop from working.

                I therefore believe this is a limitation of Xen/XCP-ng, and not a configuration issue.a95e4301-4915-447e-bef4-fbc835a4229b-image.jpeg ca910eed-1c52-4cfb-a7b1-b9e9e171fe7e-image.jpeg56515e1e-6dfb-47ea-9cef-26ace35dc4a3-image.jpeg efe8c312-ecb6-4c22-8c6f-87c6cfb2a48e-image.jpeg

                M 1 Reply Last reply Reply Quote 0
                • M Online
                  MajorP93 @User-cxs
                  last edited by

                  @User-cxs I have one last idea:

                  • shutdown your VM
                  • disable nested virtualization for your VM via Xen Orchestra
                  • SSH login on your XCP-ng host (pool master)
                  • execute "xe vm-param-set uuid=<UUID> platform:exp-nested-hvm=true" (UUID should be the UUID of your VM)
                  • start your VM and try again

                  By following these steps you will use Xen parameter "exp-nested-hvm" instead of "nested-virt" on your VM. This may or may not make a difference.

                  If that does not change anything I am out of ideas.
                  Best regards

                  U 1 Reply Last reply Reply Quote 0
                  • U Online
                    User-cxs @MajorP93
                    last edited by

                    @MajorP93 I followed your steps exactly:

                    • Shutdown the VM
                    • Disabled nested virtualization in Xen Orchestra
                    • Enabled it again using CLI with:
                      xe vm-param-set uuid=<UUID> platform:exp-nested-hvm=true
                    • Started the VM again

                    However, Docker Desktop still shows:
                    "Virtualization support not detected"

                    At this point, it seems more like a limitation of nested virtualization with Xen/XCP-ng rather than a configuration issue.

                    M 1 Reply Last reply Reply Quote 0
                    • M Online
                      MajorP93 @User-cxs
                      last edited by

                      @olivierlambert Can you provide insights? Is nested virtualization as in running Hyper-V inside a XCP-ng VM expected to work?

                      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