Saturday, June 7, 2014

VIRTUAL BOX : USEFUL COMMANDS

Some useful commands :-


1.  To display all information about your virtual machine
        
           VBoxManage showhdinfo "any.vmdk OR any.vdi"

      Information displayed includes Logical Size, Size on disk, Storage format
      (VDI/VMDK), location, format variant (Dynamic / Fixed size) and VMs using
      this hard disk.

2.  To clone a vmdk to vdi format

           VBoxManage  clonehd --format VDI source.vmdk target.vdi

3.   To increase the size of a virtual machine hard disk

           VBoxManage modifyhd source.vdi --resize new_size_in_MB

      The VM file must be a .vdi and not .vmdk.
      The .vdi must have format variant - Dynamic.
      The size must be specified in MB (example - 80000 for 80GB).

(Important : - Remember to open a command window and navigate to the VirtualBox installation directory in your windows machine, before you execute the VBoxManage commands)