Nick
Nick

Reputation: 581

Laravel Homestead on USB Drive

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

My USB Drive has three directories:

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 the USB drive. Additionally, I get 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 have also installed Vagrant and VirtualBox, as described by the official Homestead tutorial: https://laravel.com/docs/5.1/homestead

Thanks for reading. Your help is much appreciated.

Upvotes: 3

Views: 831

Answers (1)

meda
meda

Reputation: 45490

Try restarting virtual box or vagrant reload command.

Make sure its not a permission issue

Upvotes: 0

Related Questions