Advanced

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
dba477

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

Next

[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

Y

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

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

Post a reply to this thread:

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post