apprell / proxmox-autosnap

Automatic ZFS Snapshot Script for Proxmox VE 5, 6, 7 and 8
71 stars 15 forks source link

Fix send-to-zfs crash when VM has a detached CDROM #19

Closed lowell80 closed 2 weeks ago

lowell80 commented 2 weeks ago

Example of a problematic config:

root@proxmox-node01:~# qm config 104 | grep ide
boot: order=virtio0;ide2;net0
ide2: none,media=cdrom

This would run the command pvesm path none which would produce the output:

400 Parameter verification failed.
volume: invalid format - unable to parse volume ID 'none'

Simply skipping "none" devices should prevent this. While looking for media=cdrom may also work, this seemed like the most direct approach without having to remember to add backup=0 to all VMs.