Page 1 of 1
VBoxManage clonemedium: allowed Input files
Posted: 8. Feb 2020, 14:56
by Plagrö
Hello,
I know with VBoxManage clonemedium I can create the following files VDI|VMDK|VHD|RAW as output.
But I would like to know which image files I can use as input.
I have from my backup software a full backup as adi-File. Can I make a VDI from adi?
Thank you.
Re: VBoxManage clonemedium: allowed Input files
Posted: 8. Feb 2020, 15:20
by scottgus1
First, I would look in the Virtualbox manual, to see what 'vboxmanage clonemedium' has to say.
Second, if the manual is unclear, I would try the command with the image file. If the command completes, I would try the image in a guest. If the guest can access or boot from the cloned disk, then the command and the image type are compatible.
Third, I'd tell the forum the results of my experiment, positive or negative, since Virtualbox is free and my time was available.
Re: VBoxManage clonemedium: allowed Input files
Posted: 8. Feb 2020, 18:18
by Plagrö
First, I would look in the Virtualbox manual, to see what 'vboxmanage clonemedium' has to say.
Yes, I did.
Second, if the manual is unclear, I would try the command with the image file.
Yes, it was unclear. It only says what for output files he can make, but not which input files it can accept.
And it's not even clear for me what input files it accepts, because there is a saying "VDI|VMDK|VHD|RAW and others". So what are the others? Do I miss anything?
Yes, I have tried the command. Here is the result:
Code: Select all
MyKonto@MX:~
$ vboxmanage clonemedium "/media/MyKonto/HP Personal Media Drive/Backup von AOMEIL/Systembackup Sys; c/FullBackup/System Backup(3)/System Backup(3).adi" "/home/MyKonto/VirtualBox VMs/AusAOMEIKonvertiert.VDI" --format VDI
VBoxManage: error: Could not get the storage format of the medium '/media/MyKonto/HP Personal Media Drive/Backup von AOMEIL/Systembackup Sys; c/FullBackup/System Backup(3)/System Backup(3).adi' (VERR_NOT_SUPPORTED)
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 191 of file VBoxManageDisk.cpp
MyKonto@MX:~
$
Virtualbox is free and my time was available.
Thank you, it's a great progam and a beautiful GUI.
Re: VBoxManage clonemedium: allowed Input files
Posted: 8. Feb 2020, 19:29
by scottgus1
So it appears that the '.adi' format is not something 'vboxmanage modifymedium' can accept. Thanks for letting us know!
If you have a backup program that makes .adi's the program should have a restore function, or even a restore LiveCD, which can be used to restore the .adi into a guest's .vdi disk file. You would need the .adi to be in the guest environment: set up a second CD drive in the guest, and either use cd/dvd-burning software to make an ISO with the .adi inside, then mount the ISO to the 2nd CD drive, or use the ad-hoc viso function to make a virtual ISO for the 2nd CD drive. Boot the guest to the restore Live-CD, then restore the .adi to the guest's virtual drive.
Re: VBoxManage clonemedium: allowed Input files
Posted: 9. Feb 2020, 14:44
by Plagrö
Thank you.
I tried this without success:
I made:
-New machine
-create a new harddisk now
-VID
-Dynamically ->next
-limit 80GB
Then I changed the setting in a way, that matches to my PC
Then
-changed the contoller into PIIX4
-added the above created Harddisk
-added optical drive where my AOMEI rescu CD is
Then:
-add optical drive
-add Button -> searching my *.adi -> add selected file object to viso -> OK
-choose viso -> OK
press "start button"
Error message:
Failed to open a session for the virtual machine xxx.
The VM Session was aborted
Result Code: NS_ERROR_FAILURE
(0x80004005)
Component: Session Machine
Interface: ISession {c0447716-ff5a-4795-b57a-ecd5fffa18a4}
(?)
Re: VBoxManage clonemedium: allowed Input files
Posted: 9. Feb 2020, 16:01
by scottgus1
Plagrö wrote:I changed the setting in a way, that matches to my PC
This is unnecessary and possibly game-ending. The virtual 'hardware' of the guest is completely separate from and does not in any way need to match host hardware.
Delete everything you made and start over with a fresh guest. Pick a guest type that matches the operating system on the physical PC that you backed up. Don't change the defaults that Virtualbox picked for the guest.
Plagrö wrote:-changed the contoller into PIIX4
Do this only if your AOMEI documentation specifically says to do so. Otherwise, don't change anything.
Try again with the new guest, from:
-added the above created Harddisk
-added optical drive where my AOMEI rescu CD is
Then:
-add optical drive
-add Button -> searching my *.adi -> add selected file object to viso -> OK
-choose viso -> OK
press "start button"
Re: VBoxManage clonemedium: allowed Input files
Posted: 9. Feb 2020, 17:52
by Plagrö
Thank you.
I now was able to make my VM.

Re: VBoxManage clonemedium: allowed Input files
Posted: 9. Feb 2020, 18:15
by scottgus1
Excellent! Glad you're up and running!