Jump to: navigation, search

Grow Virtual Harddisk


Resizing Disk Image



(1) Back-up your data first: Either move your important files via shared folders or make a full clone of your VM in each snapshot state in case something goes wrong.

(2) On the host: Delete all existing snapshots.

(3) On the host: Grow the disk. The 1G is to be replaced with the amount of memory you'd like to add in gigabyte.

qemu-img resize vmdisk.img +1G

(4) Boot up and look if it's still working.

(5) Install GParted in Whonix-Workstation and resize the filesystem to claim the newly added space.

sudo apt-get install gparted


In case you need more disk space on your virtual harddisk... Good news is, you are still a VirtualBox user. Whonix is nothing special. It's just another vm image. Any suggestions you find about VirtualBox will also work for Whonix.

Somewhat difficult, there is no easy upstream solution, such as a gui and because you have no *vdi* disk. You have a vmdk disk. [1] There is also no better (free, Open Source) virtualizer with this feature. However, you do not need to be a genius. If you build Whonix from source this is a easier. [2] In case you are using the download version, it's a bit more difficult.

Unfortunately vboxmanage modifyhd <uuid|filename> --resize <size in mb> does not support vmdk images yet. (Perhaps that changes or has changed at your time of reading.)

(1) On the host: Make a clone of all states of your existing virtual machine in case something goes wrong.

(2) On the host: Delete all existing snapshots.

(3) On the host: Find the folder of your virtual hdd.

vboxmange list hdds

(4) On the host: Switch that folder.

(5) On the host: Convert from *vmdk* to *vdi*.

VBoxManage clonehd "Whonix-Workstation-disk1.vmdk" --format vdi "Whonix-Workstation-disk1.vdi"

(6) See the syntax.

VBoxManage modifyhd

(7) On the host: Grow the disk.

VBoxManage modifyhd "Whonix-Workstation-disk1.vdi" --resize 100000

(8) On the host: Go to VirtualBox VM settings, mass storage, remove the old .vmdk, add the new .vdi.

(9) Boot up and look if it's still working.

(10) Until now we have only grew the physical size, we haven't changed the filesystem. Shut down again.

(11) Inside VM: You have to boot from a boot cd (Ubuntu Precise *DVD* did work) and use some tool such as gparted to grow the filesystem. Start a terminal.

gksudo gparted

(12) Inside VM: Grow filesystem. Apply and shut down.

(13) Done.


  1. Because *vmdk* is the standard for *ova* images (exported virtual appliances).
  2. Search the file whonix_createvm for *VMNAME="Whonix-Workstation"* and *VMSIZE="50G"*. Increase *VMSIZE="50G"* for example to *VMSIZE="100G"*.

Random News:

We are looking for video production specialists to help create demonstration, promotional and conceptual videos or tutorials.

Impressum | Datenschutz | Haftungsausschluss

https | (forcing) onion
Share: Twitter | Facebook | Google+
This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! See Conditions for Contributions to Whonix, then Edit! IP addresses are scrubbed, but editing over Tor is recommended. Edits are held for moderation. Whonix (g+) is a licensee of the Open Invention Network. Unless otherwise noted above, the content of this page is copyrighted and licensed under the same Free (as in speech) license as Whonix itself.