Nested KVM2013/07/03 |
Configure nested KVM. It's possible to install KVM and create virtual machines as nested KVM on KVM host.
|
|
[1] | Enable nested function first. |
[root@dlp ~]#
vi /etc/modprobe.d/kvm-nested.conf # create new
options kvm_intel nested=1
modprobe -r kvm_intel # unload [root@dlp ~]# modprobe kvm_intel # load again [root@dlp ~]# cat /sys/module/kvm_intel/parameters/nested Y # enabled |
[2] | Make sure the CPU model on your computer. |
[root@dlp ~]# virsh capabilities | egrep "/model|/vendor" <model>SandyBridge</model> # CPU model <vendor>Intel</vendor> # CPU vendor <model>none</model> <model>dac</model> |
[3] | Edit the configuration of virtual machine for nested. It's OK to configure nested KVM and you can create virtual machines on the virtual machine nested. |
[root@dlp ~]#
virsh edit www # edit a virtual machine "www" # add following lines
<cpu mode='custom' match='exact'>
# CPU model <model fallback='allow'>SandyBridge</model> # CPU vendor <vendor>Intel</vendor> <feature policy='require' name='vmx'/> </cpu> |
Sponsored Link |