www.rodneybeede.com "I would love to change the world, but they won't give me the source code" - unknown
 Navigation

ProxMox and clustering on non-default LAN (subnets) - Last Modified 2011-11-05 15:18 UTC - Created 2011-10-19 01:44 UTC

Basic normal instructions work okay when you don't have special subnets or VLANs, but the scripts on both the master and peer nodes fail if you don't have a specific IP configured for eth0.

I don't want one on the default VLAN on eth0 so I got around the problem by typing in an address in /etc/network/interfaces for eth0. The script just parses this file and doesn't care if the interface actually has that IP. It is just an auto-probe reference limitation.

Something as simple as the following works fine for slave nodes:

iface eth0 inet manual
        address 172.16.0.121
        netmask 255.255.255.0

Don't restart the networking, just modify the configuration file and run "pveca -a -h IP-ADDRESS-MASTER". You may see a few warnings about missing localip, but you can ignore those. Change the file back after you've added it.

You can also manually modify the /etc/pve/cluster.cfg and /etc/pve/master/cluster.cfg files if needed.