Network and storage by hand
The install command in Adding a node sets up the bridge and storage itself, on Ubuntu (netplan), Debian (ifupdown) and Rocky Linux or AlmaLinux (NetworkManager). Set them up by hand when the command couldn’t, for example with a bonded network, or when you’d rather do it yourself.
Do this as root, preferably from a console (IPMI, iDRAC or your provider’s web console). A mistyped network change can cut off SSH.
The bridge
Servers plug into a Linux bridge on the public network. The bridge takes over the machine’s IP address. Call it br-public and the panel uses it without any setting. With another name, the panel takes the node’s bridge when there’s no br-public; if the node has more than one, pick it under the node’s Settings → Network → Public bridge.
Find your interface’s name, address and gateway first:
ip -br addr
ip route show default
# /etc/netplan/01-br-public.yaml, replacing the interface's own settings in the other files
network:
version: 2
ethernets:
eno1:
dhcp4: false
dhcp6: false
bridges:
br-public:
interfaces: [eno1]
macaddress: aa:bb:cc:dd:ee:ff # eno1's MAC, from: cat /sys/class/net/eno1/address
addresses: [203.0.113.10/24]
routes:
- to: default
via: 203.0.113.1
nameservers: { addresses: [1.1.1.1] }
parameters: { stp: false, forward-delay: 0 }# /etc/network/interfaces (apt-get install -y bridge-utils first)
auto eno1
iface eno1 inet manual
auto br-public
iface br-public inet static
address 203.0.113.10/24
gateway 203.0.113.1
bridge_ports eno1
bridge_stp off
bridge_fd 0
hwaddress ether aa:bb:cc:dd:ee:ffnmcli connection add type bridge ifname br-public con-name br-public ipv4.method manual ipv4.addresses 203.0.113.10/24 ipv4.gateway 203.0.113.1 ipv4.dns 1.1.1.1 bridge.stp no bridge.mac-address aa:bb:cc:dd:ee:ff
nmcli connection add type ethernet slave-type bridge ifname eno1 master br-public con-name br-public-port
# eno1's own connection stops starting at boot; bringing up the port takes eno1 over from it
nmcli connection modify "$(nmcli -g GENERAL.CONNECTION device show eno1)" connection.autoconnect no
nmcli connection up br-public-port; nmcli connection up br-publicApply it: on Ubuntu netplan try (it undoes the change if you don’t confirm), on Debian systemctl restart networking; on Rocky and Alma the last two commands apply it.
Check: ip -br addr show br-public shows the machine’s address, and you can still reach it. The agent reports the new bridge to the panel within a minute; restarting it does so at once: systemctl restart panel-agent.
Customers’ private networks don’t need a bridge from you: the agent makes a VXLAN bridge for each network and the encrypted tunnel between nodes (see Between nodes).
Storage
The panel registers the node’s storage itself when it first connects. To set up something else, create it, then add it on the node’s Storage tab with Add storage:
| Kind | Set-up | Notes |
|---|---|---|
| LVM thin (recommended) | pvcreate /dev/nvme1n1 && vgcreate vg0 /dev/nvme1n1 && lvcreate -l 90%FREE --thinpool data vg0 |
Fast snapshots, thin provisioning. The install command’s --storage-disk does this for you, as panel/data. |
| LVM | A volume group with free space | Thick volumes |
| ZFS | An existing pool, e.g. tank |
Install ZFS yourself |
| qcow2 files | Any folder; /var/lib/libvirt/images needs nothing |
Simplest to set up |
See Storage for how pools, tiers and thin provisioning work.
Between nodes
Moving servers between nodes uses SSH between their management addresses. Customers’ private networks travel between nodes as VXLAN inside an encrypted WireGuard tunnel. Allow, between nodes:
| Port | Used for |
|---|---|
| TCP 22, or the node’s SSH port | Moving servers (over SSH as root) |
| UDP 51871 | Private networks: the encrypted tunnel between nodes (WireGuard) |
| UDP 4789 | Private networks to and from a node that can’t run the tunnel (plain VXLAN) |
The install command installs an SSH server and wireguard-tools; on a node you set up yourself, check sshd is running. A node without wireguard-tools gets it from the agent (apt-get or dnf) the first time a private network needs it.
The install command doesn’t put a firewall on the node. If a node has one of its own (ufw, firewalld), allow these ports from the other nodes there, and UDP 4789 on the panelwg0 interface. With firewalld, which Rocky Linux and AlmaLinux have on by default:
firewall-cmd --permanent --add-port=51871/udp --add-port=4789/udp --add-port=22/tcp && firewall-cmd --reload
What private networks put on a node
Only while a server on the node is on a private network, and all made and removed by the agent:
- A bridge and a VXLAN link per network, named
pn4100andvx4100after the network’s segment ID (a deleted network’s segment ID isn’t given to a new network for at least 24 hours). They have no IP address: the node itself isn’t on the customer’s network, and its own addresses and routes don’t change. - The tunnel interface
panelwg0(WireGuard, MTU 1420), with the node’s address from the tunnel range under Settings → Network & DNS (100.88.0.0/16unless you change it), and as its peers the other nodes that share a private network with this one. Each peer may only send from its own tunnel address. The node makes its WireGuard key itself and keeps it in/var/lib/panel-agent/state/wireguard.key, readable by root only; only the public key goes to the panel. - A second network card in each member server, MTU 1370, plugged in and out while it runs. The agent sets the address inside the server through the guest agent, saved so it survives a reboot (netplan, NetworkManager, ifupdown or systemd-networkd on Linux; Windows keeps it). Without a guest agent the customer gets the commands to run.
- A firewall table,
panel_vxlan. Through the tunnel, a network’s VXLAN is taken only onpanelwg0, from the tunnel addresses of the other nodes with servers on it; the tunnel’s port, UDP 51871, only from those nodes’ management addresses; and VXLAN arriving any other way is dropped. It goes in before any link is made; if it can’t be loaded, all private network traffic is dropped and the node’s private networks stay closed until it can (the task that tried says why). Each server can also only send on a private network as its own card there.
When the last server on the node leaves a network (detached, deleted, moved away), its bridge, link and firewall entries go, and the other nodes stop sending to this one; with no private network left on the node, panelwg0 goes too. After the node restarts, the agent brings the tunnel and the networks back, then starts the servers on them that libvirt couldn’t autostart.
Encryption between nodes
A private network’s traffic between nodes goes through the tunnel once every node it’s on has the tunnel up and knows the others’ keys, which takes up to a minute after a node first carries a private network. Until then it travels as plain VXLAN between the management addresses, on UDP 4789. That’s also how it stays while one of its nodes can’t run the tunnel: the node’s page shows why under Encryption (wireguard-tools couldn’t be installed, for example), and the network shows Not encrypted between hosts to the customer, and to staff with the node’s name. When a network switches to the tunnel or back, traffic between its nodes pauses for a few seconds; traffic between servers on the same node doesn’t.
Servers’ cards on a private network have an MTU of 1370, room for VXLAN inside WireGuard on a 1500-byte network. A card that still has an MTU of 1450 works through the tunnel too; to give it 1370, detach the server from the network and attach it again.
Moves travel over SSH, encrypted.