Can't able to run any VM program in a instance

Running win server 2022 GUI , installed vware workstation error saying vt-x not enabled. Blue stacks not working anything with virtualization not working

2 Likes

Hello @Rahulvdb ,

Attaching here the documentation for enabling nested virtualization for VM instances. Included in the documentation the requirements needed before enabling the nested virtualization.

Enable nested virtualization directly on a new or existing VM by setting the enableNestedVirtualization field to true while creating the VM or by updating the VM.> - For enabling nested virtualization directly on a new VM, you need the compute.instances.create permissions on the project, folder, or organization.> > Enable nested virtualization directly on a VM by using the following procedure.> > Create an L1 VM with nested virtualization enabled by using the following gcloud compute instances create command:> > > gcloud compute instances create \> --enable-nested-virtualization \> --zone= \> --min-cpu-platform="Intel Haswell"> > > Replace the following:> > - : the name of the new L1 VM with nested virtualization enabled> > - : the zone for the new L1 VM with nested virtualization enabled> > Enable nested virtualization on an existing VM by using the following procedure.> > 1. Export the properties of the VM by using the following gcloud compute instances export command:> > > gcloud compute instances export \> --destination= \> --zone=> > > 1. Replace the following:> > - : the name of the VM from which to export properties> > - : the path and file name of a .yaml file in which to save the exported configuration data> > - : the zone that contains the VM> > 1. In the VM configuration file that was saved in , update the value for `enableNestedVirtualization`. If the value is not in the file, add the following:> > ```> advancedMachineFeatures:> enableNestedVirtualization: true> ```> > 3. Update the VM with the value for `enableNestedVirtualization` by using the following [`gcloud compute instances update-from-file` command](https://cloud.google.com/sdk/gcloud/reference/compute/instances/update-from-file):> ```> gcloud compute instances update-from-file \> --source= \> --most-disruptive-allowed-action=RESTART \> --zone=> ```> > Replace the following:> > - : the name of the VM to update> > - : the path to the updated VM configuration file> > - : the zone that contains the VM to update> > You can confirm if the Nested Virtualization was enabled by:> > 1. Connect to the VM instance.> > > gcloud compute ssh > > > 2. Confirm that nested virtualization is enabled. Any response other than 0 confirms that nested virtualization is enabled.> > > grep -cw vmx /proc/cpuinfo>

2 Likes