title: docker-machine error to create default machine
body: <p>I'm trying to use docker-machine and virtualbox inside a container.</p>
  
  <p>The host:
  Ubuntu 16.04</p>
  
  <p>I installed in the host</p>
  
  <pre><code>sudo apt-get install linux-headers-generic virtualbox-dkms
  </code></pre>
  
  <p>The Dockerfile definition</p>
  
  <pre><code>FROM ubuntu:16.04
  RUN apt-get update &amp;&amp; apt-get install -y \
  ca-certificates \
  curl \
  software-properties-common \
  --no-install-recommends \
  build-essential &amp;&amp; \
  curl -sSL https://www.virtualbox.org/download/oracle_vbox_2016.asc | apt-key add - &amp;&amp; \
  echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" &gt;&gt; /etc/apt/sources.list.d/virtualbox.list &amp;&amp; \
  apt-get update &amp;&amp; \
  apt-get install -y \
  virtualbox-5.0 \
  &amp;&amp; rm -rf /var/lib/apt/lists/*
  </code></pre>
  
  <p>Builded the image container</p>
  
  <p>docker build -t myVirtualbox .</p>
  
  <p>I started the container using</p>
  
  <pre><code>docker run -it -v /dev/vboxdrv:/dev/vboxdrv --privileged=true myVirtualbox bash
  </code></pre>
  
  <p>Inside the container I downloaded the docker-machine</p>
  
  <pre><code>curl -L https://github.com/docker/machine/releases/download/v0.7.0/docker-machine-`uname -s`-`uname -m` -o docker-machine &amp;&amp; chmod +x docker-machine
  </code></pre>
  
  <p>Then I ran</p>
  
  <pre><code>./docker-machine create --driver=virtualbox default
  </code></pre>
  
  <p>This is the error </p>
  
  <pre><code>(default) Starting the VM...
  (default) Check network to re-create if needed...
  Error creating machine: Error in driver during machine creation: Error setting up host only network on machine start: The host-only  adapter we just created is not visible. This is a well known VirtualBox  bug. You might want to uninstall it and reinstall at least version 5.0.12  that is is supposed to fix this issue
  The default lines below are for a sh/bash shell, you can specify the  shell you're using, with the --shell flag.
  </code></pre>
  
  <p>In the container I have the virtualBox version 5.0.26r108824</p>