From 4ef057e15559e4b828bceee14b1e08aff70e3b16 Mon Sep 17 00:00:00 2001 From: Luc BEAUFILS Date: Fri, 13 Dec 2024 16:57:41 +0100 Subject: [PATCH] ssc600sw: add the qcow2 disk image example inventory The vm inventory can be used in standalone or in cluster mode. The qcow2 disk image is mandatory in cluster mode. The disk image can be converted from raw to qcow2 with qemu-img convert. Signed-off-by: Luc BEAUFILS --- inventories/providers/abb/README.md | 4 +++- ...c600_vm_standalone_example.yaml => ssc600_vm_example.yaml} | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) rename inventories/providers/abb/{ssc600_vm_standalone_example.yaml => ssc600_vm_example.yaml} (85%) diff --git a/inventories/providers/abb/README.md b/inventories/providers/abb/README.md index a9515a6ab..dc08c570e 100644 --- a/inventories/providers/abb/README.md +++ b/inventories/providers/abb/README.md @@ -7,7 +7,7 @@ The VM deployment has been tested on a yocto and a debian hypervisor. ## Structure - `ssc600_hypervisor_standalone_example.yaml`: The inventory for a standalone hypervisor -- `ssc600_vm_standalone_example.yaml`: The inventory for the SSC600 VM +- `ssc600_vm_example.yaml`: The inventory for the SSC600 VM ## Files needed @@ -19,6 +19,8 @@ To use them, they can be copied in the `files` directory at the root of ansible. > The raw image disk can be converted to qcow2 format. The disk_extract variable has to be set to false. +In a cluster, the deployment playbook wants a qcow2 file. The convertion is needed and can be done with `qemu-img convert` + ## Prerequisite The VM need at least 30GB of free space. Ansible deploy it in the /var/lib/libvirt/images directory. diff --git a/inventories/providers/abb/ssc600_vm_standalone_example.yaml b/inventories/providers/abb/ssc600_vm_example.yaml similarity index 85% rename from inventories/providers/abb/ssc600_vm_standalone_example.yaml rename to inventories/providers/abb/ssc600_vm_example.yaml index 16cf1c752..e6876f4f4 100644 --- a/inventories/providers/abb/ssc600_vm_standalone_example.yaml +++ b/inventories/providers/abb/ssc600_vm_example.yaml @@ -10,6 +10,9 @@ all: vm_template: "../templates/vm/ssc600.xml.j2" vm_disk: "../files/ssc600_disk.img.gz" disk_extract: true + # In cluster mode, the disk has to be in qcow2 format: + #vm_disk: "../files/ssc600_disk.qcow2" + #disk_extract: false memory: 6 cpuset: [4, 5, 6, 7] emulatorpin: 3