Page 1 of 1
VBoxManage.exe Add VDI to Media Manager
Posted: 21. Oct 2009, 23:19
by michaeld_bqe
So ... I love writing batch scripts to make life simple and easy, as well as power shell scripts now. Only problem is that in looking at the help section of the vboxmanage.exe I did not see a way to add a vdi to the media manager. I can create a VDI using the "createhd" command but I can not find out how to connect that VDI and its new UUID to the Media Manager via script.. I was wondering if any one had a suggestion on how to do this? Any assistance would be greatly appreciated.
-MikeD
Re: VBoxManage.exe Add VDI to Media Manager
Posted: 21. Oct 2009, 23:32
by Sasquatch
Code: Select all
VBoxManage openmedium disk|dvd|floppy <filename>
[--type normal|immutable|writethrough] (disk only)

Re: VBoxManage.exe Add VDI to Media Manager
Posted: 22. Oct 2009, 00:00
by michaeld_bqe
Sasquatch wrote:Code: Select all
VBoxManage openmedium disk|dvd|floppy <filename>
[--type normal|immutable|writethrough] (disk only)

Thanks this worked.
Is there a way to close all mediums? and remove all VMs quickly?
vboxmanage.exe closemedium #all
something of this nature. Will the class support a shortcut?
Re: VBoxManage.exe Add VDI to Media Manager
Posted: 22. Oct 2009, 09:31
by Sasquatch
No idea, I'm not the dev.