{{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.
Note: No longer required for [[Systemcheck#Build_Version|Build Version]] 17.3.9.2
and above.
17.3.9.2
and below, please press on expand on the right.
gparted
that can grow the filesystem.
{{Install_Package|package=
gparted
}}
Start the partitioning tool.
Start a terminal.
{{CodeSelect|code=
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.
17.4.0.4
and above. (Unreleased at time of writing.)
17.4.0.4
and below, please press on expand on the right.
1G
below should be replaced with the amount of memory to be added in gigabytes.
{{CodeSelect|code=
qemu-img resize vmdisk.img +1G
}}
'''5.''' Same instructions as step 6 for VirtualBox and following.
}}
{{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]]