title: docker-machine unable to create a machine on macOS, VBoxManage returning E_ACCESSDENIED error
body: <p>I have <code>docker</code>, <code>docker-machine</code>, and <code>virtualbox</code> installed using HomeBrew:</p>
  <pre>
  Docker version 20.10.11, build dea9396e18
  docker-machine version 0.16.2, build bd45ab1
  VBoxManage version 6.1.30r148432
  </pre>
  <p>when I try creating a new machine</p>
  <pre><code>docker-machine create -d virtualbox default
  </code></pre>
  <p>I get the below errors:</p>
  <pre>
  Running pre-create checks...
  Creating machine...
  (default) Copying /Users/foobar/.docker/machine/cache/boot2docker.iso to /Users/foobar/.docker/machine/machines/default/boot2docker.iso...
  (default) Creating VirtualBox VM...
  (default) Creating SSH key...
  (default) Starting the VM...
  (default) Check network to re-create if needed...
  (default) Found a new host-only adapter: "vboxnet0"
  Error creating machine: Error in driver during machine creation: Error setting up host only network on machine start: /usr/local/bin/VBoxManage hostonlyif ipconfig vboxnet0 --ip 192.168.99.1 --netmask 255.255.255.0 failed:
  VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
  VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp
  </pre>
  <p>I have tried many things</p>
  <ul>
  <li>reinstalling all of my packages</li>
  <li>running the above command in <code>sudo</code></li>
  <li>using the <code>kextload</code> as instructed <a href="https://stackoverflow.com/a/69743478/4999991">here</a> to &quot;enable kernel extensions&quot;</li>
  <li>checking if there are any orphaned machines from past as suggested <a href="https://github.com/geerlingguy/drupal-vm/issues/1706#issuecomment-368496312" rel="noreferrer">here</a> with <code>docker-machine ls</code></li>
  </ul>
  <p>to no avail. Apparently the issue is caused by the IP restriction for Host-Only networks in the newer versions of VirtualBox. <a href="https://stackoverflow.com/a/69745931/4999991">Some posts</a> suggesting a manual edit of the VirtualBox's <code>networks.conf</code> file. But I can't find it on my machine, nor I know what I should change there!</p>
  <p><strong>P.S.1.</strong> Asked a follow-up question <a href="https://www.reddit.com/r/virtualbox/comments/rc1s58/how_to_solve_the_e_accessdenied_0x80070005_error/?utm_source=share&amp;utm_medium=web2x&amp;context=3" rel="noreferrer">here on Reddit</a>.</p>