KVM enable nested virtualization
Jump to navigation
Jump to search
1 For AMD CPUs
[root@clue2 ~]# cat /sys/module/kvm_amd/parameters/nested 0 [root@clue2 ~]# echo "options kvm-amd nested=1" >> /etc/modprobe.d/dist.conf [root@clue2 ~]# rmmod kvm-amd [root@clue2 ~]# modprobe kvm-amd [root@clue2 ~]# modinfo kvm_amd | grep -i nested parm: nested:int [root@clue2 ~]# cat /sys/module/kvm_amd/parameters/nested 1
[root@clue2 ~]# virsh edit ov-compute1 ---modify--- <cpu mode='host-passthrough'/> --------- [root@clue2 ~]# virsh start ov-compute1
2 For Intel CPUs
clue1# cat /sys/module/kvm_intel/parameters/nested N clue1# rmmod kvm-intel clue1# echo 'options kvm-intel nested=y' >> /etc/modprobe.d/dist.conf clue1# modprobe kvm-intel clue1# cat /sys/module/kvm_intel/parameters/nested Y clue1# modinfo kvm_intel | grep nested parm: nested:bool
clue1# virsh edit ov-compute1 ---modify--- <cpu mode='host-passthrough'/> --------- clue1# virsh start ov-compute1