It used to be trivial to nest KVM/QEMU vm's. Then it got harder, but still relatively easy a few years ago, as one had to remember to set `/sys/module/kvm_intel/parameters/nested` in the VM.
However, now I can't seem to figure it out (my test server computers are 20.04 development already), as things seem to have changed yet again and `/sys/module/kvm_intel/parameters/nested` doesn't even exist on my VM.
However, I observe that the VM's default CPU has changed, and seems to now be pathetic ("kvm-ok" says no). So I changed it to "host-passthrough" and now everything seems to be fine (("kvm-ok" says yes) and:
Code:
doug@serv-ff:~$ cat /sys/module/kvm_intel/parameters/nested
Y
Although I have yet to actually try to install a VM within that VM.
By the way, I used "virsh edit" and changed this:
Code:
<cpu mode='custom' match='exact' check='partial'>
<model fallback='allow'>Westmere-IBRS</model>
</cpu>
to this:
Code:
<cpu mode='host-passthrough' check='none'/>
EDIT: I installed a 20.04 server VM quest on my 20.04 server VM quest on my 20.04 server host.
Bookmarks