Machine: Unable to create VM's using virtual box for docker swarm

Created on 24 Jun 2017  路  6Comments  路  Source: docker/machine

I went through several previous post and yet couldnt get my issue resolved. Currently, I am working on docker swarm on virtual box. Please find below the details of my docker version

hamsini@hamsini-VirtualBox:~$ docker -v
Docker version 17.03.1-ce, build c6d412e

hamsini@hamsini-VirtualBox:~$ docker-machine --version
docker-machine version 0.12.0, build 45c69ad

As soon as I try to create virtual machines, I land up in the below errors . I have enabled VT-x /AMD-v in the system BIOS settings. Also, it is enabled in Virtualbox settings
hamsini@hamsini-VirtualBox:~$ docker-machine create --driver virtualbox manager1Running 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"

Could anyone kindly clarify as to why , I am unable to create a virtual machine ? I am currently working on virtual box on windows 8.1.

Most helpful comment

Hello there. You cant do this because virtualbox is inside virtualbox (nested virtualization is not supported). I have faced with the same issue when i tried create docker swarm. Looks like need to find another solution or use workaround **docker-machine create -d virtualbox --virtualbox-no-vtx-check test** In this case you will be able to create docker machines only but you will face also with connectivity issue: Error creating machine: Error in driver during machine creation: read tcp 127.0.0.1:41446->127.0.0.1:38012: read: connection reset by peer It means that you have no external connection to VM, but host-only connection and you wont be able to start this VM and download Docker images. That`s it.
i am currently looking for the workaround for this issue. If i found any solution - will give you to know asap.

All 6 comments

Hello there. You cant do this because virtualbox is inside virtualbox (nested virtualization is not supported). I have faced with the same issue when i tried create docker swarm. Looks like need to find another solution or use workaround **docker-machine create -d virtualbox --virtualbox-no-vtx-check test** In this case you will be able to create docker machines only but you will face also with connectivity issue: Error creating machine: Error in driver during machine creation: read tcp 127.0.0.1:41446->127.0.0.1:38012: read: connection reset by peer It means that you have no external connection to VM, but host-only connection and you wont be able to start this VM and download Docker images. That`s it.
i am currently looking for the workaround for this issue. If i found any solution - will give you to know asap.

I have a same issue that virtualbox is inside virtualbox.

[root@localhost ~]# docker-machine create --driver virtualbox myvm1
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" 

but virtualbox configuration shows virtualbox supports VT-X/AMD-v.
image

Is there any solution to this problem?

The solution is to install the docker directly on your server/laptop/workstation but not inside the guest VM.

Please tell me is the VPS (digitalocean droplet for example) virtual? Can I run docker swarm inside one VPS?

I'm also facing the same issue

nand@anand-VirtualBox:~/Downloads/DockerComposeFile$ sudo docker-machine create --driver virtualbox manager1
[sudo] password for anand:
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"
anand@anand-VirtualBox:~/Downloads/DockerComposeFile$ sudo docker-machine create --driver virtualbox manager1
[sudo] password for anand:
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"
anand@anand-VirtualBox:~/Downloads/DockerComposeFile$ docker -v
WARNING: Error loading config file:/home/anand/.docker/config.json - stat /home/anand/.docker/config.json: permission denied
Docker version 17.03.2-ce, build f5ec1e2
anand@anand-VirtualBox:~/Downloads/DockerComposeFile$ docker-machine --version
docker-machine version 0.16.0, build 702c267f
anand@anand-VirtualBox:~/Downloads/DockerComposeFile$

Was this page helpful?
0 / 5 - 0 ratings