AndrewDryga / vagrant-box-osx

Issue tracker for macOS Sierra Vagrant box.
https://app.vagrantup.com/AndrewDryga/boxes/vagrant-box-osx
MIT License
983 stars 106 forks source link

VBoxManage.exe: error: Appliance import failed #5

Closed brettstack closed 10 years ago

brettstack commented 10 years ago

I'm getting this error on vagrant up, running on Windows 8.1, VirtualBox 4.3.10, Vagrant 1.6.0.

The only modifications I made to the Vagrantfile aside from setting config.vm.box was:

config.vm.provider "virtualbox" do |vb|
    # Don't boot with headless mode
    vb.gui = true

    # Use VBoxManage to customize the VM. For example to change memory:
    vb.customize ["modifyvm", :id, "--memory", "2048"]
  end

Command line output:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'AndrewDryga/osx-mavericks'...
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/Brett/.vagrant.d/boxes/AndrewDryga-VAGRANTSLASH-osx-mavericks/0.1.0/virtualbox/box.ovf", "
--vsys", "0", "--vmname", "Mac OS X - Vagrant_1399530920457_82370", "--vsys", "0", "--unit", "8", "--disk", "C:\\Users\\
Brett\\VirtualBox VMs\\Mac OS X - Vagrant\\box-disk1_1.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting C:\Users\Brett\.vagrant.d\boxes\AndrewDryga-VAGRANTSLASH-osx-mavericks\0.1.0\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:\Users\Brett\VirtualBox VMs\Mac OS X - Vagrant\box-disk1_1.v
mdk'.
VBoxManage.exe: error: VMDK: cannot write allocated data block in 'C:\Users\Brett\VirtualBox VMs\Mac OS X - Vagrant/box-
disk1_1.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 VBoxManageA
AndrewDryga commented 10 years ago

And if you turn that changes off it works?

brettstack commented 10 years ago

Disregard. The error is obvious: VERR_DISK_FULL. I changed it to write to my D: and I'm now encountering an "invalid state" error:

PS D:\Vagrant\Boxes\osx> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'AndrewDryga/osx-mavericks'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'AndrewDryga/osx-mavericks' is up to date...
==> default: Setting the name of the VM: osx_default_1399593704377_27169
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'gurumeditation' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.

I get this error with and without the gui settings.

AndrewDryga commented 10 years ago

Unfortunately this is VirtualBox issue that I can't resolve and never faced.

Duplicates #4

usman101 commented 7 years ago

I am getting the same issue. Anyone solved this so far?

myothandatoe-mbridge commented 6 years ago

I faced same problem because of having two vagrant files in same folder for my project.

Fanweilin1 commented 1 year ago

C:\Users\fanwe>vagrant init centos/7 AVagrantfilehas been placed in this directory. You are now ready tovagrant upyour first virtual environment! Please read the comments in the Vagrantfile as well as documentation on vagrantup.com` for more information on using Vagrant.

C:\Users\fanwe>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'centos/7' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Loading metadata for box 'centos/7' default: URL: https://vagrantcloud.com/centos/7 ==> default: Adding box 'centos/7' (v2004.01) for provider: virtualbox default: Downloading: https://vagrantcloud.com/centos/boxes/7/versions/2004.01/providers/virtualbox.box Download redirected to host: cloud.centos.org default: default: Calculating and comparing box checksum... ==> default: Successfully added box 'centos/7' (v2004.01) for 'virtualbox'! ==> default: Importing base box 'centos/7'... 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\fanwe\.vagrant.d\boxes\centos-VAGRANTSLASH-7\2004.01\virtualbox\box.ovf", "--vsys", "0", "--vmname", "centos-7-1-1.x86_64_1684577567859_84128", "--vsys", "0", "--unit", "10", "--disk", "D:/Program Files/Oracle/VirtualBox/centos-7-1-1.x86_64_1684577567859_84128/centos-7-1-1.x86_64.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Interpreting \?\C:\Users\fanwe.vagrant.d\boxes\centos-VAGRANTSLASH-7\2004.01\virtualbox\box.ovf... OK. 0%... Progress state: E_FAIL VBoxManage.exe: error: Appliance import failed VBoxManage.exe: error: Could not create a directory 'D:\Program Files\Oracle\VirtualBox\centos-7-1-1.x86_64_1684577567859_84128' to save the settings file (VERR_ACCESS_DENIED) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleImportAppliance(struct HandlerArg *)" at line 957 of file VBoxManageAppliance.cpp`