Skip to content

Instantly share code, notes, and snippets.

@lbernail
Last active October 29, 2017 16:33
Show Gist options
  • Save lbernail/c18e0a62164240e276ec0b3b13d41902 to your computer and use it in GitHub Desktop.
Save lbernail/c18e0a62164240e276ec0b3b13d41902 to your computer and use it in GitHub Desktop.
Enabling nested virtualization on GVP
gcloud compute images create ubuntu-vmx \
--source-image ubuntu-1604-xenial-v20171026a \
--source-image-project ubuntu-os-cloud \
--licenses "https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"
gcloud compute instances create ubuntu-vmx \
--machine-type n1-standard-1 \
--zone europe-west1-d \
--image ubuntu-vmx
gcloud compute ssh ubuntu-vmx
grep vmx /proc/cpuinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment