From 9332ea900acbea962c2815bd71a1895a286c5026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20=C3=A0=20Porta?= Date: Fri, 10 Sep 2021 09:35:00 +0000 Subject: [PATCH 1/3] docs: update resize --- resize.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/resize.md b/resize.md index 8a28d57..ce5e530 100644 --- a/resize.md +++ b/resize.md @@ -2,7 +2,7 @@ title: Resize a guest disk image description: Resize a a guest disk image using qemu-img and virt-resize published: true -date: 2021-08-12T12:17:26.497Z +date: 2021-09-10T09:34:56.872Z tags: editor: markdown dateCreated: 2021-08-12T10:55:58.877Z @@ -16,19 +16,29 @@ As per the software description : "*qemu-img allows you to create, convert and m Expanding a new disk implies creating a new blank image of the desired size and "copy" the existing disk into this new bigger image using virt-resize. +> In-place expansion is not supported. +{.is-info} + + ## Usage -* Create the new disk phyllome_but_bigger.img of the desired size. In this case, it is 15 GiB +* **Create a new disk image** + +In-place expansion is not supported. A new disk of the desired size has to be created. + +Use the following command to create `phyllome_but_bigger.img`, a disk of 15 GiB ``` -$ qemu-img create -f raw /var/lib/libvirt/images/phyllome-bigger.img 15G +$ qemu-img create -f raw phyllome-bigger.img 15G ``` -* Expand the root partition on the disk. +* **Expand the root partition** > This command only works if the root partition is located on vda3 and if the disk image filesystem uses EXT4. {.is-warning} +This command bellow requires root privileges. + ``` # virt-resize --expand /dev/vda3 phyllome.img phyllome_but_bigger.img @@ -57,3 +67,6 @@ Resize operation completed with no errors. Before deleting the old disk, carefully check that the resized disk boots and works correctly. ``` +* **Inform your virtual machine to use the new disk** + +*To-do* From eb5bd0a84b9f8d991c7c491aeeee87aed2340397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20=C3=A0=20Porta?= Date: Sun, 12 Sep 2021 08:28:22 +0000 Subject: [PATCH 2/3] docs: update resize --- resize.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resize.md b/resize.md index ce5e530..daeed6d 100644 --- a/resize.md +++ b/resize.md @@ -2,7 +2,7 @@ title: Resize a guest disk image description: Resize a a guest disk image using qemu-img and virt-resize published: true -date: 2021-09-10T09:34:56.872Z +date: 2021-09-12T08:28:18.891Z tags: editor: markdown dateCreated: 2021-08-12T10:55:58.877Z @@ -19,6 +19,13 @@ Expanding a new disk implies creating a new blank image of the desired size and > In-place expansion is not supported. {.is-info} +## Installation + +* On Fedora-related distributions, `virt-resize` is provided by the `guestfs-tools` package : + +``` +# dnf install guestfs-tools +``` ## Usage From 27649a010d8fbd0c15d6db13e73d2e84f90ad7f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20=C3=A0=20Porta?= Date: Mon, 1 Nov 2021 15:16:40 +0000 Subject: [PATCH 3/3] docs: update sbom --- sbom.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sbom.md b/sbom.md index 5a6e204..21ede07 100644 --- a/sbom.md +++ b/sbom.md @@ -2,7 +2,7 @@ title: Software bill of materials description: List software used by Phyllome published: true -date: 2021-08-12T13:24:17.708Z +date: 2021-11-01T15:16:35.167Z tags: editor: markdown dateCreated: 2021-08-12T13:24:17.708Z @@ -85,12 +85,11 @@ The following list is provided by the following command `dnf list --installed | * website : https://www.gnu.org/software/diffutils/ * policycoreutils depends on diffutils * diffutils.x86_64 -* -* dnf - dnf is the new package manager for Fedora -* website : https://rpm-software-management.github.io/ -* dnf.noarch -* dnf-data.noarch -* dnf-plugins-core.noarch +* dnf - dnf is the new package manager for Fedora + * website : https://rpm-software-management.github.io/ + * dnf.noarch + * dnf-data.noarch + * dnf-plugins-core.noarch * dosfstools - "dosfstools consists of the programs mkfs.fat, fsck.fat and fatlabel to create, check and label file * systems of the FAT family." * website : https://github.com/dosfstools/dosfstools * dosfstools.x86_64