Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question