how to know progressing vm migrating

The migrate api call will return a task-id which you can query for information about the migration task.
 
i tried with GET /api2/json/cluster/tasks.

{'pid': 2063, 'type': 'qmigrate', 'id': '102', 'node': 'serv-xxx', 'user': 'xxx', 'saved': '0', 'upid': 'UPID:serv-xxx:0000080F:086514BD:5EC28AA7:qmigrate:102:xxx:', 'starttime': 1589807783}

And with GET /api2/json/nodes/{node}/tasks/{upid}/status
{"status":"running","upid":"UPID:serv-xxx:00000F57:0865BF66:5EC28C5C:qmigrate:102:xxx:","starttime":1589808220,"node":"serv-xxx","user":"xxx","pid":3927 ,"id":"102","type":"qmigrate","pstart":140885862}

but there are not of "good" data.
Nothing on the task progress !
 
it's better. it works but isn't easy. I must select the last task in the list. it can't be easier ?
 
If you start a migration the returned value is the taskID of the migration task.
 
Yes I know. The "upid". You already spoke this in #2. But the question is "it can't be easier for follow the migrate progress" ?
 
I must select the last task in the list.
I mentioned it, because you said you need to select the last task in the list.

There is no easier way.
 

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!