Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a proxmox cluster, that is distributed over two different subnets having two different gateways. In the first subnet VMs get an publicly available static IP address by MAC address mapping. vmbr0 is configured in this first subnet as bridge. KVM is used for virtualization.

Is it possible to keep the IP address for VMs after a live migration to the second subnet? What would be a working configuration for vmbr0 in the second subnet? VLAN, VPN, and IP tunnel are concepts I've thought about, but got no working solution.

Here is a similar case: KVM "live migration finished" detection But I do not want a new IP address. The VM should keep the IP address.

share|improve this question

2 Answers 2

How do you expect traffic to get routed to/from this server when it's on the wrong subnet?

It sounds like you need to establish 802.1q trunks from your switchgear to all of your cluster nodes. This way, you can have all of your subnets available on all the nodes.

share|improve this answer
    
I had hoped the master could work as an "intermediary" for the slave in the other subnet. And proxmox would have a specific solution for such cases. –  Kantan Jul 12 '12 at 20:23
    
There are already mechanisms in the network layer to handle this (namely 802.1q) - it would be exceedingly difficult for the proxmox folks to provide a workaround that would be applicable in all situations and on all networks. –  EEAA Jul 12 '12 at 21:02

To perform a live migration and keep the virtual machine's IP address, both hosts must be on the same subnet.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.