11 Five distributions
Debian, Ubuntu, Fedora, AlmaLinux and Rocky Linux side by side on one switch.
What you practice
- One cloud-init file that works on every distribution
- Comparing package managers, init and network stacks
Topology
| Node | Image | CPUs / memory | Addresses | Role |
|---|---|---|---|---|
debian | debian-13 | 1 / 1GiB | mgmt DHCP | debian-13 |
ubuntu | ubuntu-26.04 | 1 / 1GiB | mgmt DHCP | ubuntu-26.04 |
fedora | fedora-44 | 1 / 1GiB | mgmt DHCP | fedora-44 |
alma | almalinux-10 | 1 / 1GiB | mgmt DHCP | almalinux-10 |
rocky | rocky-10 | 1 / 1GiB | mgmt DHCP | rocky-10 |
Before you start
bash
vz image pull disk debian-13
vz image pull disk ubuntu-26.04
vz image pull disk fedora-44
vz image pull disk almalinux-10
vz image pull disk rocky-10Run it
bash
cd examples/11-multi-distro
vz validate
vz up
vz node ls # addresses come from DHCP
ssh lab@<address> # password: labTry it
bash
for n in debian ubuntu fedora alma rocky; do vz node console $n; doneIn each VM compare cat /etc/os-release, uname -r, the package manager (apt, dnf), and the network stack (networkctl or nmcli).
Notes
These nodes have no network-config, so each distribution configures DHCP its own way and the addresses are not fixed: vz node ls shows them.
Clean up
bash
vz down
vz destroy --yes # deletes the overlays and state of this lab