]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Docs: updates
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 2 Aug 2024 02:46:58 +0000 (23:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 2 Aug 2024 02:46:58 +0000 (23:46 -0300)
DOCS.md

diff --git a/DOCS.md b/DOCS.md
index 145f9f28953d79eee03243e9e185b7983daff36c..893eaf24998585527a570241e4d8cb2180332af8 100644 (file)
--- a/DOCS.md
+++ b/DOCS.md
@@ -46,42 +46,49 @@ Misc documentation on kvmx and QEMU.
 Nowadays this can be done with `kvmx growpart <device> <partition> <additional_size>`, but
 here goes some manual procedures if needed.
 
-* Image resize action, doing something like this, thanks to
-  https://ahelpme.com/linux/online-resize-of-a-root-ext4-file-system-increase-the-space/
+Image resize can be manually done with a procedure like this thanks to [these docs][]:
 
-        # poweroff
-        kvmx poweroff $guest
+    # poweroff
+    kvmx poweroff $guest
 
-        # resize image
-        qemu-img resize `kvmx list_image $guest` +5G
+    # resize image
+    qemu-img resize `kvmx list_image $guest` +5G
 
-        # power up
-        kvmx up $guest
+    # power up
+    kvmx up $guest
 
-        # ensure parted is installed
-        #sudo apt-get install -y parted
-        kvmx ssh $guest sudo apt-get install -y cloud-guest-utils
+    # ensure parted is installed
+    #sudo apt-get install -y parted
+    kvmx ssh $guest 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
+    # 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/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 growpart /dev/vda 2
+    # 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 growpart /dev/vda 2
 
-        kvmx ssh $guest sudo resize2fs /dev/vda2
-        kvmx ssh $guest sudo touch /forcefsck
-        kvmx restart $guest
+    kvmx ssh $guest sudo resize2fs /dev/vda2
+    kvmx ssh $guest sudo touch /forcefsck
+    kvmx restart $guest
+
+[these docs]: https://ahelpme.com/linux/online-resize-of-a-root-ext4-file-system-increase-the-space/
 
 ## Folder sharing
 
 ### With virtio and 9p
 
+* Status: works on kvmx.
+* Limitations: performance is low on Linux (as of 2024-08-01), due to a
+  limitation in the kernel.
+
+#### About
+
 References on virtio:
 
 * [Virtio on Linux — The Linux Kernel documentation](https://www.kernel.org/doc/html/v6.8/driver-api/virtio/virtio.html)
@@ -95,11 +102,15 @@ Some references on 9p folder sharing:
   * [Documentation/9psetup - QEMU](https://wiki.qemu.org/Documentation/9psetup)
   * [v9fs · GitHub](https://github.com/v9fs)
 
+#### Performance
+
 Performance limitations:
 
 * [linux/net/9p/trans_virtio.c at master · torvalds/linux · GitHub](https://github.com/torvalds/linux/blob/master/net/9p/trans_virtio.c)
-  * [linux/net/9p/trans_virtio.c at master - L803 · torvalds/linux · GitHub](https://github.com/torvalds/linux/blob/master/net/9p/trans_virtio.c#L803)
-    * [History for net/9p/trans_virtio.c - torvalds/linux · GitHub](https://github.com/torvalds/linux/commits/master/net/9p/trans_virtio.c)
+  * Limits still present at `trans_virtio.c` (as of 2024-08-01)
+    [linux/net/9p/trans_virtio.c at master - L803 · torvalds/linux ·
+    GitHub](https://github.com/torvalds/linux/blob/master/net/9p/trans_virtio.c#L803)
+  * [History for net/9p/trans_virtio.c - torvalds/linux · GitHub](https://github.com/torvalds/linux/commits/master/net/9p/trans_virtio.c)
 * [Can not set high msize with virtio-9p (Was: Re: virtiofs vs 9p performan](https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg06343.html)
   * [Re: Can not set high msize with virtio-9p (Was: Re: virtiofs vs 9p perfo](https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg06850.html)