Here was an error while executing `VBoxManage`, a CLI used by Vagrant

I am facing issue as exactly described in “https://www.vagrantup.com/docs/installation/
Interestingly Hyper-V under control_panel is already disabled/unchecked and still error is poping up.

Here are the steps i am following:_

  1. Downloaded and installed “Oracle VM VirtualBox”

  2. Downloaded and installed vagrant_2.2.4_x86_64 (My OS is Win10 64Bit)

  3. Dowloaded and extracted “m103-vagrant-env” into my local machine to

  4. Start cmd as administrator and cd to m103-vagrant-env directory

  5. vagrant up
    Error is as follows

    mongod-m103: 22 (guest) => 2222 (host) (adapter 1)
    ==> mongod-m103: Running ‘pre-boot’ VM customizations…
    ==> mongod-m103: 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”, “c4e47e20-d654-4a3b-baf7-250ac96bfc53”, “–type”, “headless”]

Stderr: VBoxManage.exe: error: The virtual machine ‘mongod-m103’ has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in ‘C:\Users\pradeepsi\VirtualBox VMs\mongod-m103\Logs\VBoxHardening.log’
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine

C:\Users\pradeepsi\Documents\m103-vagrant-env>vagrant ssh
VM must be running to open SSH connection. Run vagrant up
to start the virtual machine.

What does VBoxHardening.log say
Please check vagrant status
or
vagrant up --debug
Try to restart/reboot your system
Also check other options suggested in our forums

Ramachandra

I tried reboot/restart multiple times, uninstall/reinstall virtual box multiple times but no luck.

What is your OS version?
Some of the students face lot of issues during vagrant setup
May be some version compatibility issues
Course instructors,Kanika can help you more on this

Here are the details about the system.

image.png

Hi @pradeepaulakh,

Please try the solution mentioned in the following link:

Vagrant Error

Please let me know, if you still face any problem.

Thanks,
Sonali

Unfortunately nothing is helping. I have tried all the options.

This is so frustrating. Tomorrow is my last day to complete the assignment and here I am still struggling with the initial configuration. No clear cut solutions anywhere.

1 Like

Hi @pradeepaulakh,

It is recommended to follow the exact steps mentioned in the lecture notes of Lecture: Setting up the Vagrant Environment, Installing Vagrant on Windows section.

Please let me know, if you face any problem in those steps.

Thanks,
Sonali

Hi Sonali

Here are the steps I am following from lecture notes.

URL

https://university.mongodb.com/mercury/M103/2019_May/chapter/Chapter_0_Introduction_Setup/lesson/5a9b89e997182d4140a45ecb/lecture

Installing Vagrant on Windows

  1. Install VirtualBox (6.0 Installed successfully)
  2. Install MinGW (Installed successfully)
  3. Install rsync and ssh (Installed successfully)
  4. Install Vagrant (Installed successfully - vagrant_2.2.4_x86_64)
    After downloading the Handouts (provided in
    the next Lab), extract the zip folder in your current working directory.

Zip folder extracted to following location

C:\d\XXX\XXX\Mongo\m103\m103-vagrant-env

  1.  Start CMD as administrator and run the following
    

command (****
FAIILING **** )

  1. HYPER-V is turn off already under “Tunr windows features on or off”
    vagrant up

Bringing machine ‘mongod-m103’ up
with ‘virtualbox’ provider…

==> mongod-m103: Clearing any
previously set forwarded ports…

==> mongod-m103: Clearing any
previously set network interfaces…

==> mongod-m103: Preparing
network interfaces based on configuration…

mongod-m103: Adapter 1: nat

==> mongod-m103: Forwarding
ports…

mongod-m103: 22 (guest) => 2222 (host) (adapter 1)

==> mongod-m103: Running
‘pre-boot’ VM customizations…

==> mongod-m103: 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”,
“0717d6e5-1595-4d0f-859c-ab6147e9c409”, “–type”,
“headless”]

Stderr: VBoxManage.exe: error: The
virtual machine ‘mongod-m103’ has terminated unexpectedly during startup with
exit code 1 (0x1). More details may be
available in ‘C:\Users\pradeepsi\VirtualBox
VMs\mongod-m103\Logs\VBoxHardening.log’

VBoxManage.exe: error: Details:
code E_FAIL (0x80004005), component MachineWrap, interface IMachine

Hi All,

I am also getting the same error when trying to start vagrant. I have followed all the steps as instructed in the lecture and course material but still no go. Hyper-V is also de-selected. Can someone please help as I am unable to proceed further.
==> mongod-m103: 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”, “4d3d410d-6957-46e6-abcf-4ab04ca167ac”, “–type”, “headless”]

Stderr: VBoxManage.exe: error: The virtual machine ‘mongod-m103’ has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in ‘C:\Users\AninditaThakur\VirtualBox VMs\mongod-m103\Logs\VBoxHardening.log’
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine

Is there any more details in

Hi @Anindita_77570,

Please try the solution mentioned in the following post:

Let me know, if you have any questions.

Thanks,
Sonali