Laravel Homestead on USB stick

I am trying to set up Laravel Homestead on a USB stick given the unlucky amount of space on my laptop. My current OS is Ubuntu 16.04. I followed this tutorial: https://www.jeffgeerling.com/blogs/jeff-geerling/running-vagrant-virtualbox

My USB stick has three directories:

  • "vagrant_home" where I copied and renamed ".vagrant.d" as instructed in the tutorial. Here I am successfully disposing the laravel / homestead box.
  • "VirtualBox virtual machines" is where I install VirtualBox to search for virtual machines.
  • Homestead, following the directions from the official Laravel tutorial, I cloned this git repository and changed one of the Homestead.yaml settings to reflect the USB stick:

folders: - map: /media/nick/Homestead/Code to: /home/vagrant/Code type: "nfs"

When I run "vagrant up", an unwanted .vagrant.d folder is created in my home directory, not on a USB stick. Also, I am getting this error:

There was an error while executing 'VBoxManage', a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: VBoxNetAdpCtl: ioctl failed for /dev/vboxnetctl: Inappropriate ioctl for devic
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg*)" at line 94 of file VBoxManageHostonly.cpp
`

      

I also installed Vagrant and VirtualBox as described in the official Homestead tutorial: https://laravel.com/docs/5.1/homestead

Thanks for reading. Your help is greatly appreciated.

+3


source to share


1 answer


Try restarting the virtual box or firewall command.



Make sure it's not a permissions issue.

0


source







All Articles