harmonized names for 'Resizing' things and improved Root Disk Size (QubesOS/qubes-issues#1441)

This commit is contained in:
Brennan Novak 2015-11-20 00:57:10 +01:00
parent 015758b6c0
commit 554e5fdcec
2 changed files with 31 additions and 19 deletions

View File

@ -7,8 +7,8 @@ redirect_from:
- /wiki/ResizeDiskImage/ - /wiki/ResizeDiskImage/
--- ---
Resizing Disk Image Resize Disk Image
------------------- -----------------
There are several disk images which can be easily extended. There are several disk images which can be easily extended.
But pay attention to the overall consumed space of your sparse disk images. But pay attention to the overall consumed space of your sparse disk images.

View File

@ -7,28 +7,40 @@ redirect_from:
- /wiki/ResizeRootDiskImage/ - /wiki/ResizeRootDiskImage/
--- ---
Resizing `root.img` Size Resize Root Disk Image
-------------------------- ----------------------
The safest way to increase the size of `root.img` is to do it for a standalone The safest way to increase the size of `root.img` is to turn your TemplateVM into a StandaloneVM. Doing this means it will have it's own root filesystem *(StandaloneVMs use a copy of template, instead of smart sharing)*. To do this run `qvm-create --standalone` from `dom0` Konsole.
VM (qvm-create --standalone) - which has its own root filesystem
(copy of template, instead of smart sharing).
But it should also work for a normal template (as long as changes in the
template between reboots didn't exceed 10G).
Replace the size and the path (name) of the template as wished and run your ### Resize a StandaloneVM Root Image
modified command:
``` In `dom0` Konsole run the following command (replace the size and path):
truncate -s 20G /var/lib/qubes/vm-templates/fedora-21/root.img
```
Then start your template or standalone VM and run: ~~~
truncate -s 20G /var/lib/qubes/appvms/standalonevm/root.img
~~~
``` Then start Terminal for this StandaloneVM and run:
~~~
sudo resize2fs /dev/mapper/dmroot sudo resize2fs /dev/mapper/dmroot
``` ~~~
after that shutdown the template. Shutdown the StandaloneVM and you will have extended the size of it's `root.img`
Then you should have extended `root.img` in your VM/template
### Resize a TemplateVM Root Image
In `dom0` Konsole run the following command (replace the size and path):*Make sure changes in the TemplateVM between reboots didn't exceed 10G.*
~~~
truncate -s 20G /var/lib/qubes/vm-templates/fedora-21/root.img
~~~
Then start Terminal for this TemplateVM and run the following:
~~~
sudo resize2fs /dev/mapper/dmroot
~~~
Shutdown the TemplateVM and you will have extended the size of it's `root.img`