Skip to content

Initial Setup ​

With the appliance running, everything else is done from the Cockpit web UI at https://<floating-ip-or-name>:7771. This page licenses the environment, builds the inventory, turns the per-host building blocks into cluster-wide networks and datastores, enables cluster services, and proves that the result behaves correctly under failure.

Names and addresses are the example values of the network design: datacenter DC-JKT1, cluster CL-PROD-01, hosts vapor-01 to vapor-03.


First Sign-in ​

  1. Open https://<floating-ip>:7771 (or the floating IP's DNS name once DNS is in place).
  2. Sign in as admin@cockpit.local with the password from Screen 6 of the installer.
  3. The home page shows the Cockpit instance with its version and the size of the inventory. Above the inventory tree, four buttons switch the tree between the Hosts and Clusters, VMs and Templates, Storage and Networking views. The menu button (☰) at the top left opens Administration (roles, licensing, system update, single sign-on), Tasks, Metrics, Alarms and Events.

Named administrators

Create named administrator accounts, or connect Active Directory or LDAP from Administration › Single Sign On, and keep admin@cockpit.local as a break-glass account with its password stored offline.


Licensing ​

How licensing works ​

  • A fresh Cockpit activates a 30-day trial on first boot. During the trial nothing is restricted.
  • The permanent license is a root license held by Cockpit. It defines a pool of CPU sockets and physical cores. Cockpit counts the sockets and cores of all managed hosts against the pool and propagates a signed allocation to each host — which is why hosts are not licensed individually.
  • If the trial or license expires, or the hosts exceed the pool, Cockpit enters restricted mode: existing VMs keep running, but changes such as adding hosts or creating datastores are blocked and the UI shows a banner explaining why. An expired license first enters a grace period in which nothing is restricted.
  • Optional features, such as orchestrated disaster recovery, Virtual Network and the Kubernetes Provisioner, are separate license entitlements.

Request and import the license ​

  1. Go to Administration › Licensing › Licenses. The page shows the current state (trial and its expiry date) and the Managed Hosts Allocation.
  2. Click Export Request. Cockpit produces a license request file containing the instance identity and hardware fingerprint.
  3. Submit the request through the Awanio Enterprise Portal (or to your Awanio partner) with your order details. You receive a signed license file.
  4. Click Import License and select the file. The Root License Summary shows the customer, edition, license type, validity and the sockets/cores pool.
  5. After hosts are added, click Propagate Now and confirm that each host shows a recent Last Propagation and that the System is unlicensed banner disappears from its Vapor UI. Recalculate recounts the sockets and cores of the managed hosts, for example after a hardware change.

The same summary is shown read-only on the Cockpit instance under Configure › Settings › Licensing.

INFO

The license request is bound to this Cockpit instance. If you redeploy the appliance, you need a new request.


Inventory ​

Create the datacenter and cluster first, then add the hosts directly into the cluster. Adding hosts to a cluster from the start is what lets Cockpit treat them as one pool for networks, datastores, HA and DRS.

Create the datacenter and the cluster ​

  1. Select the Hosts and Clusters view (the first button above the inventory tree).
  2. Right-click the Cockpit instance at the top of the tree and choose New Datacenter. Name: DC-JKT1.
  3. Right-click DC-JKT1 and choose New Cluster. Name: CL-PROD-01.

Add the Vapor hosts ​

Right-click CL-PROD-01 and choose New Host. The Add Vapor Host dialog opens; its Adding to line names the object the host will be placed in, so check that it says CL-PROD-01.

FieldExampleNotes
Address192.168.241.11The host's management (mgmt0) address. Use the IP address.
Port7770Prefilled.
API TokenToken from Preparing HostsStored encrypted by Cockpit.
TLS Client Certificate (optional)EmptyOnly if the host enforces client certificates.

Click Connect & Add. Cockpit connects, takes a full inventory snapshot of the host and then follows its event stream. Repeat for the other hosts.

Adding a host to a cluster that already has a shared group

When the target cluster already has an O2CB shared group — for example when you add a fourth host later — the same dialog becomes a three-step wizard: Connection Details, Node Plan and Review. In Node Plan, enter the host's O2CB Node Name (its short hostname) and O2CB Communication IP (its cluster-network address, not the management address).

The appliance is in the inventory

The first host already runs the Cockpit appliance VM, which appears in the inventory as cockpit-01. Do not power it off, delete it or change its NICs from Cockpit — you would be switching off the tool you are using. Exclude it from DRS automation until you have control-plane HA.

Verify the hosts ​

  • Each host shows status connected, and its CPU, memory, storage pools and networks are populated.
  • The host's VMs appear under it (on the first host, cockpit-01).
  • Administration › Licensing › Licenses lists all hosts under Managed Hosts Allocation; click Propagate Now if you imported the license already.
  • The Tasks panel shows the host additions completed without errors.

