流浪汉 - 小牛队的登上错误

时间:2014-04-23 11:30:09

标签: virtualbox vagrant

我无法让我的流浪盒开始运行。这种流浪错误让我感到恶心:

$ vagrant up

...

==> default: Mounting shared folders...
default: /vagrant => /path/to/folder/of/Vagrantfile
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` /vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` /vagrant /vagrant

...

$ vagrant reload
==> default: Attempting graceful shutdown of VM...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
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: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterface, interface IHostNetworkInterface
VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 66 of file VBoxManageHostonly.cpp

我尝试的事情:

  • sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist
  • 摧毁这个盒子然后再试一次
  • 重新启动

是否有其他人遇到此问题并获得了可行的解决方案?

流浪汉版本为1.5.4

virtualbox版本是4.3.10 r93012

我的Vagrantfile的内容:

Vagrant.configure("2") do |config|
  config.vm.box = "precise64"
  config.vm.box_url = "http://files.vagrantup.com/precise64.box"

  config.vm.network :private_network, ip: "192.168.56.101"                #eth1
  # find your correkt interface name by: VBoxManage list bridgedifs"
  config.vm.network :public_network, bridge: "en1: Monitor-Ethernet"      #eth2

  config.ssh.forward_agent = true

  config.vm.provider :virtualbox do |v|
    v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
    v.customize ["modifyvm", :id, "--memory", 2048]
    v.customize ["modifyvm", :id, "--ioapic", "on"]
    v.customize ["modifyvm", :id, "--cpus", "2"]
    v.customize ["modifyvm", :id, "--name", "fsc_box"]
  end

  nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
  config.vm.synced_folder "../../", "/var/www/symfony/current/", id: "symfony" , :nfs => nfs_setting
  config.vm.provision :shell, :inline =>
    "if [[ ! -f /apt-get-run ]]; then sudo apt-get update && sudo touch /apt-get-run; fi"

  config.vm.provision :puppet do |puppet|
    puppet.manifests_path = "site/manifests"
    puppet.module_path = "."
    puppet.options = "--verbose --debug"
  end

end

1 个答案:

答案 0 :(得分:0)

好像我通过重新安装VirtualBox来修复它。