Enable Virtualization on Virtual Machine Google Cloud

ignatius arga
Sep 29, 2021

--

Guide step by step enable virtualization on virtual machine.

This method is run on google cloud instance

  1. Create an centos7 machine called centos7
Centos7

2. Open Virtual machine via ssh

3. Check CPU available on VM (Before enable CPU will 0)

grep -cw vmx /proc/cpuinfo
Image source Youtube cloud tech

4. Stop Virtual machine and open cloud console

Image source Youtube cloud tech

5. Create image with virtualization enable on google VM

gcloud compute images create centos7-with-base-virtization-image — source-disk=centos7 — source-disk-zone=europe-west2-a — licenses https://compute.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx
Image source Youtube cloud tech

6. Delete centos7 instance and create again new centos7 instance with image
7. Now create an instance called centos7-with-virtization-instance

8. Check CPU available (After enable CPU will available to use)

grep -cw vmx /proc/cpuinfo
Image source Youtube cloud tech

Virtual Machine is ready and virtualization is enable. You can use virtual box inside Virtual machine.

pistolair

--

--