Recent Entries
Archives
Search


Links
Powered by
Movable Type 2.64

2008年01月28日

VirtualBoxでclonevdi

VirtualBox 1.5.2 でclonevdi(´ー`)というか仮想DISKのコピー
結構ハマります。


VBoxManage clonevdi コピー元.vdi コピー先.vdi

ですが、コピー先.vdiはfullpathで指定する必要があったのでメモ。相対パスやVDIのディレクトリ中で行ってもエラーになりました(VDIディレクトリが作成できないとかなんとか)。コピー先として指定した文字列先頭にパスセパレータが来ていない場合にそういう動作をしていたポイので "\Documents and Settings\mine\.VirtualBox\VDI\SX006AA26.vdi" みたいな指定をしてやったら成功。

以下、作業時のログ(´ー`)

失敗例1:


C:\Program Files\innotek VirtualBox>VBoxManage clonevdi SX006AA25.vdi SX006AA26.vdi
VirtualBox Command Line Management Interface Version 1.5.2
(C) 2005-2007 innotek GmbH
All rights reserved.

[!] FAILED calling hardDisk->CloneToImage(Bstr(argv[1]), vdiOut.asOutParam(), progress.asOutParam()) at line 2412!
[!] Primary RC = E_FAIL (0x80004005) - Unspecified error
[!] Full error info present: true , basic error info present: true
[!] Result Code = E_FAIL (0x80004005) - Unspecified error
[!] Text = Could not create a directory 'VDI' to store the image file (VERR_ACCESS_DENIED)
[!] Component = HardDisk, Interface: IHardDisk, {fd443ec1-000f-4f5b-9282-d72760a66916}
[!] Callee = IHardDisk, {fd443ec1-000f-4f5b-9282-d72760a66916}

成功例(´ー`):


C:\Program Files\innotek VirtualBox>VBoxManage clonevdi SX006AA25.vdi "\Documents and Settings\mine\.VirtualBox\VDI\SX006AA26.vdi"
VirtualBox Command Line Management Interface Version 1.5.2
(C) 2005-2007 innotek GmbH
All rights reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

失敗例2:


C:\Program Files\innotek VirtualBox>cd "\Documents and Settings\mine\.VirtualBox"

C:\Documents and Settings\mine\.VirtualBox>"\Program Files\innotek VirtualBox\VBoxManage.exe" clonevdi SX006AA25.vdi SX006AA21.vdi
VirtualBox Command Line Management Interface Version 1.5.2
(C) 2005-2007 innotek GmbH
All rights reserved.

[!] FAILED calling hardDisk->CloneToImage(Bstr(argv[1]), vdiOut.asOutParam(), progress.asOutParam()) at line 2412!
[!] Primary RC = E_FAIL (0x80004005) - Unspecified error
[!] Full error info present: true , basic error info present: true
[!] Result Code = E_FAIL (0x80004005) - Unspecified error
[!] Text = Could not create a directory 'VDI' to store the image file (VERR_ACCESS_DENIED)
[!] Component = HardDisk, Interface: IHardDisk, {fd443ec1-000f-4f5b-9282-d72760a66916}
[!] Callee = IHardDisk, {fd443ec1-000f-4f5b-9282-d72760a66916}

C:\Documents and Settings\mine\.VirtualBox>"\Program Files\innotek VirtualBox\VBoxManage.exe" clonevdi SX006AA25.vdi VDI\SX006AA21.vdi
VirtualBox Command Line Management Interface Version 1.5.2
(C) 2005-2007 innotek GmbH
All rights reserved.

[!] FAILED calling hardDisk->CloneToImage(Bstr(argv[1]), vdiOut.asOutParam(), progress.asOutParam()) at line 2412!
[!] Primary RC = E_FAIL (0x80004005) - Unspecified error
[!] Full error info present: true , basic error info present: true
[!] Result Code = E_FAIL (0x80004005) - Unspecified error
[!] Text = Could not create a directory 'VDI' to store the image file (VERR_ACCESS_DENIED)
[!] Component = HardDisk, Interface: IHardDisk, {fd443ec1-000f-4f5b-9282-d72760a66916}
[!] Callee = IHardDisk, {fd443ec1-000f-4f5b-9282-d72760a66916}

C:\Documents and Settings\mine\.VirtualBox>

Posted by minemaz at 2008年01月28日 01:46
トラックバック
このエントリーのトラックバックURL:
http://www.lancard.com/mt/mt-tb.cgi/424

Comments
Post a comment









Remember personal info?