Can't connect to VM after live migration

Sobq

New Member
Jul 27, 2023
7
0
1
Hello everyone,

After I do a live migration of a vm to another node in a 3 node cluster; I cannot connect to it using it's ip address from the original node (when migration is done the ping from the node to the vm stops responding).

Following is the /etc/network file which is the same for all the nodes (the network card names do differ):


auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp8s0
iface enp8s0 inet static
address <>
gateway <>
up route add -net <> netmask 255.255.255.224 gw <> dev enp8s0

iface enp8s0 inet6 static
address <>
gateway <>

auto enp8s0.4000
iface enp8s0.4000 inet static
address 192.168.100.2
netmask 255.255.255.0
vlan-raw-device enp8s0
mtu 1400


iface eth0 inet manual

auto vmbr99
#private sub network
iface vmbr99 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0

post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o enp8s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o enp8s0 -j MASQUERADE

post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
 
it allows you to span an overlay network across your nodes
 
then you might want to read up about networking basics and VXLAN. how to set it up in PVE is described in the linked chapter of the docs.
 

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!