ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Anyone familiar with KVM nested virtualization?

    IT Discussion
    3
    7
    545
    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.
    • ObsolesceO
      Obsolesce
      last edited by

      I have Fedora 26 running as a guest on Hyper-V 2016.

      I'm wondering if it's possible to still enable nested virtualization in my Fedora 26 VM? Everything I've come across was if Fedora was running on the bare-metal, and some configurations I come across doesn't exist on my installation. I'm thinking it's because of that.

      I can't figure it out.

      black3dynamiteB 1 Reply Last reply Reply Quote 0
      • black3dynamiteB
        black3dynamite @Obsolesce
        last edited by black3dynamite

        @tim_g

        KVM only supports hardware virtualization. So should be able to take advantage of using paravirtualization if you use Xen instead.

        I found a couple of sites about enabling nested virtualization in KVM.
        When Fedora is running on bare-metal
        https://fedoraproject.org/wiki/How_to_enable_nested_virtualization_in_KVM

        If you want to run Hyper-V has a KVM guest
        https://ladipro.wordpress.com/2017/02/24/running-hyperv-in-kvm-guest/

        ObsolesceO 1 Reply Last reply Reply Quote 0
        • ObsolesceO
          Obsolesce @black3dynamite
          last edited by

          @black3dynamite said in Anyone familiar with KVM nested virtualization?:

          @tim_g

          KVM only supports hardware virtualization. So should be able to take advantage of using paravirtualization if you use Xen instead.

          I found a couple of sites about enabling nested virtualization in KVM.
          When Fedora is running on bare-metal
          https://fedoraproject.org/wiki/How_to_enable_nested_virtualization_in_KVM

          If you want to run Hyper-V has a KVM guest
          https://ladipro.wordpress.com/2017/02/24/running-hyperv-in-kvm-guest/

          So if I understand correctly, KVM has to be the one on bare-metal in any case?

          black3dynamiteB scottalanmillerS 2 Replies Last reply Reply Quote 0
          • black3dynamiteB
            black3dynamite @Obsolesce
            last edited by

            @tim_g Yes.

            ObsolesceO 1 Reply Last reply Reply Quote 0
            • ObsolesceO
              Obsolesce @black3dynamite
              last edited by

              @black3dynamite said in Anyone familiar with KVM nested virtualization?:

              @tim_g Yes.

              Okay, that explains a lot.

              Thanks for the help and clarification (and links)!

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @Obsolesce
                last edited by

                @tim_g said in Anyone familiar with KVM nested virtualization?:

                So if I understand correctly, KVM has to be the one on bare-metal in any case?

                No, that's always a factor of the underlying hypervisor, not of the one on top. All hypervisors support BEING nested. But only some hypervisors allow for nesting on top of themselves. KVM will work on top of ESXi for sure, and definitely not on older Hyper-V. Not sure about 2016.

                1 Reply Last reply Reply Quote 1
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  What all hypervisors that are not Xen need, is hardware from the CPU to do their virtualization. So what they need from their underlying hypervisor is for the entire CPU, not just part of it, to be virtualized. The problem with most hypervisors is that the "pc appearance" that they create on which an OS is installed is a less capable processor than the real one that the HV is running on. So while the HV is getting virtualization enabled hardware, the OS normally is not. But if the HV passes that through, then the secondary HV will be fully capable as well.

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