VBoxManage.exe Add VDI to Media Manager

Discussions related to using VirtualBox on Windows hosts.
Post Reply
michaeld_bqe
Posts: 11
Joined: 21. Oct 2009, 23:14
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: XP, BackTRack 4, Win 7

VBoxManage.exe Add VDI to Media Manager

Post 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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VBoxManage.exe Add VDI to Media Manager

Post by Sasquatch »

Code: Select all

VBoxManage openmedium       disk|dvd|floppy <filename>
                            [--type normal|immutable|writethrough] (disk only)
:roll:
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
michaeld_bqe
Posts: 11
Joined: 21. Oct 2009, 23:14
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: XP, BackTRack 4, Win 7

Re: VBoxManage.exe Add VDI to Media Manager

Post by michaeld_bqe »

Sasquatch wrote:

Code: Select all

VBoxManage openmedium       disk|dvd|floppy <filename>
                            [--type normal|immutable|writethrough] (disk only)
:roll:
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?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VBoxManage.exe Add VDI to Media Manager

Post by Sasquatch »

No idea, I'm not the dev.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply