From f4d71af457b47d50c3f351de3126178507e39df9 Mon Sep 17 00:00:00 2001 From: SinghWang Date: Thu, 19 Jan 2023 15:12:17 +0800 Subject: [PATCH 1/3] docs: Fix missing critical steps in how-to-hotplug-memory-arm64.md The key steps in how-to-hotplug-memory-arm64.md are missing, resulting in the kata qemu pod not being created successfully. Fixes: #6105 Signed-off-by: SinghWang --- docs/how-to/how-to-hotplug-memory-arm64.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/how-to/how-to-hotplug-memory-arm64.md b/docs/how-to/how-to-hotplug-memory-arm64.md index 799367ad09..5bd419db3d 100644 --- a/docs/how-to/how-to-hotplug-memory-arm64.md +++ b/docs/how-to/how-to-hotplug-memory-arm64.md @@ -15,6 +15,19 @@ $ sudo .ci/aarch64/install_rom_aarch64.sh $ popd ``` +## Config KATA QEMU + +After executing the above script, two files will be generated under the directory /usr/share/kata-containers/ by default, namely kata-flash0.img and kata-flash1.img. Next we need to change the configuration file of kata qemu, which is in /opt/kata/share/defaults/kata-containers/configuration-qemu.toml by default, specify in the configuration file to use the UEFI ROM installed above. Please refer to the following configuration: + +``` +[hypervisor.qemu] + +# -pflash can add image file to VM. The arguments of it should be in format +# of ["/path/to/flash0.img", "/path/to/flash1.img"] +# pflashes = [] +pflashes = ["/usr/share/kata-containers/kata-flash0.img", "/usr/share/kata-containers/kata-flash1.img"] +``` + ## Run for test Let's test if the memory hotplug is ready for Kata after install the UEFI ROM. Make sure containerd is ready to run Kata before test. From ac1ce2d30be80eb903e41e3035933c6ec128a653 Mon Sep 17 00:00:00 2001 From: SinghWang Date: Thu, 19 Jan 2023 19:29:59 +0800 Subject: [PATCH 2/3] docs: Fix missing critical steps in how-to-hotplug-memory-arm64.md The key steps in how-to-hotplug-memory-arm64.md are missing, resulting in the kata qemu pod not being created successfully. Fixes: #6105 Signed-off-by: SinghWang --- docs/how-to/how-to-hotplug-memory-arm64.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/how-to/how-to-hotplug-memory-arm64.md b/docs/how-to/how-to-hotplug-memory-arm64.md index 5bd419db3d..770cf93e1e 100644 --- a/docs/how-to/how-to-hotplug-memory-arm64.md +++ b/docs/how-to/how-to-hotplug-memory-arm64.md @@ -17,14 +17,13 @@ $ popd ## Config KATA QEMU -After executing the above script, two files will be generated under the directory /usr/share/kata-containers/ by default, namely kata-flash0.img and kata-flash1.img. Next we need to change the configuration file of kata qemu, which is in /opt/kata/share/defaults/kata-containers/configuration-qemu.toml by default, specify in the configuration file to use the UEFI ROM installed above. Please refer to the following configuration: +After executing the above script, two files will be generated under the directory `/usr/share/kata-containers/` by default, namely `kata-flash0.img` and `kata-flash1.img`. Next we need to change the configuration file of kata qemu, which is in `/opt/kata/share/defaults/kata-containers/configuration-qemu.toml` by default, specify in the configuration file to use the UEFI ROM installed above. Please refer to the following configuration. ``` [hypervisor.qemu] # -pflash can add image file to VM. The arguments of it should be in format # of ["/path/to/flash0.img", "/path/to/flash1.img"] -# pflashes = [] pflashes = ["/usr/share/kata-containers/kata-flash0.img", "/usr/share/kata-containers/kata-flash1.img"] ``` From 0d7bd066d39a2e1a254f8a8e457271fe4428b713 Mon Sep 17 00:00:00 2001 From: SinghWang Date: Fri, 20 Jan 2023 11:48:13 +0800 Subject: [PATCH 3/3] docs: Fix missing critical steps in how-to-hotplug-memory-arm64.md The key steps in how-to-hotplug-memory-arm64.md are missing, resulting in the kata qemu pod not being created successfully. Fixes: #6105 Signed-off-by: SinghWang --- docs/how-to/how-to-hotplug-memory-arm64.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/how-to/how-to-hotplug-memory-arm64.md b/docs/how-to/how-to-hotplug-memory-arm64.md index 770cf93e1e..082397d7c7 100644 --- a/docs/how-to/how-to-hotplug-memory-arm64.md +++ b/docs/how-to/how-to-hotplug-memory-arm64.md @@ -17,7 +17,7 @@ $ popd ## Config KATA QEMU -After executing the above script, two files will be generated under the directory `/usr/share/kata-containers/` by default, namely `kata-flash0.img` and `kata-flash1.img`. Next we need to change the configuration file of kata qemu, which is in `/opt/kata/share/defaults/kata-containers/configuration-qemu.toml` by default, specify in the configuration file to use the UEFI ROM installed above. Please refer to the following configuration. +After executing the above script, two files will be generated under the directory `/usr/share/kata-containers/` by default, namely `kata-flash0.img` and `kata-flash1.img`. Next we need to change the configuration file of `kata qemu`, which is in `/opt/kata/share/defaults/kata-containers/configuration-qemu.toml` by default, specify in the configuration file to use the UEFI ROM installed above. Please refer to the following configuration. ``` [hypervisor.qemu]