Mikrotik Qemu

Posted : admin On 1/24/2022
  1. Mikrotik Queus
  2. Mikrotik Qemu Login
  3. Mikrotik Queue-type
  4. Qemu Mikrotik Chr
  • Create a new guest with the system disk and other devices as required.

Qemu 2.4.0.1 on Linux and OS X Hyper-V on Windows Server 2008r2, 2012 and Windows 10 (Only Generation 1 Hyper-V virtual machine is supported at the moment) Xen Project 4.6.5. Hi, when add one Mikrotik device, there is no problem, but when for example 2 to associate them with each other fails as I understand because of the same Mac addresses. UNetLab version: 1.0.0-12 QEMU version: 2.4.0. To change the Mac address on the interface Mikrotik fails.

  • Then you have to manually upload the CHR disk (in qcow format) on the ProxMox host.
  • Use scp or any other comparable tool as that will use SSH for the upload and it does not require any additional configuration.
Mikrotik Qemu
  • Either copy the file to the server and then manually edit the VM's .conf file or replace previously created system image file used for booting the guest.

Mikrotik Queus

  • Local storage on ProxMox is in /var/lib/vz directory. There should be a subdirectory called images with a directory for each VM (named by the VM number). You can copy the files directly there.
  • For adding the existing file to the VM, edit the VM's .conf file directly. Look in /etc/pve/qemu-server/ for a file with the VM number followed by .conf.

Note: It's a good idea to create a second test VM so you can refer to it's .conf file to make sure you get the syntax right


Alternative approach

  • Create Basic VM via ProxMox web GUI.
  • Make sure that VM storage is on local storage (this way there will no need to work with LVM config side, and disk image can be moved later on to LVM or other desired storage if needed).
  • Log into ProxMox host via SSH and navigate to VM image directory. Default local storage is located in: var/lib/vz/images/(VM_ID)
  • Via scp, wget or any other tool download CHR raw image (.img file) into this directory.
  • Now convert the CHR raw image to qcow2 format using qemu-img tool:

Mikrotik Qemu Login

Bash script approach

If you have access to ProxMox host then CHR VM can also be created quickly via BASH script. Below example of one such script.

What this script does:

  • Stores tmp files in: /root/temp dir.
  • Downloads raw image archive from MikroTik download page.
  • Converts image file to qcow format.
  • Creates basic VM that is attached to MGMT bridge.

Useful tips

Mikrotik Queue-type

  • Useful snippet to clean up the BASH script from Windows formatting that may interfere with script if it's edited on a Windows workstation:

Qemu Mikrotik Chr

Retrieved from 'https://wiki.mikrotik.com/index.php?title=Manual:CHR_ProxMox_installation&oldid=33802'