After Vagrant & Vitual box upgrade getting error
mmadhavarao opened this issue · comments
after I upgraded virtual box to 6.1.22 and vagrant to 2.2.16 .. I am getting this error
I have installed the above on windows 10 laptop , can you please guide as how to solve them ? I am new to Linux/*nix background.
_==> lab0: Forwarding ports...
lab0: 22 (guest) => 2222 (host) (adapter 1)
==> lab0: Running 'pre-boot' VM customizations...
==> lab0: Booting VM...
==> lab0: Waiting for machine to boot. This may take a few minutes...
lab0: SSH address: 127.0.0.1:2222
lab0: SSH username: vagrant
lab0: SSH auth method: private key
lab0:
lab0: Vagrant insecure key detected. Vagrant will automatically replace
lab0: this with a newly generated keypair for better security.
lab0:
lab0: Inserting generated public key within guest...
==> lab0: Machine booted and ready!
==> lab0: Checking for guest additions in VM...
lab0: No guest additions were detected on the base box for this VM! Guest
lab0: additions are required for forwarded ports, shared folders, host only
lab0: networking, and more. If SSH fails on this machine, please install
lab0: the guest additions and repackage the box to continue.
lab0:
lab0: This is not an error message; everything may continue to work properly,
lab0: in which case you may ignore this message.
==> lab0: Setting hostname...
==> lab0: Configuring and enabling network interfaces...
==> lab0: Rsyncing folder: /cygdrive/d/mysql 8 administrator/wkg_mysql8_administration_labs-master/mysql8_administration_labs-master/lab0/ => /vagrant
lab0::vagrant ssh lab0
vagrant@127.0.0.1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic)._
Immediately after upgrade I got this error so rebooted lab0 once , and now getting the above error !
_lab0::vagrant up
Bringing machine 'lab0' up with 'virtualbox' provider...
==> lab0: Importing base box 'centos/7'...
==> lab0: Matching MAC address for NAT networking...
==> lab0: Checking if box 'centos/7' version '2004.01' is up to date...
==> lab0: Setting the name of the VM: lab0_lab0_1622528824261_47071
==> lab0: Clearing any previously set network interfaces...
==> lab0: Preparing network interfaces based on configuration...
lab0: Adapter 1: nat
lab0: Adapter 2: hostonly
==> lab0: Forwarding ports...
lab0: 22 (guest) => 2222 (host) (adapter 1)
==> lab0: Running 'pre-boot' VM customizations...
==> lab0: Booting VM...
There was an error while executing VBoxManage
, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "517003b2-f352-4e6b-8f02-35b4d1920ae3", "--type", "headless"]_
Stderr: VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2' (VERR_INTNET_FLT_IF_NOT_FOUND).
VBoxManage.exe: error: Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
lab0::
The issue is solved after uninstalling OpenSSH from Windows 10 host
credits : hashicorp/vagrant#9831
Thanks