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.

Virtual Machines[edit]

If more disk space is required for virtual hard disks, the good news is this is simple for Kicksecure VMs. Nothing special because it is just another VM image. Any suggestions that are found for your virtualizer will similarly work for Kicksecure. Self Support First Policy applies.

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. Select your virtualizer.

VirtualBox

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

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

5. On the host: Grow the disk.

Either,

  • A) Using the VirtualBox graphical user interface (GUI):

VirtualBoxFileToolsVirtual Media Managerselect virtual hddadjust the size slider

or,

  • B) Using the command line. See footnote. [1]

6. Install a partitioning tool.

Install a tool such as gparted that can grow the filesystem.

Install package(s) gparted following these instructions

1 Platform specific notice.

2 Update the package lists and upgrade the system The Web Archive Onion Version .

sudo apt update && sudo apt full-upgrade

3 Install the gparted package(s).

Using apt command line --no-install-recommends option The Web Archive Onion Version is in most cases optional.

sudo apt install --no-install-recommends gparted

4 Platform specific notice.

5 Done.

The procedure of installing package(s) gparted is complete.

7. Start the partitioning tool.

Start a terminal.

lxsudo gparted

8. Claim the new space.

  • Increase the size of the filesystem.
  • The user probably does not wish to create a new partition. Instead the exiting partition should be expanded.

9. Inside VM: Apply changes and shut down.

10. Done.

The procedure is complete.

KVM

3. On the host: Delete all existing snapshots.

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

5. Install GParted in Kicksecure.

sudo apt install gparted

6. Resize the filesystem to claim the newly added space.

  • Increase the size of the filesystem.
  • The user probably does not wish to create a new partition. Instead the exiting partition should be expanded.

7. Done.

Qubes

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

3. Done.

Build from Source Code[edit]

Refer to Build Kicksecure from Source Code and utilize this command line parameter:

--vmsize 200G

See Also[edit]

Footnotes[edit]

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

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!