- create bridges for use by mikrotik CHR
- create VM with VM ID 100 without any media (also delete existing scsi0 disk in the wizard)
ver=7.16.2
wget https://download.mikrotik.com/routeros/$ver/chr-$ver.img.zip
apt update
apt install unzip
unzip chr-$ver.img.zip
qemu-img resize -f raw chr-$ver.img 256M
# number 100 below is the VM ID
qm disk import 100 chr-$ver.img local-lvm
- add unused disk to VM (under
Hardware
menu) - fix
Boot Order
(underOptions
menu) - convert into template
- clone template
- attach bridge to VM
- for high traffic router (e.g. 10G port), set multiqueue to the number of VM's vCPU. (
Hardware
> Edit Network Device > Advanced > Multiqueue) - start VM
- config auto-start
References: