VirtualBox Error When Using Vagrant

I want to use Vagrant to create a virtual machine for a development environment. I get an error when trying to install a virtual machine in VirtualBox. The result of importing VBoxManage is shown below. My colleague can run this command without any problems. I am on Mac OS X 10.6.8 and it is on Debian.

Does anyone have an idea of ​​the meaning of this error?

20:41:26:haitran:vagrant $ vagrant up [default] Box ubuntu1104 was not found. Fetching box from specified URL... [default] Downloading with Vagrant::Downloaders::HTTP... [default] Downloading box: http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-amd64.box [default] Extracting box... [default] Verifying box... [default] Cleaning up downloaded box... [default] Importing base box 'ubuntu1104'... The VM import failed! Try running `VBoxManage import` on the box file manually for more verbose error output. 21:06:54:haitran:vagrant $ VBoxManage import ~/.vagrant.d/boxes/ubuntu1104/box.ovf 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Interpreting /Users/haitran/.vagrant.d/boxes/ubuntu1104/box.ovf... OK. Disks: vmdisk1 41943040000 -1 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized box-disk1.vmdk -1 -1 Virtual system 0: 0: Suggested OS type: "Ubuntu_64" (change with "--vsys 0 --ostype <type>"; use "list ostypes" to list all possible values) 1: Suggested VM name "talifun-ubuntu-11.04-server-amd64" (change with "--vsys 0 --vmname <name>") 2: Number of CPUs: 1 (change with "--vsys 0 --cpus <n>") 3: Guest memory: 360 MB (change with "--vsys 0 --memory <MB>") 4: Network adapter: orig NAT, config 2, extra slot=0;type=NAT 5: CD-ROM (disable with "--vsys 0 --unit 5 --ignore") 6: IDE controller, type PIIX4 (disable with "--vsys 0 --unit 6 --ignore") 7: IDE controller, type PIIX4 (disable with "--vsys 0 --unit 7 --ignore") 8: SATA controller, type AHCI (disable with "--vsys 0 --unit 8 --ignore") 9: Hard disk image: source image=box-disk1.vmdk, target path=/Users/haitran/VirtualBox VMs/talifun-ubuntu-11.04-server-amd64/box-disk1.vmdk, controller=8;channel=0 (change target path with "--vsys 0 --unit 9 --disk path"; disable with "--vsys 0 --unit 9 --ignore") 0%... Progress state: VBOX_E_FILE_ERROR VBoxManage: error: Could not create the clone medium '/Users/haitran/VirtualBox VMs/talifun-ubuntu-11.04-server-amd64/box-disk1.vmdk' (VERR_GENERAL_FAILURE) VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Appliance, interface IAppliance, callee Context: "ImportAppliance" at line 793 of file VBoxManageAppliance.cpp 
+4
source share
2 answers

It seems the question has been sitting here for a while, so maybe you have already solved the problem. We also use Vagrant and encounter an incomprehensible problem when the box was damaged.

For us, this caused a computer failure on this laptop, but work on everyone else. There was no clear indication of failure, in addition, the initialization process simply froze.

Have you checked sha1-sum or the like to make sure you have the same file in the box that your colleague uploaded? All disk image files are cached in ~ / .vagrant.d /, so you can compare the checksums in this directory immediately after import.

+2
source

It looks like you haven't loaded the box yet, so the stroller does his best to find the original location of the box.

Try loading the window manually

 vagrant box add ubuntu1104 http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-amd64.box 

Also try turning on the log

$ VAGRANT_LOG = DEBUG vagrant up

http://docs-v1.vagrantup.com/v1/docs/debugging.html

Finally, try another window. He may have a newer version of guest releases of virtual boxes installed. Could explain why your colleague has no problems with this.

+1
source

All Articles