Hello,
the first nic is to be used by Vagrant, so try to add and modify
starting on eth1/nic2.
Vagrant internally uses and expect to manage the first nic as NAT
Alvaro.
On Tue, Sep 15, 2015 at 5:11 PM, Joaquin Menchaca <
joaqu...@gmail.com> wrote:
>
>
> Is this a known issue, or works as expected. I am doing to network
> experiments, and I wanted to manage the NIC on eth0. The VirtualBox is just
> fine, I can start it up manually, and do vagrant ssh without a problem, but
> vagrant cannot bring up the system using vagrant.
>
> There was an error while executing `VBoxManage`, a CLI used by Vagrant
> for controlling VirtualBox. The command and stderr is shown below.
>
> Command: ["modifyvm", "4378e159-9b12-4e3d-87b6-cd1b7261e241", "--natpf1",
> "ssh,tcp,127.0.0.1,2200,,22"]
>
> Stderr: VBoxManage: error: A NAT rule of this name already exists
> VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057),
> component NATEngine, interface INATEngine, callee nsISupports
> VBoxManage: error: Context: "AddRedirect(Bstr(strName).raw(), proto,
> Bstr(strHostIp).raw(), RTStrToUInt16(strHostPort), Bstr(strGuestIp).raw(),
> RTStrToUInt16(strGuestPort))" at line 1708 of file VBoxManageModifyVM.cpp
>
> Is this a known issue, or works as expected. I am doing to network
> experiments, and I wanted to manage the NIC on eth0.
>
>
> My Vagrantfile:
>
> Vagrant.configure("2") do |config|
> config.vm.define "client" do |client|
> client.vm.box = "hashicorp/precise64"
> client.vm.provider :virtualbox do |vbox|
> vbox.customize ["modifyvm", :id, "--macaddress1", "auto"]
> vbox.customize ["modifyvm", :id, "--nic1", "hostonly"]
> vbox.customize ["modifyvm", :id, "--hostonlyadapter1", "vboxnet2"]
> end
> end
> end
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
>
https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues:
https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/vagrant-up/a2addc25-4a62-4a2c-9aa0-6fb280956aee%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.