Move VMs between nodes with no downtime, if you have a cluster + suitable storage and a good migration network. Step by step, with cluster networking.
1. Requirements
# cerinte: cluster format + quorum
pvecm status
# storage partajat (Ceph) SAU local cu replicare ZFS pe ambele noduri
2. Dedicated migration network
# retea DEDICATA de migrare (nu pe LAN-ul de management)
# /etc/pve/datacenter.cfg :
migration: type=secure,network=10.10.40.0/24
3. Bonding + VLAN
# exemplu bonding + VLAN in /etc/network/interfaces
auto bond0
iface bond0 inet manual
bond-slaves eno1 eno2
bond-miimon 100
bond-mode 802.3ad
auto vmbr0
iface vmbr0 inet static
address 10.10.40.11/24
bridge-ports bond0
bridge-vlan-aware yes
4. Live migration
# migrare LIVE (online), fara oprirea VM-ului
qm migrate 100 pve2 --online
# containere (LXC) — migrare cu restart scurt:
pct migrate 200 pve2 --restart
5. CPU compatibility
# pt migrare intre CPU-uri diferite, foloseste un tip compatibil
# VM -> Hardware -> Processors -> Type = x86-64-v2-AES (nu 'host')
qm set 100 --cpu x86-64-v2-AES
6. Verify
qm status 100 # ruleaza pe noul nod?
pvecm status # quorum ok
ha-manager status # daca folosesti HA
Conclusion
You now have live migration with no downtime, with a properly sized cluster network. We design and configure it for you.