Increase the Virtual Hard Disk

From Whonix

Qubes-Whonix ™[edit]

Refer to the Resizing Disk Image [archive] Qubes OS user documentation.



1. Back-up your data.

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: Increase the disk size.

1G below needs to be replaced with the amount of memory you would like to add in gigabytes.

qemu-img resize vmdisk.img +1G

4. Boot up and check 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 more disk space is required for your virtual hard disk, the good news is that you are still a VirtualBox user. Whonix ™ is nothing special; it is just another VM image. Any suggestions you find for VirtualBox will similarly work for Whonix ™.

This process is moderately difficult because there is no easy upstream solution (such as a GUI). Further, you have a VMDK disk instead of a VDI disk. [1] There is also no better (free, open source) virtualizer with this feature. However, most users can successfully complete this process and it is easier if Whonix ™ is built from source. [2] In case you are using the download version, it is a bit more difficult.

Unfortunately, at the time of writing vboxmanage modifyhd <uuid|filename> --resize <size in mb> does not support VMDK images yet. The situation may have subsequently changed.

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 to that folder.

5. On the host: Convert from VMDK to VDI.

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

6. Check the syntax.

VBoxManage modifyhd

7. On the host: Grow the disk.

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

8. On the host: VirtualBox VM settingsmass storage.

Remove the old .vmdk, add the new .vdi.

9. Boot up and check if it is still working.

10. Up to this point only the physical size was increased, but the filesystem has not been changed. Shut down again.

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

Start a terminal.

lxsudo gparted

12. Inside VM: Increase the filesystem. Apply and shut down.

The procedure is complete.


  1. 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

Join us in testing our new AppArmor profiles [archive] for improved security! (forum discussion [archive])

https link onion link

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.