Networks ​

Per-host VS bridges are the physical layer. On top of them, Cockpit creates distributed networks — one definition per cluster, pushed to every host — so that a VM keeps the same network and VLAN wherever it runs.

TypeScopeUse in the reference design
Host networkOne hostThe infrastructure networks vmnet-mgmt and vmnet-cockpit-ha, created identically on every host. NAT and isolated networks are host networks too.
Distributed networkOne clusterAll production VM networks.
Virtual Network (OVN)A datacenterOptional, separately licensed software-defined networking. See Virtual Network.

Create a distributed network ​

Create one distributed network per VM VLAN. One network per VLAN is safer than one network with many portgroups: choosing the network chooses the VLAN, and nobody can attach a VM to the right network but the wrong portgroup.

  1. Select the cluster, open its Networks tab and start Add Network. Choose a distributed network and the cluster as placement target.
  2. Network configuration: network name (for example dvn-prod-100), backend type Open vSwitch (OVS), Autostart on.
  3. Portgroups: add pg-100 with VLAN tag 100 and mark it Default. Leave Trunk off; tick it only for a router or firewall VM that tags VLANs itself.
  4. Host bridge mapping: for every host, select the upstream bridge awbr0.
  5. Create the network and watch the per-host status settle:
StatusMeaningAction
SyncedThis host created the network.—
ActiveThe network is up on all hosts.Done.
PartialSome hosts succeeded, others did not.Check the failed host: bridge name, host connected. Retry.
ErrorThe network could not be applied.Read the task error; fix and retry.

The VLAN must reach the uplink

The VLAN must also be in the trunks list of bond0 on every host, and allowed on the switch ports and the ISL. A distributed network on a VLAN the uplink does not carry is Active in Cockpit but passes no traffic.

Cockpit refuses to delete a distributed network that VMs still use and lists the VMs that depend on it; move them first. See Networking for the full network reference.

Set the replication interface ​

If the cluster will replicate VMs to another site, tell Cockpit which host interface carries replication: select a host, open Configure › Networking › Service Endpoints, and in the Replication Interface Selector choose repl0. The panel shows the resolved endpoint and its source; Management IP (Fallback) means no replication interface is set. Click SAVE REPL INTERFACE. Because repl0 carries the replication service tag, Cockpit may already resolve it automatically. Repeat on every host.


Storage ​

Shared datastores are created from the cluster and fan out to every host automatically. The Storage pages describe every option; the steps below create the two shared datastores of the reference storage layout.

NFS datastore ​

  1. Right-click the cluster and choose Storage › Add new Datastore. Launched from a cluster, the wizard preselects Shared scope.
  2. Basics: datastore name ds-nfs-01, Autostart on, scope Shared, type Shared NFS.
  3. Configuration: NFS source <nfs-server>:/exports/cockpit-ds01; keep the default shared mount path (/mnt/<cluster>/<datastore>). Leave username and password empty unless your NFS server requires them.
  4. Review, then Create Datastore. The Tasks panel shows the pool being created on each host.

The hosts reach the server through nfs0 because the NFS subnet is a connected subnet on that vPort. Verify on a host with ip route get <nfs-server> — the output must say dev nfs0.

iSCSI software adapter on each host ​

Do this on every host. Select the host and open Configure › Storage › Storage Adapters.

  1. Click ADD SOFTWARE ADAPTER and confirm. A software iSCSI adapter appears in the list; select it to see its details.
  2. Record the adapter's initiator IQN, or set it to your naming standard (for example iqn.2026-10.example.corp:vapor-01) before any target login. Give the IQNs of all hosts to the storage team so the LUN is mapped to all of them.
  3. Port Bindings → Bind Network Port: select iscsia0 and iscsib0. Bind at least two ports for multipath I/O.
  4. Dynamic discovery → ADD SEND TARGET: add the fabric-A portal (<portal-a>:3260), then the fabric-B portal (<portal-b>:3260). Enter CHAP credentials if the array requires them.
  5. Log in to the discovered target on both portals (Login to iSCSI Target), then RESCAN ADAPTER.
  6. Check Devices and Paths: the LUN must appear once as a multipath device with two active paths, one through each fabric.
bash
# On the host: one session per fabric, one multipath map with two active paths
sudo iscsiadm -m session
sudo multipath -ll

Shared group ​

