S
S
solaris242017-08-04 19:11:05
virtual box
solaris24, 2017-08-04 19:11:05

Why does Vagrunt up stop at SSH auth method: private key?

Problem with launching virtual machines in Centos7+Vagrant+VirtualBox or Windows10+Vagrant+VirtualBox.
Versions: Vagrant 1.9.7, VirtualBox 5.1.26.
The launch of any new virtual machine stops at the stage: SSH auth method: private key

[[email protected] test1]# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'centos/7' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    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

According to the advice in the internet, I added a trace. configuration:
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
end
Didn't help.
Added:
config.vm.network "forwarded_port", guest: 22, host: 2222, host_ip: "localhost", id: 'ssh'
Didn't help.
On a bunch of Windows10 + Vagrant + VirtualBox, the virtual machine strats normally for the first time, but after the first reload or halt, it no longer starts with the same problem.
Explain what is the problem? What am I doing wrong?
Okay, under Windows I thought it was buggy, but on centos the same problem is even worse.

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
W
wladst, 2017-10-13
@wladst

Hey!
The problem can be solved like this, the Vagrantfile example is entirely ubuntu-16-04:

Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
end
config.vm.define "ubuntu16" do |dev|
dev.vm.network "public_network", ip: "192.168.100.149", bridge: "en1: WLAN (AirPort)"
dev.vm.hostname = "ubuntu16"
dev.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
end

N
ncsot, 2020-06-16
@ncsot

ENV["LC_ALL"] = "en_US.UTF-8"

V
Vampre, 2020-09-26
@Vampre

Everything turned out to be very simple for me - in the antivirus settings it was necessary to disable http traffic control (windows 7)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question