Virtual Hard Disk Size Increase

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 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):
VirtualBox → File → Tools → Virtual Media Manager → select virtual hdd → adjust the size slider
or,
- B) Using the command line. See footnote. [1]
6. Install a partitioning tool.
Note: No longer required for Build Version 17.3.9.2 and above.
Build version 17.3.9.2 and below, please press on expand on the right.
Install a tool such as gparted that can grow the filesystem.
Install package(s) gparted following these instructions
1 Platform specific notice.
- Kicksecure: No special notice.
- Kicksecure-Qubes: In Template.
2 Update the package lists and upgrade the system.
sudo apt update && sudo apt full-upgrade
3 Install the gparted package(s).
Using apt command line --no-install-recommends option is in most cases optional.
sudo apt install --no-install-recommends gparted
4 Platform specific notice.
- Kicksecure: No special notice.
- Kicksecure-Qubes: Shut down Template and restart App Qubes based on it as per Qubes Template Modification.
5 Done.
The procedure of installing package(s) gparted is complete.
Start the partitioning tool.
Start a terminal.
lxsudo gparted
Claim the new space.
- Increase the size of the filesystem.
- The user probably does not wish to create a new partition. Instead, the existing partition should be expanded.
7. Partition's type code fix.
Note: No longer required for build version 17.4.0.4 and above. (Unreleased at time of writing.)
Build version 17.4.0.4 and below, please press on expand on the right.
This is a fix for Failed to start systemd-repart.service - Repartition Root Disk![]()
.
sudo sgdisk --typecode='3:4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709' /dev/sda
9. Reboot.
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. Same instructions as step 6 for VirtualBox and following.
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]- ↑
Find the folder of the virtual hdd.
Run the following command. Notes:
- Adjust the filename of the virtual hdd.
- Adjust
100000to, for example,200000.
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 13 year success story and maybe DONATE!