Virtual Hard Disk Size Increase

From Kicksecure
Jump to navigation Jump to search

Get more disk space. Increase the size of a virtual disk. Expand virtual machine storage capacity. Possible with Qubes, Kicksecure-Qubes, Kicksecure KVM and Kicksecure VirtualBox.

Kicksecure-Qubes[edit]

Refer to the Resizing Disk Imagearchive.org Qubes OS user documentation.

Kicksecure[edit]

KVM

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 Kicksecure and resize the filesystem to claim the newly added space.

sudo apt install gparted

VirtualBox

If more disk space is required for virtual hard disks, the good news is this is simple in VirtualBox -- Kicksecure is nothing special because it is just another VM image. Any suggestions that are found for VirtualBox will similarly work for Kicksecure. Self Support First Policy 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):

VirtualBoxFileToolsVirtual 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 "Kicksecure-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 Kicksecure from Source Code and utilize this setting:

--vmsize 200G

See Also[edit]


Unfinished: This wiki is a work in progress. Please do not report broken links until this notice is removed, use Search Engines First and contribute improving this wiki.

We believe security software like Kicksecure needs to remain Open Source and independent. Would you help sustain and grow the project? Learn more about our 12 year success story and maybe DONATE!