Trying nex-cluster with the ready-made images
By Roberto Arato of aratoingegneria.it
The quickest way to try nex-cluster on a PC: you download a ready-made virtual machine image, import it into VirtualBox (or VMware, or Proxmox) as many times as the nodes you want, and at the first boot each node asks what it has to do. Nothing has to be installed by hand.
Contents
- The images
- What you need
- The network in VirtualBox
- The images with a desktop: NEX Setup
- The image without a desktop: the first boot on the console
- First steps in the cluster
- VMware and Proxmox
- When something goes wrong
1. The images
| Image | What it is | RAM |
|---|---|---|
nex-cluster-desktop-gnome |
a node with the GNOME desktop, NEX Monitor and NEX Setup | 4 GB |
nex-cluster-desktop-xfce |
a node with the light XFCE desktop, NEX Monitor and NEX Setup | 3 GB |
nex-cluster |
a node without a desktop: the setup is on the console | 2 GB |
The role is not chosen by downloading a file, but at the first boot. Every image can create a new cluster or join one, and every node can run programs (compute), keep a share of the data (storage), or both. The images with a desktop can also be a terminal: they see the cluster files and run programs on the other nodes, but run nothing for others.
Three copies of the same image are a real cluster: three nodes that run programs and keep the data, with three copies of every file. One VM can be switched off and the files are still there. Every image has a second disk of 20 GB for the cluster data; it only takes space on the PC when data is written.
2. What you need
- VirtualBox 7 (Windows, Linux, macOS with an Intel processor), or VMware Workstation/Player 17, or Proxmox VE.
- Memory: the PC must have memory for all the VMs running together plus its own: for three nodes without a desktop at least 10 GB, with the desktop images more.
- No Internet needed at the first boot: the images already contain everything, storage (NEXFS) included.
- Disk space: about 5 GB for each VM, growing with the data.
Windows with Hyper-V on (used by WSL 2, Docker Desktop and virtualization-based security): VirtualBox works anyway and the images adapt by themselves.
3. The network in VirtualBox
Each VM has two network adapters, already set up in the images:
- NAT: to reach the Internet (updates);
- Host-only adapter: the cluster network, on which the nodes talk to each other, find each other, and from which your PC reaches them.
VirtualBox creates a host-only network by itself (usually 192.168.56.0/24,
with DHCP on). If on import the second adapter reports a network that does
not exist, choose it in Settings → Network → Adapter 2. For a second or third
copy of an image, import it again with another name and "Generate new MAC
addresses".
4. The images with a desktop: NEX Setup
Import
nex-cluster-desktop-xfce-VERSION.ovaornex-cluster-desktop-gnome-VERSION.ova(File → Import Appliance) and start it.The VM enters the desktop by itself and NEX Setup opens: the same window as the NEX Live USB stick.

First of all NEX Setup asks for the password of this computer: the image has no known password. Then, on the first node choose Create a new cluster: the name of the node, a cluster password (at least 8 characters, every node that joins asks for it) and what the node does. The cluster announces itself on the network.
On the other nodes choose Join a cluster: the cluster of the first node is in the list; then the cluster password and what the node does.
The data of the cluster go on the second disk of the VM, prepared by itself at
the first start. Once the setup is done, on all three images sudo asks for
the password of nex, which is the cluster password. The guide of the USB stick shows every page of
NEX Setup, with pictures.
More space for the data. Add a disk to the VM (with the VM off or on, depending on the
hypervisor), then on the node open NEX Setup from the applications menu and choose Add a
disk; on the image without a desktop: sudo nexctl storage disk-add sdc. A node holds up to
16 disks; the node stays in the cluster while the disk joins.
5. The image without a desktop: the first boot on the console
Import
nex-cluster-VERSION.ovaand start it. Instead of the login, the first-boot procedure appears, and it first asks for the language.
Answer the questions (Enter accepts the value in square brackets):
keyboard (proposed according to the language);
cluster adapter: the one with the
192.168.56.xaddress; its address becomes static;
node name (proposed
nex-plus the last number of the address);password of the
nexuser, the node administrator: use the same one on every node, it is the cluster password (on the first node keep it, the other nodes ask for it once).
The cluster:
1creates a new cluster with this node as its first node;2joins a cluster that is already running.
Creating the cluster: answer whether the node also runs the users' programs (Enter: yes). The second disk becomes the cluster storage (NEXFS, encrypted), then the procedure offers to create the first user of the cluster and at the end shows the address of the node: write it down.
Joining a cluster: choose the role (
1compute,2storage,3both, the default), then enter the address of the first node and, once, the cluster password (thenexpassword of the first node).
The node joins the cluster in less than a minute and makes itself known to all the other nodes.
6. First steps in the cluster
From the PC, with the cluster user created on the first node:
ssh user@192.168.56.103 # the address of a node
nex nodes # the cluster nodes
nexsh # the cluster shell
nex run --node any hostname # a command on the least loaded node
- Dashboard:
https://ADDRESS:7443from the PC's browser (the certificate is the cluster's: the browser asks you to accept it). - Desktop: NEX Monitor, the NEX menu on the right mouse button in the file manager, the NEX icon in the notification area (XFCE). See The desktop with NEX.
- Everything else is in the user guide.
7. VMware and Proxmox
- VMware Workstation/Player: File → Open the
.ovafile. After the import check the two network adapters (NAT and Host-only). - Proxmox VE: import the
.ovafile (qm importovf ID FILE.ovf local-lvmafter extracting it withtar xf) and add a second empty 20 GB disk for the cluster data.
8. When something goes wrong
| What you see | What to do |
|---|---|
| "A second empty disk of at least 10 GB is needed" | add to the VM a disk of at least 10 GB and press Enter |
| The first node is not in the list of NEX Setup | the VMs must be on the same host-only network; type the address of the first node |
| "No answer" at the address of the first node | the first node must be on and finished; the two VMs must be on the same host-only network |
| The password is not accepted | on the desktop images it is the cluster password; on the image without a desktop the nex password chosen at the first boot of the first node |
| Any error on the console | the details are in /var/log/nex-firstboot.log; after fixing, sudo nex-firstboot --rifai |