Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170760

VM migration problems (networking does not work correctly)

$
0
0
Hi all,

I have a problem with online migration. The VM looses its network when migrated.
Here is my setup:

Two hypervisors, configured as a cluster (let's name it A & B), each of it has two physical network connections (eth0 + eth1).
-> On eth0, I have 3 vlans (tagged: 274+275+277) plus a "bond setup" (with only eth0 in it).
-> On eth1, I only have on vlan (untagged), which is used for iSCSI shared storage.

I have the following /etc/network/interface on both hypervisors:
Code:


auto lo
iface lo inet loopback

auto bond0
iface bond0 inet manual
        slaves eth0
        bond_miimon 100
        bond_mode 4


## Vlan 274 -- Xenserver
auto bond0.274
iface bond0.274 inet manual
        vlan-raw-device bond0

auto vmbr0
iface vmbr0 inet static
    address 193.17.x.x
    netmask 255.255.255.240
    gateway 193.17.x.x
    bridge_ports bond0.274
    bridge_stp off
    bridge_fd 0

## Vlan 90 - Untag - BO
auto vmbr1
iface vmbr1 inet static
        address 172.16.192.4
        netmask 255.255.0.0
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0


## Vlan 275 -- Proxmox IVR
auto bond0.275
iface bond0.275 inet manual
        vlan-raw-device bond0

auto vmbr2
iface vmbr2 inet manual
        bridge_ports bond0.275
        bridge_stp off
        bridge_fd 0


## Vlan 277 -- Proxmox GN
auto bond0.277
iface bond0.277 inet manual
        vlan-raw-device bond0

auto vmbr3
iface vmbr3 inet manual
        bridge_ports bond0.277
        bridge_stp off
        bridge_fd 0


The problem I encounter is the following:
When I create a VM on node A, boot it, etc, it works perfectly.
-> If I migrate it to node B, the migration succeeds, but I cannot ping anymore the VM.
I also cannot get a console connection using the web interface (unresponsive), or either shutdown it (timeout).
The only working alternatives for me, are either to re-migrate it to node A (and it pings again, and I can notice it didn't reboot), or to reset it using the web interface.
However, I can notice on the switch side, that the VM's mac is present at a layer2 level, on the right node.

-> If I reset the VM while it is running on node B (and being unresponsive), it reboots, and ping again.
After that, I can migrate it from B to A (and vice versa), and everything is fine.

I can reproduce the problem on vlan 274 and vlan 275. Didn't try on vlan 275 yet, because I do not have any available IPs on it yet.


Conclusion: If the VM has been booted on node B, it can be migrated smoothly. If it has been booted on node A, it only can work on node A.


Did I miss something on my conf ? Or, maybe, there is a bug ? The VMs network settings have been tested with e1000 & virtio.

Viewing all articles
Browse latest Browse all 170760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>