Can't migrate VM to different storage volume

js-monroe

New Member
Aug 9, 2023
11
2
3
Hi, Been using Proxmox on a test server and realize I want to commit a more substantial machine to using this awesome VE. Only to learn that differently named storage volumes cannot be migrated using the Web GUI.

Okay then, no problem.

So I try using the console and this happens:

qm migrate 102 proxmox1 --targetstorage SSD-500GB --online
2023-08-08 21:02:59 starting migration of VM 102 to node 'proxmox1' (192.168.0.103)
2023-08-08 21:02:59 found local disk 'RAID-MIRROR-1TB:vm-102-disk-0' (attached)
2023-08-08 21:02:59 found local disk 'local:iso/debian-11.7.0-amd64-netinst.iso' (attached)
2023-08-08 21:02:59 can't migrate local disk 'RAID-MIRROR-1TB:vm-102-disk-0': can't live migrate attached local disks without with-local-disks option
2023-08-08 21:02:59 can't migrate local disk 'local:iso/debian-11.7.0-amd64-netinst.iso': can't live migrate attached local disks without with-local-disks option
2023-08-08 21:02:59 ERROR: Problem found while scanning volumes - can't migrate VM - check log
2023-08-08 21:02:59 aborting phase 1 - cleanup resources
2023-08-08 21:02:59 ERROR: migration aborted (duration 00:00:00): Problem found while scanning volumes - can't migrate VM - check log
migration aborted

*So I guess maybe the logs will be helpful? But which ones?
Any attention/help offered will be greatly appreciated. I've been banging away at this for a few days off and on reading all sorts of tutorials, but no luck so far. I'm considering just rebuilding the VM's fresh on the new server at this point. :(
 
Hi, as the log state rather clearly, you cannot live migrate a VM with attached local disks. If you want to migrate them regardless, you will have to also pass the with-local-diks flag. See excerpt from man qm
Code:
       --with-local-disks <boolean>
           Enable live storage migration for local disk

Also, you might want to detach the debian install iso which is still attached and probably not needed anymore.
 
Thanks for the reply. I added the --with-local-disks flag and it didn't work initially. But when I detached the debian ISO and issued the command again, then it worked after that. :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!