aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IDEAS.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/IDEAS.md b/IDEAS.md
index c83fedd..ac2f6bf 100644
--- a/IDEAS.md
+++ b/IDEAS.md
@@ -23,3 +23,21 @@
* Pull from remote repository and check source integrity.
* Automatic VM (re-)creation and/or provisioning.
* Status report.
+* Image resize action, doing something like this, thanks to
+ https://ahelpme.com/linux/online-resize-of-a-root-ext4-file-system-increase-the-space/
+
+ # poweroff
+ kvmx poweroff $guest
+
+ # resize image
+ qemu-img resize `kvmx list_image $guest` +5G
+
+ # power up
+ kvmx up $gues
+
+ # resize virtual machine root fs - while the partition is mounted!
+ # this parted command currently need to be done manually
+ echo resizepart 2 -1 | kvmx ssh $guest sudo parted /dev/vda
+ kvmx ssh $guest sudo resize2fs /dev/vda2
+ kvmx ssh $guest sudo touch /forcefsck
+ kvmx ssh $guest sudo poweroff