diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-06-05 18:58:03 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-06-05 18:58:03 -0300 |
commit | abd57cb071b901980308bc9da01e5594596536d1 (patch) | |
tree | cd48a850fd327a16c94ea89349c72eab9488a87d | |
parent | 0fd4a6721d066a9adbc16009b7b787553074418e (diff) | |
download | kvmx-abd57cb071b901980308bc9da01e5594596536d1.tar.gz kvmx-abd57cb071b901980308bc9da01e5594596536d1.tar.bz2 |
Updates IDEAS: resize guest
-rw-r--r-- | IDEAS.md | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -33,11 +33,18 @@ 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 |