Hi,
having issues with vagrant on virtualbox 6.1.26, there is error as below on vagrant up, after doing vagrant halt
--------------------- error message -----------------------------
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Checking if box ‘generic/ubuntu2004’ version ‘3.3.4’ 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: Forwarding ports…
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running ‘pre-boot’ VM customizations…
==> default: 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”, “dd6b763d-d888-4be7-904d-7c5734e65b72”, “–type”, “headless”]
Stderr: VBoxManage.exe: error: The VM session was closed before any attempt to power it on
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component SessionMachine, interface ISession
--------------------- end of error message -----------------------------
how to simulate the above error :
#vagrant init generic/ubuntu2004
#vagrant up
#vagrant halt
#vagrant up
my vagrant environment :
windows 10 pro version 21H1 OS build 19043.1165
vagrant version 2.2.18
virtualbox version 6.1.26
Temporary soution is to downgrade the virtualbox to 6.1.24
i think this is related to the virtualbox 6.1.26 changes
https://www.virtualbox.org/wiki/Changelog
“VBoxHeadless: Running VM will save its state on host shutdown”
please info if there is another solution for the current virtualbox (6.1.26)
Thank you