1、打开nested
点击(此处)折叠或打开
- [root@dlp ~]# vi /etc/modprobe.d/kvm-nested.conf
- # create new
- options kvm_intel nested=1
- [root@dlp ~]# modprobe -r kvm_intel # unload
- [root@dlp ~]# modprobe kvm_intel # reload again
- [root@dlp ~]# cat /sys/module/kvm_intel/parameters/nested
- Y# just enabled
点击(此处)折叠或打开
- [root@dlp ~]# virsh edit centos7 # edit a virtual machine "centos7"
- # change like folows for "cpu mode" section
- <cpu mode='host-passthrough'>