I have the following Vagranfile. When I vagrant up, I'm getting the 
following error. *However, if I switch to use a config.vm.network 
"public_network", everything works fine.*

But I still want to use config.vm.network "private_network" so I can assign 
fixed IP address for development.


[Error]

    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection aborted. Retrying...
    default: Warning: Connection aborted. Retrying...


[Vagrantfile]

Vagrant.configure("2") do |config|
  config.vm.box = "pef"

  config.vm.network "private_network", ip: "192.168.33.12"
  #config.vm.network "public_network"

  config.vm.synced_folder "C:/Users/user1/myprj", "/home/vagrant"

  config.vm.provider "virtualbox" do |vb|
     # Display the VirtualBox GUI when booting the machine
     vb.gui = true

     # Customize the amount of memory on the VM:
     vb.memory = "1024"

     # For host-only adapter
     vb.customize ["modifyvm", :id, "--uartmode1", "disconnected" ]
     vb.customize ["modifyvm", :id, "--nictype1", "Am79C973"]
     vb.customize ["modifyvm", :id, "--nictype2", "Am79C973"]
  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/858ae397-24f6-4a6e-82b8-ca37f0ccca7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to