From af89a57c7bd13a2fe602237860fb6067138b33a9 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Thu, 3 Mar 2016 15:28:01 +0100 Subject: [PATCH] Clarify that resizing root.img requires shutting down AppVMs --- configuration/resize-root-disk-image.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/configuration/resize-root-disk-image.md b/configuration/resize-root-disk-image.md index 299d7618..bee7272f 100644 --- a/configuration/resize-root-disk-image.md +++ b/configuration/resize-root-disk-image.md @@ -32,16 +32,23 @@ Shutdown the StandaloneVM and you will have extended the size of it's `root.img` ### 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.* +Shut down the TemplateVM, as well as all VMs based on that template (since they +share `root.img`). +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: +Then start only the TemplateVM and run the following. Note that if you are +resizing the TemplateVM used by, e.g., your NetVM, you may need to disable +networking so when the TemplateVM is started, it does not autostart other VMs +based on the same `root.img`. Otherwise you will get an error message `Nothing +to do!`. ~~~ sudo resize2fs /dev/mapper/dmroot ~~~ -Shutdown the TemplateVM and you will have extended the size of it's `root.img` +Shutdown the TemplateVM and you will have extended the size of it's `root.img`.