我试图在USB驱动器上设置一个Laravel Homestead,因为我的笔记本电脑的磁盘上有不幸的空间。我目前的操作系统是Ubuntu 16.04。我已经按照本教程进行了操作: https://www.jeffgeerling.com/blogs/jeff-geerling/running-vagrant-virtualbox
我的USB驱动器有三个目录:
folders:
- map: /media/nick/Homestead/Code
to: /home/vagrant/Code
type: "nfs"
当我运行" vagrant up"时,会在我的主目录中创建一个不需要的.vagrant.d文件夹,而不是在USB驱动器上。另外,我收到此错误:
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
`
我还安装了Vagrant和VirtualBox,如官方Homestead教程所述:https://laravel.com/docs/5.1/homestead
感谢阅读。非常感谢您的帮助。
答案 0 :(得分:0)
尝试重新启动虚拟框或vagrant reload命令。
确保它不是权限问题