Actions

Increase the Virtual Hard Disk

From Whonix



Blocks-968874640.jpg

Qubes-Whonix ™[edit]

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

Non-Qubes-Whonix[edit]

KVM[edit]

1. Back-up important data.

Either move important files via shared folders or make a full clone of VMs 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 should be replaced with the amount of memory to be added 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

VirtualBox[edit]

If more disk space is required for virtual hard disks, the good news is this is simple in VirtualBox -- Whonix ™ is nothing special because it is just another VM image. Any suggestions that are found for VirtualBox will similarly work for Whonix ™. Free Support Principle applies.

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

2. On the host: Delete all existing VM snapshots.

3. On the host: Grow the disk.

Using the VirtualBox graphical user interface (GUI) (new method):

VirtualBoxFileVirtual Media Managerselect virtual hddadjust the size slider

Using the command line (old method):

Find the folder of the virtual hdd.

Run the following command. Notes:

  • Adjust the filename of the virtual hdd.
  • Adjust 100000 to for example 200000.

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

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

6. Until now only the physical size was increased, but the filesystem has not been changed. Shut down again.

7. Inside VM: It is necessary 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

This procedure is also likely possible using the command line in recovery mode. Undocumented.

8. Inside VM: Increase the size of the filesystem. Apply changes and shut down.

The procedure is complete.

Build from Source Code[edit]

Refer to Build and Update Whonix ™ from Source Code and utilize this setting:

--vmsize 200G



Fosshost is sponsors Kicksecure ™ stage server Whonix old logo.png
Fosshost About Advertisements

Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix ™ Wiki


Follow: 1024px-Telegram 2019 Logo.svg.png Iconfinder Apple Mail 2697658.png Twitter.png Facebook.png Rss.png Reddit.jpg 200px-Mastodon Logotype (Simple).svg.png

Support: 1024px-Telegram 2019 Logo.svg.png Discourse logo.png Matrix logo.svg.png

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

Whonix donate bitcoin.png Monero donate Whonix.png United Federation of Planets 1000px.png

Twitter-share-button.png Facebook-share-button.png Telegram-share.png link=mailto:?subject=Grow Virtual Harddisk&body=https://www.whonix.org/wiki/Grow_Virtual_Harddisk link=https://reddit.com/submit?url=https://www.whonix.org/wiki/Grow_Virtual_Harddisk&title=Grow Virtual Harddisk link=https://news.ycombinator.com/submitlink?u=https://www.whonix.org/wiki/Grow_Virtual_Harddisk&t=Grow Virtual Harddisk link=https://mastodon.technology/share?message=Grow Virtual Harddisk%20https://www.whonix.org/wiki/Grow_Virtual_Harddisk&t=Grow Virtual Harddisk

Want to make Whonix ™ safer and more usable? We're looking for helping hands. Check out the Open Issues and development forum.

https link onion link Priority Support | Investors | Professional Support

Whonix | © ENCRYPTED SUPPORT LP | Heckert gnu.big.png Freedom Software / Osi standard logo 0.png Open Source (Why?)

The personal opinions of moderators or contributors to the Whonix ™ project do not represent the project as a whole.

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.