# Vagrant up error while executing 'VBoxManage'

**URL:** <https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825>\
**Category:** Vagrant\
**Created:** [October 28, 2020, 5:02pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825 "2020-10-28T17:02:54Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiltzie75](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/wiltzie75/32/13997_2.png) [@wiltzie75](https://discuss.hashicorp.com/u/wiltzie75)\
**Post date:** [October 28, 2020, 5:02pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/1 "2020-10-28T17:02:54Z")

</div>

Running macOS 10.14.6, have tried with latest version of Vagrant and VirtualBox. After uninstalling both, I’ve installed Vagrant 2.2.2 and VirtualBox 6.0.24. Still getting this error when running vagrant up:

```
    Progress: 90%There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "/Users/ericgraham/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-bionic64/1.0.282/virtualbox/box.ovf", "--vsys", "0", "--vmname", "ubuntu-18.04-amd64_1603901778979_91282", "--vsys", "0", "--unit", "11", "--disk", "/Volumes/BACKUP/ubuntu-18.04-amd64_1603901778979_91282/ubuntu-18.04-amd64-disk001.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /Users/ericgraham/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-bionic64/1.0.282/virtualbox/box.ovf...
OK.
0%...
Progress state: NS_ERROR_INVALID_ARG
VBoxManage: error: Appliance import failed
VBoxManage: error: Code NS_ERROR_INVALID_ARG (0x80070057) - Invalid argument value (extended info not available)
VBoxManage: error: Context: "RTEXITCODE handleImportAppliance(HandlerArg *)" at line 957 of file VBoxManageAppliance.cpp
```

---

<div class="post-metadata">

**Author:** ![chrisroberts](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/chrisroberts/32/796_2.png) [@chrisroberts](https://discuss.hashicorp.com/u/chrisroberts)\
**Post date:** [October 28, 2020, 5:18pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/2 "2020-10-28T17:18:37Z")

</div>

There are a few reasons this can happen. The most common is a lack of free space on the local drive so the VM disks cannot be successfully copied resulting in this error. Another cause for this error can be if the copy sequence failed for some reason on the first try and directory still exists and an error is encountered attempting to unpack into the same location. First validate that you have ample free space available for making a copy of the local VM. Then run a destroy to ensure everything is clean for the current project (`vagrant destroy -f`) and then bring the guest up again (`vagrant up`).

---

<div class="post-metadata">

**Author:** ![wiltzie75](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/wiltzie75/32/13997_2.png) [@wiltzie75](https://discuss.hashicorp.com/u/wiltzie75)\
**Post date:** [October 28, 2020, 5:49pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/3 "2020-10-28T17:49:22Z")

</div>

Hi,  
I’d read somewhere about the lack of space as being an issue, I originally had my vagrant directory on my local drive. The local drive has 200gb available, which I thought was enough. I decided to create a new directory on my external drive that has 9TB of available space. I ran the

vagrant destroy -f

==\> default: VM not created. Moving on…  
and then ran vagrant up.  
Still get the same error.

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![chrisroberts](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/chrisroberts/32/796_2.png) [@chrisroberts](https://discuss.hashicorp.com/u/chrisroberts)\
**Post date:** [October 28, 2020, 6:00pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/4 "2020-10-28T18:00:12Z")

</div>

Another cause could be that the original box that was downloaded and unpacked is some how corrupted. You can try doing a `vagrant box remove hashicorp/bionic64` and then running a `vagrant up` again and letting it re-download the box to see if it resolves the error.

---

<div class="post-metadata">

**Author:** ![wiltzie75](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/wiltzie75/32/13997_2.png) [@wiltzie75](https://discuss.hashicorp.com/u/wiltzie75)\
**Post date:** [October 28, 2020, 6:11pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/5 "2020-10-28T18:11:45Z")

</div>

Hi,  
Just tried that and still getting the error. See attachment.

Thanks,  
Eric!  
[Screen Shot 2020-10-28 at 2.09.49 PM|690x398](https://discuss.hashicorp.com/uploads/short-url/hkhvSrlx0T9UIcFpFm1SRcXyt4A.png)

---

<div class="post-metadata">

**Author:** ![wiltzie75](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/wiltzie75/32/13997_2.png) [@wiltzie75](https://discuss.hashicorp.com/u/wiltzie75)\
**Post date:** [October 28, 2020, 10:46pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/6 "2020-10-28T22:46:45Z")

</div>

Hi,  
Could you let me know what versions of Vagrant and Virtualbox are compatible with 10.14.6? Also, is 200gb sufficient space to run Vagrant?

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![wiltzie75](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/wiltzie75/32/13997_2.png) [@wiltzie75](https://discuss.hashicorp.com/u/wiltzie75)\
**Post date:** [October 29, 2020, 3:56pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/7 "2020-10-29T15:56:50Z")

</div>

Hi,  
I’m still having this issue. I’ve attached two logs I ran from debug. Please let me know what you find.

Thanks,  
Eric

(Attachment vagrant2.log is missing)

(Attachment vagrant.log is missing)

---

<div class="post-metadata">

**Author:** ![wiltzie75](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/wiltzie75/32/13997_2.png) [@wiltzie75](https://discuss.hashicorp.com/u/wiltzie75)\
**Post date:** [October 29, 2020, 3:58pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/8 "2020-10-29T15:58:39Z")

</div>

Sorry here’s the log files saved as .txt files.

Thanks,  
Eric

[vagrant.txt](https://discuss.hashicorp.com/uploads/short-url/rbsVuI2C0ZkBhv4tt2w0hRYPCNh.txt) (80.3 KB)

[vagrant2.txt](https://discuss.hashicorp.com/uploads/short-url/rO1lGUAEpvmM6o5JmzTLNZ4tLRh.txt) (2.31 KB)

---

<div class="post-metadata">

**Author:** ![chrisroberts](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/chrisroberts/32/796_2.png) [@chrisroberts](https://discuss.hashicorp.com/u/chrisroberts)\
**Post date:** [October 30, 2020, 5:47pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/9 "2020-10-30T17:47:17Z")

</div>

With the error being generated by virtualbox being some what generic, I would suggest opening the virtualbox GUI directly and attempting to create a new VM with an ISO and determine if that succeeds correctly. It may be that there is an issue with your local virtualbox installation and running directly in the GUI mode may provide some clues as to the underlying issue.

---

<div class="post-metadata">

**Author:** ![wiltzie75](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/wiltzie75/32/13997_2.png) [@wiltzie75](https://discuss.hashicorp.com/u/wiltzie75)\
**Post date:** [October 30, 2020, 6:10pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/10 "2020-10-30T18:10:06Z")

</div>

Hi,  
I was able to figure out what was going on with this late yesterday. It was a problem with the ~/Library/Virtualbox folder. After deleting it, everything works.

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![sanj2sanj](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/sanj2sanj/32/23344_2.png) [@sanj2sanj](https://discuss.hashicorp.com/u/sanj2sanj)\
**Post date:** [October 28, 2021, 3:35pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/11 "2021-10-28T15:35:24Z")

</div>

I had a the same problem on Linux and removing ~/.config/VirtualBox fixed it for me

---

<div class="post-metadata">

**Author:** ![progzilla](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/progzilla/32/25724_2.png) [@progzilla](https://discuss.hashicorp.com/u/progzilla)\
**Post date:** [February 5, 2022, 4:08am UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/12 "2022-02-05T04:08:46Z")

</div>

I have tried almost all suggestions here and none worked! I’d appreciate any other idea

```auto
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "02f2cb8c-0e1b-4035-85e8-7c11ff0d89b6", "--type", "headless"]

Stderr: VBoxManage: error: VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

```

---

<div class="post-metadata">

**Author:** ![AbhineetSinha](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/abhineetsinha/32/26209_2.png) [@AbhineetSinha](https://discuss.hashicorp.com/u/AbhineetSinha)\
**Post date:** [February 23, 2022, 9:32am UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/13 "2022-02-23T09:32:24Z")

</div>

Which version of VBox are you using? Downgrading it to 6.1.16 worked for me, maybe some later versions would work too, haven’t tried it though.

---

<div class="post-metadata">

**Author:** ![bilbu03](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/bilbu03/32/36998_2.png) [@bilbu03](https://discuss.hashicorp.com/u/bilbu03)\
**Post date:** [July 25, 2023, 10:16am UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/14 "2023-07-25T10:16:26Z")

</div>

> [@wiltzie75](#):
>
> `/Users/ericgraham/.vagrant.d/boxes`

I had same issue which i resolved by removing the corrupt box from

```auto
/Users/username/.vagrant.d/boxes

```

and then ran vagrant up where I had vagrantfile.

---

<div class="post-metadata">

**Author:** ![chrisroberts](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/chrisroberts/32/796_2.png) [@chrisroberts](https://discuss.hashicorp.com/u/chrisroberts)\
**Post date:** [August 1, 2023, 3:09pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/15 "2023-08-01T15:09:40Z")

</div>

You are encountering this error because you do not have virtualization enabled in your bios settings. You will need to restart your machine, update the bios to enable virtualization (vt-x) and then boot your system.

Cheers

---

<div class="post-metadata">

**Author:** ![franske1989](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@franske1989](https://discuss.hashicorp.com/u/franske1989)\
**Post date:** [December 11, 2023, 1:01pm UTC](https://discuss.hashicorp.com/t/vagrant-up-error-while-executing-vboxmanage/16825/16 "2023-12-11T13:01:48Z")

</div>

I came across this page when using vagrant on macOs as a host.  
I got error NS\_ERROR\_INVALID\_ARG and E\_ACCESSDENIED during my experiments. Tried deleting .vagrant.d completely and ~/Library/VirtualBox. None of it worked. Turned out I had to give full disk access to terminal and VirtualBox because I had a separate partition (at least I think it’s a partition, still not very familiar with macOs).

What I had to do is:  
Apple logo menu → System Settings → Privacy and Security → In Privacy list select Full Disk Access → Enable Full Disk Access for Terminal and VirtualBox.

This got rid of my problems. In my case I also set vagrant home to a location on my partition for VMs.  
Use text edit to edit ~/.bash\_profile and add:  
export VAGRANT\_HOME=/your/path/to/vagrant/home

Which in my case was:  
export VAGRANT\_HOME=/Volumes/VM-Drive/VM/Vagrant/.vagrant.d  
Instead of /Users/yourusername/.vagrant.d
