Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"

i run CentOS in VirtualBox on physical Windows7. Now in centOS i have Docker and i need to run

docker-machine create --driver virtualbox host1

but i get error

Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"

so do i need to install VirtualBox once again and in the CentOS? If yes, how can i do that?

thanks lot

like image 304
toto' Avatar asked Aug 23 '17 09:08

toto'


5 Answers

Yes you are absolutely correct. You need to install VirtualBox first of all.

You can do it by running yum install virtualbox for CentOS or

sudo apt-get install virtualbox for Ubuntu

Do so and then run your code and you will be good to go

like image 104
Ernest Avatar answered Nov 14 '22 05:11

Ernest


It's an issue with permissions. You've installed docker as sudo. You need to run

sudo docker-machine create --driver virtualbox host1

OR

sudo docker-compose up 

to get around this.

like image 40
Alex Joseph Avatar answered Nov 14 '22 04:11

Alex Joseph


I faced the same error in Ubuntu 18.04 but I realized that I had installed docker-machine using command : sudo snap install docker.

However install docker-machine using :

$ curl -L https://github.com/docker/machine/releases/download/v0.13.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine && \
chmod +x /tmp/docker-machine && \
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine

Check your installation :

$ docker-machine version

Then install virtualbox using :

$sudo apt install virtualbox

Now you can create the docker-machine using the command :

$ docker-machine create --driver virtualbox dev

Hope this helps.

like image 6
Aman Khullar Avatar answered Nov 14 '22 06:11

Aman Khullar


Being more specific about install VirtualBox on Mac Mojavi.

  1. After downloading the VirtualBox-6.0.6-130049-OSX.dmg, double-click to install

  2. Go to your applications folder and you will find the virtualbox.pkg like this:

    virtualbox.pkg

  3. Click on it to complete the installation.

  4. After install is complete, you should see VirtualBox in the applications folder like this:

    virtual box after installation completes

  5. Afterwards you should refresh your terminal and rerun your command.

    docker-machine create --driver virtualbox local-docker.
    
like image 4
tutug Avatar answered Nov 14 '22 05:11

tutug


try to execute with superuser:

sudo docker-machine create -d virtualbox myvm1
like image 2
Erik Hammer Avatar answered Nov 14 '22 04:11

Erik Hammer