How to fix vagrant up error: missing argument? - vagrant

I'm having issues starting vagrant, when typing vagrant up. I receive:
There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["sharedfolder", "add", "6a1009af-c43b-4737-a25e-664602fbf401", "--name", "", "--hostpath", "/home/name/Documents/Laravel-projects"]
Stderr: VBoxManage: error: Missing argument to '--name'

Related

Virtualbox image corrupted on vagrant up

I've been having some trouble with Vagrant and Virtualbox lately and I can't pinpoint what is going on. I am trying to use the Vagrant setup in this repository (https://github.com/sapienza/vagrant-php-box) but everytime I issue a vagrant up command I get the same traceback error about a corrupted image:
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["import", "/home/dan/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-trusty64/20160602.0.0/virtualbox/box.ovf", "--vsys", "0", "--vmname", "ubuntu-cloudimg-trusty-vagrant-amd64_1466024621846_36463", "--vsys", "0", "--unit", "6", "--disk", "/home/dan/VirtualBox VMs/ubuntu-cloudimg-trusty-vagrant-amd64_1466024621846_36463/box-disk1.vmdk"]
Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /home/dan/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-trusty64/20160602.0.0/virtualbox/box.ovf...
OK.
0%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Appliance import failed
VBoxManage: error: Could not create the imported medium '/home/dan/VirtualBox VMs/ubuntu-cloudimg-trusty-vagrant-amd64_1466024621846_36463/box-disk1.vmdk'.
VBoxManage: error: VMDK: Compressed image is corrupted '/home/dan/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-trusty64/20160602.0.0/virtualbox/box-disk1.vmdk' (VERR_ZIP_CORRUPTED)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component ApplianceWrap, interface IAppliance
VBoxManage: error: Context: "RTEXITCODE handleImportAppliance(HandlerArg*)" at line 877 of file VBoxManageAppliance.cpp
I attempted to remove the corrupted box with vagrant box remove ubuntu/trusty64 and reissue the vagrant up command and the box appears to be successfully downloaded but it fails every time when importing the base box.
I'm currently using Vagrant 1.8.4 and Virtualbox 5.0.20 on Ubuntu 14.04. Any help would be greatly appreciated.
To assist in the troubleshooting, how about:
Create a new directory
Inside the new directory, execute a vagrant init ubuntu/trusty64
vagrant up
Does the machine come up ? if so, then environment should be okay.
Next I would create a new directory again, and copy only the relevant files from that github repo excluding the hidden directory .vagrant
Ideally, a .gitignore should be in present in that repo excluding that a .vagrant directory.
Good Luck!

Failed to run homestead vagrant box

I'm trying to install the Laravel Homestead vagrant box. I followed the official documentation and when I run vagrant up I get this error:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
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/carlo/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead/0.2.7/virtualbox/box.ovf", "--vsys", "0", "--vmname", "settler_default_1434987271004_24349_1442413617944_69497", "--vsys", "0", "--unit", "7", "--disk", "/Users/carlo/VirtualBox VMs/settler_default_1434987271004_24349_1442413617944_69497/box-disk1.vmdk"]
Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /Users/carlo/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead/0.2.7/virtualbox/box.ovf...
OK.
0%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Appliance import failed
VBoxManage: error: Could not create the imported medium '/Users/carlo/VirtualBox VMs/settler_default_1434987271004_24349_1442413617944_69497/box-disk1.vmdk' (VERR_VD_VMDK_INVALID_FORMAT)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component ApplianceWrap, interface IAppliance
VBoxManage: error: Context: "RTEXITCODE handleImportAppliance(HandlerArg*)" at line 876 of file VBoxManageAppliance.cpp
I tried vagrant with another simple ubuntu box and it's working

There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox

When running vagrant up I get the following error:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'lavash-devstack'...
Progress: 10%There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["import", "C:/HashiCorp/Vagrant/home/boxes/lavash-devstack/0/virtualbox/box.ovf", "--vsys", "0", "--vmname", "devstack_default_1416365851757
_3107_1428337748513_82036", "--vsys", "0", "--unit", "10", "--disk", "C:\\Users\\adrian espinoza\\VirtualBox VMs\\devstack_default_1416365851757_3107_
1428337748513_82036\\box-disk1.vmdk"]
Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting C:\HashiCorp\Vagrant\home\boxes\lavash-devstack\0\virtualbox\box.ovf...
OK.
0%...10%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Appliance import failed
VBoxManage.exe: error: Could not create the imported medium 'C:\Users\adrian espinoza\VirtualBox VMs\devstack_default_1416365851757_3107_1428337748513
_82036\box-disk1.vmdk'.
VBoxManage.exe: error: VMDK: cannot write allocated data block in 'C:\Users\adrian espinoza\VirtualBox VMs\devstack_default_1416365851757_3107_1428337
748513_82036/box-disk1.vmdk' (VERR_DISK_FULL)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Appliance, interface IAppliance
VBoxManage.exe: error: Context: "int __cdecl handleImportAppliance(struct HandlerArg *)" at line 779 of file VBoxManageAppliance.cpp
Does someone know what is wrong? I reviewed the related questions, and applied the possibles solution but I still get the error.
here
You problem is similar to me. It may because you did not get enough permission. I run vagrant in git on Windows 8.1. I solve this problem by restart git in administration mode. Hope it help.
For those stumbling upon this while pasting their error directly, it appears to be a VirtualBox problem, not a vagrant problem.
I'm running macOS Sierra, and started running into this issue after my upgrade. I downloaded VirtualBox again, and re-installed which began the upgrade process.
After that was complete, my vagrant environments were set.

error while executing `VBoxManage` (vagrant/ virtualbox)

I'm following the installation tutorial from Data Science at the Command Line which includes the following steps:
$ mkdir MyDataScienceToolbox
$ cd MyDataScienceToolbox
$ vagrant init data-science-toolbox/data-science-at-the-command-line
$ vagrant up
This works perfectly on one of my computer but not the other. Why?
Both computers are using Virtualbox version:4.3.12 and Windows 7.
This is the error message:
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'data-science-toolbox/data-science-at-the-command-line'...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["import", "C:\\Users\\bernard\\.vagrant.d\\boxes\\data-science-toolbox-VAGRANTSLASH-data-science-at-the-command-line\\0.0.5\\virtualbox\\box.ovf", "--vsys", "0", "--vmname", "packer-virtualbox-iso_1410075150030_92186", "--vsys", "0", "--unit", "7", "--disk", "C:\\cygwin64\\home\\bernard\\VirtualBox VMs\\packer-virtualbox-iso_1410075150030_92186\\packer-virtualbox-iso-disk1.vmdk"]
Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting C:\Users\bernard\.vagrant.d\boxes\data-science-toolbox-VAGRANTSLASH-data-science-at-the-command-line\0.0.5\virtualbox\box.ovf...
OK.
0%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Appliance import failed
VBoxManage.exe: error: Could not create the clone medium 'C:\cygwin64\home\bernard\VirtualBox VMs\packer-virtualbox-iso_1410075150030_92186\packer-virtualbox-iso-disk1.vmdk'.
VBoxManage.exe: error: VMDK: cannot write allocated data block in 'C:\cygwin64\home\bernard\VirtualBox VMs\packer-virtualbox-iso_1410075150030_92186/packer-virtualbox-iso-disk1.vmdk' (VERR_DISK_FULL)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Appliance, interface IAppliance
VBoxManage.exe: error: Context: "int __cdecl handleImportAppliance(struct HandlerArg *)" at line 779 of file VBoxManageAppliance.cpp
It looks like on the failing system your C: drive might not have enough free space. From the tail end of the error messages: "VERR_DISK_FULL".
Similar question on Super User: What causes the "Failed to create the hard disk storage" error when creating a new virtual machine?
You can use with sudo , I got rid of errors when executing with root access.
Example:
sudo vagrant up

Vagrant up gives error: Stderr: VBoxManage: error: Missing argument to '--name'

I got a vagrant machine running ubuntu, which always worked. Today I got an error and I couldn't find a fix anywhere so far.
Stderr: VBoxManage: error: Missing argument to '--name'
I get this error when I try 'vagrant up'.
I tried adding a name in the vagrant file and in the puppet file used, but the error keeps showing up.
Any ideas?
Kind regards,
Nick
Fixed: The property in the vagrant file shouldn't be "name:" but "id:".

Resources