Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Nested Virtualization Enabling

 

Hello,

I am trying to enable nested virtualization on one of my existing VM. 

I followed the docs https://cloud.google.com/compute/docs/instances/nested-virtualization/enabling 

and verified the instance information is updated 

"advancedMachineFeatures": { "enableNestedVirtualization": true }, "canIpForward": false,

However grep -cw vmx /proc/cpuinfo still yields 0? 

any insights?

 

 

 

0 2 1,042
2 REPLIES 2

Hello, 
Before you enabled the nested virtualization directly on an existing VM, did you check whether nested virtualization is allowed for your organization, or project?

Do you try to reboot your VM after enabled nested virtualization?


@xxvii27. To enable nested virtualization on VM instances, you'll need to achieve a few requirements. First, construct a custom image that supports nested virtualization and a VM instance based on it. 
Syntax:

gcloud compute images create image-name \
--source-image-family=debian-10 \
--source-image-project=debian-cloud \
--licenses=https://compute.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx

To learn more, kindly follow the article below.
https://www.incapio.com/post/install-proxmox-ve-on-compute-engine-google-cloud-gcp