Vagrant up fails to connect with VM, but vagrant ssh work

29 views
Skip to first unread message

brone...@gmail.com

unread,
Aug 9, 2018, 7:04:42 AM8/9/18
to Vagrant
Hello!

Im setting up vagrant & VM's at work and ran into a problem with vagrant up.

Setup:
Host: Win7
Git 2.15.0
Vagrant 2.1.2
VirtualBox 5.2.12
Win7 VM

The box was created by my self from windows 7 machine.

Vagrantfile:
Vagrant.configure("2") do |config|
 config.vm.box = "xxx"
 config.ssh.insert_key = false
 config.ssh.private_key_patH = "C:/Users/./.vagrant.d/insecure_private_key"
 config.ssh.username ="USER"
 config.ssh.host = "ip"
 config.ssh.port = "22"
 config.vm.network "private network", ip: "ip"
end


VM has openSSH working and the private keyfiles set.

When I bring the VM up, GUI mode enabled, with vagrant up, everything launches as should be. VM starts up to desktop, network is ok. Ping goes both ways between host and VM.

Vagrant up how ever hangs at "SSH auth method: private key"
Vagrant up --debug:
Everything else seems general, but repeating attemps end at:
"Starting process: path/to/VBoxManage.exe "showinfo" "key" "--machinereadable" Command not in installer, restoring original environment... "
...
Vagrant up times out.
Vagrant ssh right after connects correctly to VM (sometimes vagrant ssh fails to connection_reset_by_peer, but redo vagrant ssh works. Also ssh -i "path" USER@ip -p22 works and ssh is enstablished)

Problem that this creates is, when running a job from Jenkins to create a VM and run tests on, hanging for 5 minutes on vagrant up and failing wont be doable.


Any help would be greatly appreciated, im also a Vagrant first-timer so mistakes are likely :)
Thanks!!

Alvaro Miranda Aguilera

unread,
Aug 13, 2018, 3:45:16 AM8/13/18
to vagra...@googlegroups.com
share the full log please

vagrant destroy

vagrant up --debug

Alvaro.

--
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/2886debf-d812-4a28-8a20-1fb8a9d7da83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages