[SOLVED] Migration error: VM seems to still be hung up on a cdrom image?

dtiKev

Well-Known Member
Apr 7, 2018
78
4
48
I'm running two 5.4-13 servers where one essentially gets replicated images daily so that in a catastrophie I can spin machines up. I power down and cold migrate machines on a schedule to get both systems time to reboot and also that's how I run updates. Recently, two debian servers had what I thought were similar problems in that they wouldn't cold migrate and they seemed to be complaining about the original boot cd.iso I had used for installs. Upon checking neither still had them mounted in the hardware settings and I confirmed with the qm config commands.

I went ahead and deleted the CDROM hardware from one of the configs and booted to make sure that didn't cause a problem - all good. I powered it down and tried - different error about qcow already existing. So on the destination system I moved the 105 directory from images and the migration worked. Problem is second system is still hung up with the cdrom image error even though I have removed the cdrom from it's hardware. Add to that, all of my images DO exist on both systems... but regardless of that, the qm config shows no cdrom drive.

How can I fix this so migration will work again?

2020-01-31 11:05:50 starting migration of VM 101 to node 'pvn1' (10.11.12.251)
2020-01-31 11:05:51 found local disk 'TwoT:101/vm-101-disk-0.qcow2' (in current VM config)
2020-01-31 11:05:51 found local disk 'local:iso/ubuntu-18.04.3-live-server-amd64.iso' (referenced by snapshot(s))
2020-01-31 11:05:51 can't migrate local disk 'local:iso/ubuntu-18.04.3-live-server-amd64.iso': local cdrom image
2020-01-31 11:05:51 can't migrate local cdrom drive
2020-01-31 11:05:51 ERROR: Failed to sync data - can't migrate VM - check log
2020-01-31 11:05:51 aborting phase 1 - cleanup resources
2020-01-31 11:05:51 ERROR: migration aborted (duration 00:00:01): Failed to sync data - can't migrate VM - check log
TASK ERROR: migration aborted
 
Last edited:
hi,

Code:
2020-01-31 11:05:51 found local disk 'local:iso/ubuntu-18.04.3-live-server-amd64.iso' (referenced by snapshot(s))

you can manually edit the conf file /etc/pve/qemu-server/VMID.conf and remove the lines with the cdrom image
 
  • Like
Reactions: dtiKev
glad your issue is solved!

you can mark the thread as [SOLVED] so others know what to expect