An OCFS2 datastore needs the datacenter's O2CB shared group to exist on every host first; the datastore wizard never creates it for you.

  1. Select the datacenter and open the Shared Group tab. It shows Shared Group Not Configured; click Setup Shared Group.
  2. Basics: cluster name (for example dcjkt1) and heartbeat mode Local (the default, recommended for most deployments).
  3. Node Plan: one row per host with its node name and its cluster-network IP. Members communicate on port 7777.
  4. Review and apply. Cockpit creates the cluster on all hosts, registers every node and brings the stack online.
  5. In Per-Host Status, every host must show the cluster exists and is online and in sync; in Members, every node shows In Kernel.

See Shared Group (OCFS2) for heartbeat modes and maintenance.

OCFS2 datastore ​

  1. Right-click the cluster → Storage › Add new Datastore. Basics: name ds-san-01, scope Shared, type Shared Clustered FS (OCFS2).
  2. Configuration: in the per-host device table, choose the multipath device of the LUN on every host (for example /dev/mapper/mpatha). The wizard verifies that all hosts point at the same LUN identity and rejects a mismatch.
  3. If the LUN already has a filesystem, the wizard shows it and requires you to tick Yes, erase this device.
  4. Review (scope, hosts, mount path, O2CB cluster name, device per host) and Create Datastore.

Data or connectivity loss

Creating an OCFS2 datastore formats the LUN for every host at once. Confirm the WWID with the storage team before ticking the erase box.

Move the appliance to shared storage ​

The appliance was deployed on the first host's local datastore, so it cannot be restarted elsewhere if that host fails. Use a storage migration of cockpit-01 to ds-san-01 (or ds-nfs-01) during a quiet period. After the move, the appliance is eligible for cluster HA restarts. Leave its networks mapped to vmnet-mgmt and vmnet-cockpit-ha.


Cluster HA and DRS ​

Cluster HA restarts VMs on surviving hosts when a host fails. DRS keeps the cluster balanced by recommending or performing live migrations. Both are configured per cluster and both depend on shared storage. See VM DRS & HA for day-to-day use.

Enable Cluster HA ​

  1. Select the cluster and open Configure › Services › HA Settings. The page is titled Cluster HA (High Availability).
  2. Turn on Cluster HA Status.
  3. Set the Failover Delay — how many seconds a host must be disconnected before its VMs are restarted elsewhere (minimum 10). Raise it if your network has known short outages, so a brief drop does not trigger a failover.
  4. Click Save Settings. Only VMs whose disks are all on shared datastores are protected.

Enable DRS ​

  1. Open Configure › Services › DRS Settings. Rules that keep VMs together or apart are under DRS Rules.
  2. Set the Automation Level. Start with Partially Automated (or Manual): DRS places new VMs and lists recommendations, and you approve the migrations.
  3. Leave the Migration Threshold at its middle setting; move it towards Aggressive only after you have watched the recommendations for a while.
  4. Under VM Overrides, set cockpit-01 to Disabled so DRS never moves the control plane on its own.

The DRS page shows the Cluster Workload Balance, per-host CPU, memory and composite load, and any faults that block balancing (for example VMs with disks on local storage).


Validation and Handover ​

A deployment is finished when it has been tested, not when the last wizard closes. Run these tests, record the results and hand the worksheet, passwords and test log to the operations team.

Functional tests ​

#TestExpected result
1Create a test VM on ds-san-01 attached to a distributed network.The VM boots, gets its address on that VLAN and reaches its gateway.
2Live-migrate the VM across all hosts while pinging it.Migration completes; at most one or two lost pings; the VM stays on its VLAN.
3Create a second VM on ds-nfs-01 and migrate it.Same as test 2.
4Upload an ISO to ds-nfs-01 and boot a VM from it.The ISO is visible on every host.
5Check Licenses.Root license valid; all hosts allocated and recently propagated.

Failure tests ​

#TestExpected result
6Disable NIC 1's switch port on one host, then NIC 2's (one at a time).The host stays connected in Cockpit; ovs-appctl bond/show shows the failover.
7Disable NIC 3's switch port on one host.multipath -ll shows one failed path; VM I/O continues on fabric B. Restore and confirm the path returns.
8Reboot each host in turn (enter maintenance first).The host returns with all vPorts, addresses and the bond; reconnects to Cockpit; the shared group is back in sync.
9Power off a host that runs the test VM (simulated failure).Cluster HA restarts the VM on another host after the failover delay.
10Restart the Cockpit appliance (or fail over the leader if you added control-plane HA).Cockpit returns on the floating IP; all hosts reconnect; no data is lost.

Handover package ​

  • The completed planning worksheet with final names, VLANs, addresses and switch ports.
  • Credentials stored in the customer's password manager: awanio per host, API tokens, cockpitadmin, Cockpit administrators.
  • The license file and license request, archived.
  • The test log of the functional and failure tests, with dates and results.
  • An agreed backup plan for VMs and for the Cockpit appliance.