Docker Community Forums

Share and learn in the Docker community.

Unable to create machine


(Pmandayam) #1

Hello,

I was using boot2docker previously and everything was working fine. Now when I upgraded to using Docker Toolbox, I am unable to create a new virtual machine.

I am even unable to import the virtual machine that was used with boot2docker.

I get this error when trying to create a new machine:

C:\Program Files\Docker Toolbox\kitematic\resources\resources\docker-machine.exe -D create -d virtualbox --virtualbox-memory 2048 default returned non zero exit code. Stderr: Converting from raw image file=“stdin” to file=“C:\Users<redacted>\disk.vmdk”… Creating dynamic image with size 20971520000 bytes (20000MB)… Error creating machine: exit status 1 You will want to check the provider to make sure the machine and associated resources were properly removed.

And I get this when trying to import the old vm that boot2docker used:’

C:\Users\pmandayam>docker-machine create -d virtualbox --virtualbox-import-boot2
docker-vm boot2docker-vm docker-vm
Creating VirtualBox VM…
Error creating machine: exit status 1
You will want to check the provider to make sure the machine and associated reso
urces were properly removed.

Assistance, is greatly appreciated.

Thank you,

Prithvi


(Jeff Anderson) #2

Do you get any more information regarding the ‘exit status 1’ if you rerun your docker-machine command in debug mode? -D will turn on debug.

Jeff


(Pmandayam) #3

This is solved now. When upgrading to docker-machine from boot2docker, I did not install the Oracle VirtualBox properly. But now it is resolved.


(Faulty) #4

I had the same problem, when I checked the VirtualBox log in default, I saw there’s issue loading vbdrv. I managed to fix it by uninstalling DockerToolbox, manually uninstall git, Virtualbox, reboot, and install DockerToolbox again, that made it work. Though I didn’t try to import the old vm.