Running nested VMs in Fedora 26 KVM / QEMU on Hyper-V
-
Creating a Linux VM on Hyper-V is easy. Creating a nested VM inside your Linux VM running on Hyper-V... well, it's not going to work out of the box.
Here's how to do it: https://www.timothygruber.com/hyper-v-2/run-a-nested-vm-on-kvm-qemu-vm-in-hyper-v/
Why would you want to? In my case, there was a developer who needed to compile code on a special Linux VM, and immediately needs to test it inside a throw-away VM running in there.
Doing this on his own or another physical PC or other means was not an option.
-
@tim_g Yuck. That's why they pay you the big bucks, right?
-
@tim_g Yeah that looks like a pain to do. Nice explanation though, thought you did well. Liked the few articles you have up, keep them coming.
-
@tim_g said in Running nested VMs in Fedora 26 KVM / QEMU on Hyper-V:
Creating a Linux VM on Hyper-V is easy. Creating a nested VM inside your Linux VM running on Hyper-V... well, it's not going to work out of the box.
Here's how to do it: https://www.timothygruber.com/hyper-v-2/run-a-nested-vm-on-kvm-qemu-vm-in-hyper-v/
Why would you want to? In my case, there was a developer who needed to compile code on a special Linux VM, and immediately needs to test it inside a throw-away VM running in there.
Doing this on his own or another physical PC or other means was not an option.
Wouldn't this be a good case to use a LXC/LXD container and not have to mess with nested virtualization?
-
@romo said in Running nested VMs in Fedora 26 KVM / QEMU on Hyper-V:
@tim_g said in Running nested VMs in Fedora 26 KVM / QEMU on Hyper-V:
Creating a Linux VM on Hyper-V is easy. Creating a nested VM inside your Linux VM running on Hyper-V... well, it's not going to work out of the box.
Here's how to do it: https://www.timothygruber.com/hyper-v-2/run-a-nested-vm-on-kvm-qemu-vm-in-hyper-v/
Why would you want to? In my case, there was a developer who needed to compile code on a special Linux VM, and immediately needs to test it inside a throw-away VM running in there.
Doing this on his own or another physical PC or other means was not an option.
Wouldn't this be a good case to use a LXC/LXD container and not have to mess with nested virtualization?
No, the throw-away (nested) VMs have to be Windows images that are used with the product systems.
-
Out of curiosity, why could he not make the throw away VM on top of Hyper-V?
-
@reid-cooper said in Running nested VMs in Fedora 26 KVM / QEMU on Hyper-V:
Out of curiosity, why could he not make the throw away VM on top of Hyper-V?
He doesn't have Hyper-V, and we don't give users access to the Hyper-V Servers. No SCVMM, so no granular control over VMs and HyperV.
-
@tim_g said in Running nested VMs in Fedora 26 KVM / QEMU on Hyper-V:
@reid-cooper said in Running nested VMs in Fedora 26 KVM / QEMU on Hyper-V:
Out of curiosity, why could he not make the throw away VM on top of Hyper-V?
He doesn't have Hyper-V, and we don't give users access to the Hyper-V Servers. No SCVMM, so no granular control over VMs and HyperV.
Oh, I guess that I was confused.