Skip to content

Instantly share code, notes, and snippets.

@EyePulp
Created September 20, 2013 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EyePulp/6639972 to your computer and use it in GitHub Desktop.
Save EyePulp/6639972 to your computer and use it in GitHub Desktop.
Vagrantfile 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", "ipconfig", "dyld: DYLD_ environment variables being ignored because main executable (/Applications/VirtualBox.app/Contents/MacOS/VBoxNetAdp", "--ip", "10.1.1.1", "--netmask", "255.255.255.0"]
Stderr: VBoxManage: error: The host network interface with the given name could not be found
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component Host, interface IHost, callee nsISupports
VBoxManage: error: Context: "FindHostNetworkInterfaceByName(name.raw(), hif.asOutParam())" at line 220 of file VBoxManageHostonly.cpp
VBoxManage: error: Could not find interface 'dyld: DYLD_ environment variables being ignored because main executable (/Applications/VirtualBox.app/Contents/MacOS/VBoxNetAdp'
Vagrant.configure("2") do |config|
config.vm.synced_folder File.dirname(__FILE__)+'/../', "/vagrant-project/"
config.vm.define "project_foo" do |app|
app.vm.box = "precise64"
app.vm.box_url = "http://files.vagrantup.com/precise64.box"
app.vm.network :private_network, ip: "10.1.1.2"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment