Hey all, I just wanted to share a quick writeup on how to set up a CHR VM on Proxmox with ZFS. Didn't find it in the forums when I was searching so in case someone else needs to, they can use this.
setting up a CHR VM on proxmox with zfs
setting up a CHR VM on proxmox with zfs
- download and unpack the CHR RAW img (https://mikrotik.com/download , find "Raw disk image") to somewhere you can access from your proxmox host
- create a new VM, preconfigured for linux 2.6+, with virtio block device storage, and at least two virtio network interfaces, one connected to uplink, the other either disconnected or connected to the downstream switch, 1 core, 256mb is fine. no need to start the VM yet, just create it.
- note the VM's number id. i'll be using 139 in this example.
- find the location on the local filesystem for the VM's disk:
- pvesm list <poolname> | grep <vmid> e.g., pvesm list mkx-mass | grep 139
- that will tell you the name of the disks attached to the VM
- pvesm path <storage>:<vm-disk-name> e.g. pvesm path mkx-mass:vm-139-disk-0
- that will tell you the full local path of the raw virtual disk
- pvesm list <poolname> | grep <vmid> e.g., pvesm list mkx-mass | grep 139
- copy the raw image to the raw virtual disk dd if=/path/to/chr/img of=/full/local/path/raw/virtual/disk e.g., dd if=/mnt/pve/foinix-proxmox-content/template/iso/chr-6.45.8.img of=/dev/zvol/mass/vm-139-disk-0
- that will dd the contents of the raw image onto the raw zvol disk of the virtual machine.