Recently, we needed to increase the size of the
root image for the
We had to do this as we wanted to install in
/opt a few IDEs, including
android-studio which takes a lot of space when accompanied by the
Following the excellent guide at https://www.qubes-os.org/doc/resize-root-disk-image/, we did the following:
- Made sure that the
TemplateVMand all VMs based on that template were shut down.
This included stopping the
sys-netVMs as well (in this order).
- Then, in the
VM Settingswindow at the
Basictab for the
fedora-23TemplateVM, we disabled the networking by selecting
NetVM:drop-down list and pressed
OKto apply the settings changes.
- Following, in
Terminal Emulatorwe run the following command:
truncate -s 40G /var/lib/qubes/vm-templates/fedora-23/root.img;
- Afterwards we started the
TemplateVMand run the following in the terminal:
sudo resize2fs /dev/mapper/dmroot;
Please note that if your output is
Nothing to do!then most likely you forgot a VM that is based on the
TemplateVMrunning. Normally your screen should print something along the lines of
Resizing the filesystem...
- Next, we shut down the
TemplateVM, and went to the
VM Settingswindow to enable networking by selecting whatever we had there before (for us it was
- Finally, we could start using our VMs, their
root.imgwere of the new extended size.