Docker Community Forums

Share and learn in the Docker community.

Docker Machine - error creating machine


(Crosen188) #1

[root@nc9042035055 /]# rpm -ivh VirtualBox-4.3-4.3.24_98716_el6-1.x86_64.rpm
warning: VirtualBox-4.3-4.3.24_98716_el6-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
Preparing… ########################################### [100%]
1:VirtualBox-4.3 ########################################### [100%]

Creating group ‘vboxusers’. VM users must be member of that group!

No precompiled module for this kernel found – trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [ OK ]
Recompiling VirtualBox kernel modules [ OK ]
Starting VirtualBox kernel modules [ OK ]
[root@nc9042035055 /]# docker-machine create --driver virtualbox dev
INFO[0000] Creating CA: /root/.docker/machine/certs/ca.pem
INFO[0001] Creating client certificate: /root/.docker/machine/certs/cert.pem
INFO[0003] Downloading boot2docker.iso to /root/.docker/machine/cache/boot2docker.iso…
INFO[0021] Creating SSH key…
INFO[0021] Creating VirtualBox VM…
INFO[0070] Starting VirtualBox VM…
ERRO[0070] Error creating machine: exit status 1
WARN[0070] You will want to check the provider to make sure the machine and associated resources were properly removed.
FATA[0070] Error creating machine

Thanks.


(Crosen188) #2

docker-machine -v
docker-machine version 0.1.0


(Crosen188) #3

[root@nc9042035055 /]# docker-machine env dev
export DOCKER_TLS_VERIFY=yes
export DOCKER_CERT_PATH=/root/.docker/machine/machines/dev
export DOCKER_HOST=


(Zhucegep) #4

I had this error too,and I use sudo fix it.
usage:
sudo docker-machine create --driver virtualbox dev

===========================================

shizhizhu@shizhi:~$ docker-machine create --driver virtualbox dev
INFO[0005] Creating SSH key…
INFO[0006] Creating VirtualBox VM…
ERRO[0032] Error creating machine: exit status 1
WARN[0032] You will want to check the provider to make sure the machine and associated resources were properly removed.
FATA[0032] Error creating machine
shizhizhu@shizhi:~$ docker-machine rm dev
INFO[0000] machine does not exist, assuming it has been removed already
shizhizhu@shizhi:~$ sudo docker-machine create --driver virtualbox dev
WARN[0005] Unable to check for the latest release: Get https://api.github.com/repos/boot2docker/boot2docker/releases: dial tcp: i/o timeout
INFO[0005] Creating SSH key…
INFO[0005] Creating VirtualBox VM…
INFO[0033] Starting VirtualBox VM…
INFO[0034] Waiting for VM to start…
INFO[0071] “dev” has been created and is now the active machine.
INFO[0071] To point your Docker client at it, run this in your shell: $(docker-machine env dev)


(Crosen188) #5

I am logged in as root, but even with sudo it fails…

[root@nc9042035055 ~]# sudo docker-machine create --driver virtualbox dev
INFO[0000] Creating SSH key…
INFO[0000] Creating VirtualBox VM…
INFO[0048] Starting VirtualBox VM…
ERRO[0049] Error creating machine: exit status 1
WARN[0049] You will want to check the provider to make sure the machine and associated resources were properly removed.
FATA[0049] Error creating machine


(Dvohra) #6

Has the following been referred?