Enable nested virtualization


Recommended Posts

Hi Guys,

 

I'd like to enable nested virtualization. I tried following the Guide for it, but it seems something has changed and I get 

XML error: Non-empty feature list specified without CPU model

When I try to save my config file. I tried looking up the board, but the solutions I found here seem no longer to be valid.

 

I'm using an Intel (i9-9900) CPU and SpaceInvaders script to enable nested virtualization:

 

#!/bin/bash

#set whether your cpu is Intel or AMD  [1-Intel] [2-Amd] 
cputype="1"

#Do not edit below this line
#turn nested on


	if [[ "$cputype" =~ ^(1|2)$ ]]; then
		if [ "$cputype" -eq 1 ]; then
			modprobe -r kvm_intel
				modprobe kvm_intel nested=1
				echo "Nested vms are enabled for intel cpus"
			elif [ "$pushnotifications" -eq 2 ]; then
			modprobe -r kvm_amd
					modprobe kvm_amd nested=1
					echo "Nested vms are enabled for AMD cpus"			
			fi
		else
				echo "invalid cpu type set please check config"
			fi
sleep 10
exit

 

Edited by Jaster
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.