Quick question, won't NIC1 override the auto-configured NAT one on the 
jumpstart server?  Should that be NIC2?

Right now I am just trying to get the basics working, so try to get NICs 
that are appropriate, so that the client only goes to the PXEBoot server, 
then add other stuff.

Right now I am having problems following what you have above.  I am getting 
this sort of error on the client.

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "c06b1d43-eb3c-4123-9a9a-ce6a1b11fbd1", "--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

My current Vagrantfile looks like this:


Vagrant.configure("2") do |config|
  config.vm.define "server" do |server|
    server.vm.box = "hashicorp/precise64"
    server.vm.hostname = "gw01"
    server.vm.network :private_network, ip: "10.10.10.2"
    server.vm.provider :virtualbox do |vbox|
      vbox.customize ["modifyvm", :id, "--nic1", "hostonly"]
      vbox.customize ["modifyvm", :id, "--hostonlyadapter2", "vboxnet7"]
    end
  end

  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", "vboxnet7"]
    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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/53fbcf26-1a93-434b-befd-5e9358c74e37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to