Nested KVM set up on CentOS 8.0.1905

Story: CentOS 8.0.1905 network installs on bare metal via External Repos succeeded (non US location )Total Replies: 0
Author Content

Oct 01, 2019
1:09 PM EDT
Create new file /etc/modprobe.d/kvm-nested.conf

[root@ServerCentOS8 ~]# cat /etc/modprobe.d/kvm-nested.conf

options kvm-intel nested=1

options kvm-intel enable_shadow_vmcs=1

options kvm-intel enable_apicv=1

options kvm-intel ept=1


[root@ServerCentOS8 ~]# modprobe -r kvm_intel

[root@ServerCentOS8 ~]# modprobe -a kvm_intel

Make sure nested KVM got enabled

[root@ServerCentOS8 ~]# cat /sys/module/kvm_intel/parameters/nested


For already existing VMs update via `virsh edit VM-NAME` it's XML profile as follows

<cpu mode='host-passthrough' check='partial'/>

Posting in this forum is limited to members of the group: [ForumMods, SITEADMINS, MEMBERS.]

Becoming a member of LXer is easy and free. Join Us!