[SOLVED] QM Migrate Confusion

proxdrop

New Member
Aug 16, 2024
10
1
3
qm migrate is a simple enough command - I just need to specify the VMID and node, and it should just work. However, I can only "push" VMs to remote nodes - I can't "pull" vms to my current node. Why is this?

Syntax/Situation:
3 node cluster, ceph enabled and accessible on all. vm1234 resides on ceph
node1
node2 - working directory
node3 - contains vmid 1234

qm migrate 1234 node2 --online fails: 400 parameter verification failed. target: node is local node.

What gives? Moving via web gui and moving from node2 -> node3 all work just fine. Is the only "alternative" to ssh into node3 to "push" VMID 1234 back to node2? Is there an alternate pvesh command with similar functionality?

EDIT: Is this a consequence of the vm config file "living" on the remote server, not the local?
 
Last edited:
Hi @proxdrop ,

"qm" command interface can only manipulate the VMs local to where "qm" is running. Lets just say for historical reasons.

If you want to "pull" migrate (or do anything else), you need to use pvesh interface. There you can and must specify the Node you are addressing.
You can also use API directly, of course.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: proxdrop
Hi @proxdrop ,

"qm" command interface can only manipulate the VMs local to where "qm" is running. Lets just say for historical reasons.

If you want to "pull" migrate (or do anything else), you need to use pvesh interface. There you can and must specify the Node you are addressing.
You can also use API directly, of course.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox

Thanks. Hilariously, in my research I found your old post on the matter and the syntax worked, so thanks.

Code:
pvesh create /nodes/"$start_host"/qemu/"$vmid"/migrate -target "$end_host" -online 1

https://forum.proxmox.com/threads/m...nother-within-same-cluster.129195/post-565669
 

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!