2011-09-23 216 views
4

我想使用Vagrant爲開發環境創建虛擬機。我在嘗試將虛擬機安裝到VirtualBox時收到錯誤消息。 VBoxManage導入的輸出如下。我的同事能夠毫無問題地運行這個命令。我在Mac OS X 10.6.8上,他在Debian上。使用Vagrant時出現VirtualBox錯誤

有沒有人有這個錯誤的含義的想法?

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 
+0

您能找到答案? – spuder

回答

2

似乎問題已經坐在這裏一段時間了,所以也許你已經解決了這個問題。我們也在使用Vagrant,並遇到一個奇怪的問題,即盒子被損壞。

對於我們來說,這會導致設置在給定的筆記本電腦上失敗,但在所有其他設備上工作。沒有明確的跡象表明失敗,除了供應過程剛剛凍結。

您是否檢查過sha1-sum或類似文件,以確認您的同事下載的盒子文件完全相同?所有的磁盤映像文件都緩存在〜/ .vagrant.d/boxes下,因此您可以在導入後立即比較該目錄下的校驗和。

+0

這個答覆是3歲。我有理由認爲我面臨類似的問題。也許有其他更新的發現/提示? –

1

它看起來像你還沒有下載的盒子,所以流浪者最好找到盒子的原始位置。

嘗試下載框手工

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

也可以嘗試調高記錄

$ VAGRANT_LOG = DEBUG無業遊民了

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

最後,嘗試不同的框圖像。它可能安裝了更新/舊版本的虛擬客戶機版本。可以解釋你的同事爲什麼沒有問題。

相關問題