]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Updates IDEAS: resize guest
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 5 Jun 2020 21:58:03 +0000 (18:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 5 Jun 2020 21:58:03 +0000 (18:58 -0300)
IDEAS.md

index ac2f6bf0ed7ca26dd79c6758eea9fcf05df1dd37..9c087f0d541be8f9b9cd4746802ad1d6af6109af 100644 (file)
--- a/IDEAS.md
+++ b/IDEAS.md
     qemu-img resize `kvmx list_image $guest` +5G
 
     # power up
-    kvmx up $gues
+    kvmx up $guest
 
     # 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
+    #echo resizepart 2 -1 | kvmx ssh $guest sudo parted /dev/vda
+
+    # See https://unix.stackexchange.com/questions/190317/gnu-parted-resizepart-in-script#202872
+    #     https://bugs.launchpad.net/ubuntu/+source/parted/+bug/1270203
+    #     https://techtitbits.com/2018/12/using-parteds-resizepart-non-interactively-on-a-busy-partition/
+    #     https://serverfault.com/questions/870594/resize-partition-to-maximum-using-parted-in-non-interactive-mode
+    kvmx ssh $guest sudo parted /dev/vda resizepats 2 -1 Yes
+
     kvmx ssh $guest sudo resize2fs /dev/vda2
     kvmx ssh $guest sudo touch /forcefsck
     kvmx ssh $guest sudo poweroff