Installing custom ISO image to OVH VPS
1) Reboot VPS in rescue mode
2) Connect to Rescue Mode via SSH, unmount /dev/sdb1 and remove all /dev/sdbX partitions:
lsblk
umount /dev/sdb1
fdisk -u /dev/sdb
> d
> d
> w
3) Install required packages:
# apt update
# apt install qemu-kvm
4) Make a RAM disk for the ISO (in this example we set 2GB):
# mkdir /mnt/ramdisk
# mount -t tmpfs -o rw,size=2G tmpfs /mnt/ramdisk
# cd /mnt/ramdisk/
# wget https://espeon.dev/pfSense-CE-2.6.0-RELEASE-amd64.iso
6) Run qemu (replace ISO location and vdisk name if required):
# qemu-system-x86_64 -netdev type=user,id=mynet0 -device virtio-net-pci,netdev=mynet0 -m 2048 -enable-kvm -drive index=0,media=disk,if=virtio,file=/dev/sdb -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -daemonize -cdrom /mnt/ramdisk/pfSense-CE-2.6.0-RELEASE-amd64.iso -boot d
7) If your workstation is running Linux, forward a port through an SSH tunnel to your VPS (for Windows open powershell and run command):
# ssh -4 -v root@<your_vps_ip> -L 5900:localhost:5900
# remote-viewer
> spice://127.0.0.1?port=5900
9) Perform installation as usual.
10) Reboot server and exit Rescue Mode.
11) Connect to your new instance running your custom OS.