I've been running a Mikrotik CHR VM version 6.41.2 for some time now, only for the record of using the embedded TheDude network monitoring package. Since I've been having problems with shutting the VM down before taking a backup from PVE, I've been searching for a way to notify the VM. This was not always a problem, problems have started appearing about 1-2 months ago. The error during shutdown is TASK ERROR: VM quit/powerdown failed
This could be accomplished if the VM supported the QEMU Agent. According to https://wiki.mikrotik.com/wiki/Manual:CHR#KVM, CHR VMs do support this feature. However even though my hypervisor (Proxmox 5.3) does support it as well and I've enabled the "Qemu agent" in the respective VM settings, proxmox still can not connect to the Qemu agent on CHR: from the proxmox gui, it is noted that "Guest Agent is not running".
Should I enable the Qemu agent in the CHR VM in some way?
Do note, that trying to use the command to enable chr.provision-agent (which I don't know what it is for, presumably opening a TCP/IP channel for comms? ) works, but then gives an error when I try to bring the VM up...
FYI, VM config is the following (I've added a second disk to hold graphs, data etc):
Backup log too:
This could be accomplished if the VM supported the QEMU Agent. According to https://wiki.mikrotik.com/wiki/Manual:CHR#KVM, CHR VMs do support this feature. However even though my hypervisor (Proxmox 5.3) does support it as well and I've enabled the "Qemu agent" in the respective VM settings, proxmox still can not connect to the Qemu agent on CHR: from the proxmox gui, it is noted that "Guest Agent is not running".
Should I enable the Qemu agent in the CHR VM in some way?
Do note, that trying to use the command to enable chr.provision-agent (which I don't know what it is for, presumably opening a TCP/IP channel for comms? ) works, but then gives an error when I try to bring the VM up...
FYI, VM config is the following (I've added a second disk to hold graphs, data etc):
Code:
agent: 1
balloon: 0
boot: cdn
bootdisk: ide0
cores: 1
ide0: local:106/vm-106-disk-1.qcow2,size=128M
memory: 128
name: thedude.mydomain
net0: virtio=52:XX:XX:XX:XX:XX,bridge=vmbr0
numa: 0
onboot: 1
ostype: l26
scsi0: images:vm-106-disk-1,size=20G
scsihw: pvscsi
smbios1: uuid=94dac97d-18f6-4132-b27f-cbbef3fd315f
sockets: 1
Backup log too:
Code:
2019-01-27 02:10:18 INFO: Starting Backup of VM 106 (qemu)
2019-01-27 02:10:18 INFO: status = running
2019-01-27 02:10:19 INFO: update VM 106: -lock backup
2019-01-27 02:10:19 INFO: backup mode: stop
2019-01-27 02:10:19 INFO: ionice priority: 7
2019-01-27 02:10:19 INFO: VM Name: thedude.mydomain
2019-01-27 02:10:19 INFO: include disk 'ide0' 'local:106/vm-106-disk-1.qcow2' 128M
2019-01-27 02:10:19 INFO: include disk 'scsi0' 'images:vm-106-disk-1' 20G
2019-01-27 02:10:19 INFO: stopping vm
2019-01-27 02:20:20 INFO: VM quit/powerdown failed
2019-01-27 02:20:21 ERROR: Backup of VM 106 failed - command 'qm shutdown 106 --skiplock --keepActive --timeout 600' failed: exit code 255
Last edited: