CHR Proxmox 5.3 ZFS Raid-1

Trying to install CHR on Proxmox 5.3

Instructions https://wiki.mikrotik.com/wiki/Manual:CHR_ProxMox_installation is not suitable.

For HDD, only local-zfs (ZFS) is available.
ZFS is configured as Raid1: rpool
root@pve:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 2.39G 226G 104K /rpool
rpool/ROOT 1.19G 226G 96K /rpool/ROOT
rpool/ROOT/pve-1 1.19G 226G 1.19G /
rpool/data 1.20G 226G 104K /rpool/data
rpool/data/subvol-100-disk-0 400M 7.61G 400M /rpool/data/subvol-100-disk-0
rpool/data/subvol-101-disk-0 427M 3.58G 427M /rpool/data/subvol-101-disk-0
rpool/data/subvol-102-disk-0 398M 3.61G 398M /rpool/data/subvol-102-disk-0
The qcow2 format can only be used for local (Directory)

I tried to create RAW images in different ways and put rpool folders in different places.

Tell me, how can I install a CHR image on Proxmox 5.3 for ZFS Raid1?

Really? Nobody set CHR on Proxmox with ZFS?

I run a CHR on proxmox kvm, no problem on a ceph cluster for storage. Haven’t tried it on just zfs.


Sent from my SM-A520W using Tapatalk

The below is how I do it which might give you some ideas. Use at your own risk etc etc.

  1. Create a VM in the Proxmox VE web interface. Make a note of the VM ID (in my example 351).

  2. SSH in to the VM host.

  3. Download the image

wget https://download.mikrotik.com/routeros/6.42.12/chr-6.42.12.img.zip
  1. Unzip the image
unzip chr-6.42.12.img.zip
  1. dd the image to the zfs zvol
dd if=chr-6.42.12.img of=/dev/zvol/local-zfs/vm-351-disk-0

(where 351 is the ID of your VM and local-zfs is the name of the pool)


6. Start VM in the Proxmox VE web interface.

Thanks to all!

I did it with the help of the command:
dd if=chr-6.42.12.img of=/dev/zvol/rpool/data/vm-103-disk-0