aboutsummaryrefslogtreecommitdiff
path: root/IDEAS.md
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-07-03 09:22:57 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-07-03 09:22:57 -0300
commit264942ae1ba52816cee4cb1f6cd0468208047d3d (patch)
treec5bbf415a8b23a22f6c1b9faecb3e37afe39a388 /IDEAS.md
parent6ee1a889b0b4108ff91c8600ef4a7848ccd18d89 (diff)
downloadkvmx-264942ae1ba52816cee4cb1f6cd0468208047d3d.tar.gz
kvmx-264942ae1ba52816cee4cb1f6cd0468208047d3d.tar.bz2
IDEAS: update on image resizing procedure
Diffstat (limited to 'IDEAS.md')
-rw-r--r--IDEAS.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/IDEAS.md b/IDEAS.md
index c91f1c4..4b52433 100644
--- a/IDEAS.md
+++ b/IDEAS.md
@@ -119,17 +119,20 @@
kvmx up $guest
# ensure parted is installed
- sudo apt-get install -y parted
+ #sudo apt-get install -y parted
+ sudo apt-get install -y cloud-guest-utils
# 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
- # See https://unix.stackexchange.com/questions/190317/gnu-parted-resizepart-in-script#202872
+ # See https://unix.stackexchange.com/questions/373063/auto-expand-last-partition-to-use-all-unallocated-space-using-parted-in-batch-m
+ # 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 resizepart 2 -1 Yes
+ #kvmx ssh $guest sudo parted /dev/vda resizepart 2 -1 Yes
+ kvmx ssh $guest sudo growpart /dev/vda 2
kvmx ssh $guest sudo resize2fs /dev/vda2
kvmx ssh $guest sudo touch /forcefsck