Grow Virtual Harddisk

From Whonix

Qubes-Whonix ™[edit]

Resizing Disk Image [archive]



(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 is 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 is 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 is 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 "{{workstation_product_name_short}}-disk1.vmdk" --format vdi "{{workstation_product_name_short}}-disk1.vdi"

(6) See the syntax.

VBoxManage modifyhd

(7) On the host: Grow the disk.

VBoxManage modifyhd "{{workstation_product_name_short}}-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 is 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"*.

Follow: Twitter.png Facebook.png 1280px-Gab text logo.svg.png Rss.png Matrix logo.svg.png 1024px-Telegram 2019 Logo.svg.png Discourse logo.svg

Donate: Donate Bank Wire Paypal Bitcoin accepted here Monero accepted here Contriute

Whonix donate bitcoin.png Monero donate whonix.png

Share: Twitter | Facebook

Have you contributed [archive] to Whonix ™? If so, feel free to add your name and highlight what you did on the Whonix authorship [archive] page.

https [archive] | (forcing) onion [archive]

This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! Read, understand and agree to Conditions for Contributions to Whonix ™, then Edit! Edits are held for moderation.

Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP. Whonix ™ is a trademark. Whonix ™ is a licensee [archive] of the Open Invention Network [archive]. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Freedom Software license as Whonix ™ itself. (Why?)

Whonix ™ is a derivative of and not affiliated with Debian [archive]. Debian is a registered trademark [archive] owned by Software in the Public Interest, Inc [archive].

Whonix ™ is produced independently from the Tor® [archive] anonymity software and carries no guarantee from The Tor Project [archive] about quality, suitability or anything else.

By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent. Whonix ™ is provided by ENCRYPTED SUPPORT LP. See Imprint.