From e0176d01ef8133b4586bcbdee9dace90ae7af678 Mon Sep 17 00:00:00 2001 From: Alberto Morgante Medina Date: Tue, 7 Nov 2023 08:55:24 +0100 Subject: [PATCH 1/2] Update testing-guide.md --- docs/testing-guide.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/testing-guide.md b/docs/testing-guide.md index 77d9fe18..7e8f86e2 100644 --- a/docs/testing-guide.md +++ b/docs/testing-guide.md @@ -110,6 +110,20 @@ Unlike the installer ISO, there isn't anything specific that needs to be done wh a raw image. EIB can be used to overwrite the raw image attached to a VM and, when the VM is booted, it will use the newly built image. +## Testing using virt-install (CLI) + +If you want to use a command line example to deploy the VM and test it with your EIB image generated, you could use the following commands: + +- First, we need to create a disk empty to be used by the VM: + +`qemu-img create -f qcow2 example.img 6G` + +- Then, we could use virt-install to create and define a VM using the EIB output image generated: + +`virt-install --name testVM --memory 4096 --vcpus 4 --disk ./example.img --install no_install=yes --cdrom ./eib-image-generated.iso --network default --osinfo detect=on,name=sle-unknown` + +After executing this command, the first time, you will need to install the OS following the instructions. After installing the OS a reboot will happen. The second time booting the system, you will need to choose the `Boot From Disk` option. + ## General Notes The following messages do not indicate an issue with the installation ISO. Combustion will still look inside From 7b31643150cc7b3421923b17940e9d40ca67b5b0 Mon Sep 17 00:00:00 2001 From: Alberto Morgante Medina Date: Wed, 8 Nov 2023 09:59:26 +0100 Subject: [PATCH 2/2] changes from review --- docs/testing-guide.md | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/docs/testing-guide.md b/docs/testing-guide.md index 7e8f86e2..62e52595 100644 --- a/docs/testing-guide.md +++ b/docs/testing-guide.md @@ -83,6 +83,29 @@ qemu-img create -f qcow2 ~/.local/share/libvirt/images/eib-iso.qcow2 20G The next time the VM is powered on, it will trigger the ISO installer. +### Testing using virt-install (CLI) + +If you want to use the command line to deploy the VM and test it with your EIB generated image, you could use the following process: + +- The first step is to create an empty disk for the VM: + +`qemu-img create -f qcow2 example.img 6G` + +- Next, use virt-install to define and run a VM using the EIB generated image: + +``` +virt-install --name testVM \ + --memory 4096 \ + --vcpus 4 \ + --disk ./example.img \ + --install no_install=yes \ + --cdrom ./eib-image-generated.iso \ + --network default \ + --osinfo detect=on,name=sle-unknown +``` + +During the first boot, you'll need to install the OS following the instructions. After installation, a reboot will happen. Subsequent boots will use the "Boot From Disk" option to boot from the installed OS. + ## Testing RAW Images Using Virtual Machine Manager, select the option to create a new VM. @@ -110,20 +133,6 @@ Unlike the installer ISO, there isn't anything specific that needs to be done wh a raw image. EIB can be used to overwrite the raw image attached to a VM and, when the VM is booted, it will use the newly built image. -## Testing using virt-install (CLI) - -If you want to use a command line example to deploy the VM and test it with your EIB image generated, you could use the following commands: - -- First, we need to create a disk empty to be used by the VM: - -`qemu-img create -f qcow2 example.img 6G` - -- Then, we could use virt-install to create and define a VM using the EIB output image generated: - -`virt-install --name testVM --memory 4096 --vcpus 4 --disk ./example.img --install no_install=yes --cdrom ./eib-image-generated.iso --network default --osinfo detect=on,name=sle-unknown` - -After executing this command, the first time, you will need to install the OS following the instructions. After installing the OS a reboot will happen. The second time booting the system, you will need to choose the `Boot From Disk` option. - ## General Notes The following messages do not indicate an issue with the installation ISO. Combustion will still look inside