mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-02-17 21:34:17 -05:00
ResizeDiskImage changed
Minor edits to template disk image
This commit is contained in:
parent
877f1a1c96
commit
e680c3de99
@ -80,11 +80,11 @@ If you want install a lot of software in your TemplateVM, you may need to increa
|
|||||||
|
|
||||||
1. Make sure that all the VMs based on this template are shut off (including netvms etc).
|
1. Make sure that all the VMs based on this template are shut off (including netvms etc).
|
||||||
2. Sanity check: verify that none of loop device are pointing at this template root.img: `sudo losetup -a`
|
2. Sanity check: verify that none of loop device are pointing at this template root.img: `sudo losetup -a`
|
||||||
3. Resize root.img file using `truncate -s <desired size>` (root.img path you can obtain from qvm-prefs).
|
3. Resize root.img file using `truncate -s <desired size>` (the root.img path can be obtained from qvm-prefs).
|
||||||
4. If any netvm/proxyvm used by this template is based on it, set template netvm to none.
|
4. If any netvm/proxyvm used by this template is based on it, set template netvm to none.
|
||||||
5. Start the template.
|
5. Start the template.
|
||||||
6. Now you can execute `sudo resize2fs /dev/mapper/dmroot` in the template.
|
6. Execute `sudo resize2fs /dev/mapper/dmroot` in the template.
|
||||||
7. Verify available space in the template.
|
7. Verify available space in the template using `df -h`
|
||||||
8. Shutdown the template.
|
8. Shutdown the template.
|
||||||
9. Restore original netvm setting (if changed), check firewall settings (setting netvm to none causes firewall reset to "block all")
|
9. Restore original netvm setting (if changed), check firewall settings (setting netvm to none causes firewall reset to "block all")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user