{{Title|title= Virtual Hard Disk Size Increase }} {{Header}} {{#seo: |description=Get more disk space. Increase the size of a virtual disk. Expand virtual machine storage capacity. Possible with Qubes, {{q_project_name_long}}, {{project_name_long}} KVM and {{project_name_long}} VirtualBox. |image=Blocks-968874640.jpg }} [[File:Blocks-968874640.jpg|thumb]]
VirtualBox
→ File
→ Tools
→ Virtual Media Manager
→ select virtual hdd
→ adjust the size slider
or,
* '''B)''' Using the command line. See footnote.
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
.
{{CodeSelect|code=
VBoxManage modifyhd "{{project_name_workstation_short}}-disk1.vdi" --resize 100000
}}
'''6.''' Install a partitioning tool.
Install a tool such as gparted
that can grow the filesystem.
{{Install_Package|package=
gparted
}}
'''7.''' Start the partitioning tool.
Start a terminal.
{{CodeSelect|code=
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.
}}
{{Tab
|title= == KVM ==
|image=[[File:Kvm-new-logo.png|25px]]
|addToClass=info-box
|active=false
|content=
'''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.
{{CodeSelect|code=
qemu-img resize vmdisk.img +1G
}}
'''5.''' Install GParted in {{project_name_workstation_long}}.
{{CodeSelect|code=
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.
}}
{{Tab
|title= == Qubes ==
|image=[[File:Qubes-logo-blue.png|25px]]
|addToClass=info-box
|active=false
|content=
'''2.''' Refer to the [https://www.qubes-os.org/doc/resize-disk-image/ Resizing Disk Image] Qubes OS user documentation.
'''3.''' Done.
}}
}}
= Build from Source Code =
Refer to [[Dev/Build_Documentation|Build {{project_name_short}} from Source Code]] and utilize this command line parameter:
{{CodeSelect|code=
--vmsize 200G
}}
= See Also =
* [[Shrink Virtual Harddisk]]
= Footnotes =
{{reflist|close=1}}
{{Footer}}
[[Category:Documentation]]