Last update: March 17, 2019. This website uses cookies. 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. More information

 Actions

Grow Virtual Harddisk

Qubes-Whonix[edit]

Resizing Disk Image

Non-Qubes-Whonix[edit]

KVM[edit]

(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

VirtualBox[edit]

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

Footnotes[edit]

  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"*.

No user support in comments. See Support.

Comments will be deleted after some time. Specifically after comments have been addressed in form of wiki enhancements. See Wiki Comments Policy.


Add your comment
Whonix welcomes all comments. If you do not want to be anonymous, register or log in. It is free.



https | (forcing) onion

Share: Twitter | Facebook

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 of the Open Invention Network. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Freedom Software license as Whonix itself. (Why?)

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.