Skip to content

Commit

Permalink
ssc600sw: add the qcow2 disk image example inventory
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lucbeaufils committed Dec 16, 2024
1 parent 1c2bd6f commit 4ef057e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inventories/providers/abb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ef057e

Please sign in to comment.