How to migrate KVM VM from cli?

achekalin

Member
Jun 17, 2011
74
0
6
Hi,

I'm trying to setup (kind of) HA cluster with two Proxmox servers. I've set up cluster and DRBR, and I'm able to do live migrate KVM VMs from one server to another. Now I need to do that automatically as server goes down.

As far I think I can user heartbeat program to track the fact that one server become unresponsive and this will trigger the migrate process. The problem is, I don't know how to make VM(-s) to migrate from command line.

Did someone tried that? If my way of solve that problem the good one or maybe there is some other better solution? And, the main question: how can I migrate VM from cli with no tricks?

Thank you in advance!
 

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!