13

I have a VHD file in D drive named "Ubuntu VM1.vhd" i am trying to convert if to vdi , i coem across the clonehd command with --format vdi parameter ,i dont understand why it is giving the invalid parameter error..i tried with several changes but its giving the same..is there any other way to convert vhd to vdi...

C:\>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" clonehd D:\Ubuntu VM1.vh
d D:\UbuntuServer1.vdi --format vdi
Oracle VM VirtualBox Command Line Management Interface Version 4.1.2
(C) 2005-2011 Oracle Corporation
All rights reserved.

Usage:

VBoxManage clonehd          <uuid>|<filename> <uuid>|<outputfile>
                            [--format VDI|VMDK|VHD|RAW|<other>]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
                            [--existing]


Syntax error: Invalid parameter 'D:\UbuntuServer1.vdi'
4

3 回答 3

37

Try: VBoxManage.exe clonehd "D:\Ubuntu VM1.vhd" D:\UbuntuServer1.vdi --format vdi

于 2013-12-08T22:10:02.410 回答
0

我使用的是 linux RHEL OS,似乎@user3549168 给出的建议对我来说非常有效。不过我做了一些修改。对我有用的将vhd 转换为 vdi的命令是在我位于 vhd 文件存在的文件夹中时:

sudo vboxmanage clonehd inputFileName.vhd outputFileName.vdi --format vdi

实际使用命令:

sudo vboxmanage clonehd window.vhd window23.vdi --format vdi
于 2019-04-02T20:32:12.490 回答
-6

示范工作

cd C:\Program Files\Oracle VM VirtualBox entre 

VBoxManage clonehd " L:\Java\Achraf Rida\W7-64.vhd" "L:\Java\Achraf Rida\W7-64.vdi" --format vdi

尝试:VBoxManage.exe clonehd "D:\Ubuntu\VM1.vhd" "D:\Ubuntu\Server1.vdi" --format vdi

于 2014-04-18T14:20:57.190 回答