

# Check if image is available and download if neededĮcho "- Downloading CHR $version image file."Įcho "-" Read -p "Please input CHR version to deploy (6.38.2, 6.40.1, etc):" version Creates a basic VM that is attached to the MGMT bridge.Įcho "# Start of Script #Įcho "# Preparing for image download and VM creation!".Downloads raw image archive from MikroTik download page.If you have access to the ProxMox host then CHR VM can also be created quickly via BASH script.

Qemu-img convert -f raw -O qcow2 chr-6.40.3.img vm-(VM_ID)-disk-1.qcow2 Bash script approach Now convert the CHR raw image to qcow2 format using qemu-img tool:.Via scp, wget or any other tool download CHR raw image (.img file) into this directory.Default local storage is located in: var/lib/vz/images/(VM_ID) Log into ProxMox host via SSH and navigate to the VM image directory.

