# RHCOS on Exoscale ## Prerequisites - 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`. ## Modify the RHCOS qcow ```Bash gunzip rhcos-4.6.8-x86_64-qemu.x86_64.qcow2.gz ``` ```Bash sudo guestfish --rw -a rhcos-4.6.8-x86_64-qemu.x86_64.qcow2 ``` ### Inside the guestfish shell ```Bash > run ``` ```Bash > list-filesystems /dev/sda1: ext4 /dev/sda2: vfat /dev/sda3: unknown ``` ```Bash > mount /dev/sda1 / ``` ```Bash > 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` ```Bash > exit ``` Finally, you can use this Qcow2 as a [Custom Template](https://community.exoscale.com/documentation/compute/custom-templates/) on Exoscale infrastructure. ## Enjoy :rocket: