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.
Contents
Virtual Machines[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Virtual_Machines
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Grow_Virtual_Harddisk#Virtual_Machines|Virtual Machines]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Virtual Machines](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Virtual_Machines)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Virtual Machines](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Virtual_Machines)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Virtual_Machines]Virtual Machines[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
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
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#VirtualBox
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Grow_Virtual_Harddisk#VirtualBox|VirtualBox]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[VirtualBox](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#VirtualBox)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[VirtualBox](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#VirtualBox)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#VirtualBox]VirtualBox[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
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.
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.
Click = Copy Copied to clipboard! 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.
Click = Copy Copied to clipboard! 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.
7. Start the partitioning tool.
Start a terminal.
Click = Copy Copied to clipboard! 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
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#KVM
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Grow_Virtual_Harddisk#KVM|KVM]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[KVM](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#KVM)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[KVM](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#KVM)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#KVM]KVM[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
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.
Click = Copy Copied to clipboard! qemu-img resize vmdisk.img +1G
5. Install GParted in Kicksecure.
Click = Copy Copied to clipboard! 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
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Qubes
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Grow_Virtual_Harddisk#Qubes|Qubes]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Qubes](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Qubes)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Qubes](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Qubes)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Qubes]Qubes[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
2. Refer to the Resizing Disk Image Qubes OS user documentation.
3. Done.
Build from Source Code[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Build_from_Source_Code
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Grow_Virtual_Harddisk#Build_from_Source_Code|Build from Source Code]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Build from Source Code](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Build_from_Source_Code)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Build from Source Code](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Build_from_Source_Code)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Build_from_Source_Code]Build from Source Code[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Refer to Build Kicksecure from Source Code and utilize this command line parameter:
Click = Copy Copied to clipboard! --vmsize 200G
See Also[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#See_Also
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Grow_Virtual_Harddisk#See_Also|See Also]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[See Also](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#See_Also)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[See Also](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#See_Also)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#See_Also]See Also[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Footnotes[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Footnotes
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Grow_Virtual_Harddisk#Footnotes|Footnotes]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Footnotes](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Footnotes)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Footnotes](https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Footnotes)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Grow_Virtual_Harddisk?oldid=84659#Footnotes]Footnotes[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- ↑
Find the folder of the virtual hdd.
Run the following command. Notes:
- Adjust the filename of the virtual hdd.
- Adjust
100000
to for example200000
.


Copy as Wikitext

for Discourse, reddit, GitHub

Copy as Markdown

Copy as phpBB Click below ↴ = Open social URL with share data











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!