-
Download the latest RHCOS build for qemu. (e.g: rhcos-4.6.8-x86_64-qemu.x86_64.qcow2) https://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/4.6/4.6.8/rhcos-4.6.8-x86_64-qemu.x86_64.qcow2.gz
-
Install guestfish
sudo apt install libguestfs-tools
.
gunzip rhcos-4.6.8-x86_64-qemu.x86_64.qcow2.gz
sudo guestfish --rw -a rhcos-4.6.8-x86_64-qemu.x86_64.qcow2
><fs> run
><fs> list-filesystems
/dev/sda1: ext4
/dev/sda2: vfat
/dev/sda3: unknown
><fs> mount /dev/sda1 /
><fs> edit /loader/entries/ostree-1-rhcos.conf
A default text editor is opened, inside this file replace ignition.platform.id=qemu
by ignition.platform.id=exoscale
><fs> exit
Finally, you can use this Qcow2 as a Custom Template on Exoscale infrastructure.