top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to remove a media from Virtual Media Manager by script?

0 votes

I would like to create VBox from a resized image file. Because --resize seems to be supported only for VDI formats, I think I have to convert the image temporarily.

I'm using the following sequence:
$ VBoxManage internalcommands createrawvmdk -filename tmp.vmdk -rawdisk disk_v1.0.0.img
$ VBoxManage clonehd "tmp.vmdk" "tmp.vdi" --format vdi
$ VBoxManage modifyhd "tmp.vdi" --resize 2048
$ VBoxManage clonehd "tmp.vdi" "disk_v1.0.0.vmdk" --format vmdk

(In future I think I continue with creation of an appliance from that).

The clonehd "registers" the disk to Virtual Media Manager and I found no "removehd", thus I get warnings when deleting the tmp files and can run the commands only once.

How do I remove a media from Virtual Media Manager by script?

posted Aug 12, 2013 by Deepak Dasgupta

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Have a look at the vboxmanage closemedium command.

answer Aug 12, 2013 by Sanketi Garg
Similar Questions
0 votes

When I installed virt-manager in Ubuntu, it created a network bridge called virbr0. Now that I have installed virt-manager in Fedora 19, it did not create a network bridge. So how do I create a network bridge? Is virt-manager supposed to create a network bridge?

I installed virt-manager using the following command.

sudo yum install virt-manager

Are there any more rpm packages which I am supposed to install?

+2 votes

I have python-django installed on ubuntu installed on top of virtual Box. Also I have apache2 installed in the same way. When i visit the page hoisted by Apache2 from my Windows Host machine it worked.
But When i am doing the same for Django pages it's not opening up in Web browser from Host machine.
In the virtual box I am using bridged adapter and Eth0.

Please Help me to sort out this problem

0 votes

I am looking for internals how a host windows machine provides communication to virtual machines created through Oracle VM box ?

0 votes

I have a ubuntu 16.04 running on a remote server, for which I have a fixed address assigned by the provider. On this machine I have a virtual box virtual server running with a static address of

How do I add a gateway to access this address. it needs to be accessible only on the remote server. not from the internet.

+1 vote

I am currently running RHEL 6.5 on a 64-bit laptop, and installed a new fedora 20 VM using the Virtual Machine Manager -- seemed to work fine, f20 came up, looks good, but now i want to shut it down, so from the f20 console, I selected "Virtual Machine" -> "Shut Down" -> "Shut Down".

Where it *looks* like the VM shuts down, but the VMM window shows "f20 Running"

Should I expect a different result? I was expecting the VMM window to show that that VM was Stopped or something.