Migrating between hosts on internal IP

dafydd

Renowned Member
Apr 24, 2010
37
6
73
Cardiff, Wales
I have a Proxmox host that has two physical Ethernet ports. eth0 is the public network,. The internal network is connected to a 1GB VLAN.

eth0 is configured with a public IP - e.g. a.b.c.10 and eth1 is configured with an internal IP 192.168.0.10

I recently added a second host to the cluster with a public IP a.b.c.11 and internal IP 192.168.0.11
However when adding this host I added it using the public IP. So when I migrate a VM between the two hosts, it uses the public IP not the internal IPs.

I do have /etc/hosts configured on each server e.g.

192.168.0.10 vmhost1
192.168.0.11 vmhost2

Is there a way to force internal traffic across eth1? Or, should I remove the second node from the cluster and add it again using the internal IP?
 
Replying to myself on this, as I picked up a clue from http://forum.proxmox.com/threads/10137-Wrong-IP-of-node-in-cluster

In /etc/hosts, the public IP was listed with both the hostname and fully qualified domain
The internal IPs were also in the file along with other hostnames (without a domain name)

I removed the hostname alias from the public IP on both nodes and rebooted both. So now the nodes are using the 192.168.0.x IPs and I can migrate VMs across the internal LAN. I did have to ssh from one node to the other first to add the new SSH key/ip combination.
 

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!