Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable virtualization in Azure VM

I am going through the documentation on Docker Get Started (Part 4), and one of the first steps there is to create a VM using VirtualBox. now I've met all prerequisites and have everything set up, but this step fails on error message

Creating CA: /home/tadeasbucha/.docker/machine/certs/ca.pem
Creating client certificate: /home/tadeasbucha/.docker/machine/certs/cert.pem
Running pre-create checks...
Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"

I don't have access to any hardware machine on which I could try this one. Is it possible to set up Azure VM (Ubuntu 16.04) to enable virtualization? I've also tried to disable the virtualization check when creating the VM, but in that case it's stuck on assigning IP address.

like image 651
Tadeáš Bucha Avatar asked Jan 01 '23 20:01

Tadeáš Bucha


1 Answers

I was able to find a solution which is very easy and maybe I just didn't read the VM sizes description thoroughly. Because I had my VM on size Dv2, which unfortunately doesn't offer nested virtualization. When I increased the size of the VM to Dv3 (which apparently has the nested virtualization enabled by default with no further hassling inside of the VM), I was able to create the VMs inside of my VM with no issues.

like image 169
Tadeáš Bucha Avatar answered Jan 04 '23 08:01

Tadeáš Bucha