Installing LexiVirt OS
What you need
- A 64-bit x86 server meeting the requirements: x86-64-v2 CPU with VT-x or AMD-V enabled in firmware, 8 GiB RAM or more, a 64 GiB+ system disk, one network adapter connected to the management network.
- The ISO
lexivirt-os-2.2.2-amd64.iso, written to a USB stick (raw copy, for exampledd if=lexivirt-os-2.2.2-amd64.iso of=/dev/sdX bs=4M conv=fsync) or attached as virtual media through the server's BMC. Legacy BIOS and UEFI (with or without Secure Boot) are supported.
Check the download first:
sha256sum -c SHA256SUMS --ignore-missing
lexivirt-os-2.2.2.release.json is the signed release manifest (SHA-256 and size of the ISO, the control-plane release and the update package, signed through the release key chain). This build is signed with test keys.
Interactive installation
- Boot the ISO (UEFI or legacy BIOS). The boot menu starts Install LexiVirt OS 2.2.2 after 60 seconds (or press Enter). Upgrade an existing LexiVirt OS installation upgrades a host instead of installing (nothing is erased); Test this media & install checks the medium first; Troubleshooting has basic graphics mode and the installer's rescue shell. The installer starts in text mode; after its start-up messages the screen switches to the LexiVirt OS installation questions.
- Hardware preflight. The installer reports virtualization support, CPU feature level, memory and firmware mode. Without VT-x/AMD-V you are asked whether to continue (VMs would run in slow emulation).
- System disk. Disks are listed by their stable ID (
/dev/disk/by-id/…: WWN, then vendor serial), with size, bus and model. The install medium, removable and read-only devices are never listed. After choosing, the installer shows the disk's current partitions and asks you to type the last eight characters of its ID. Anything else stops the installation without changing any disk. - Management network. Adapters are listed by MAC address with link state and driver. Choose one, then
dhcpor a static address in CIDR form, gateway and DNS servers, and the hostname. - First administrator. Username and password (12+ characters, not containing the username). The password is handed to the control plane in memory, stored only as a scrypt hash, and its temporary file is shredded.
- The installer partitions the chosen disk (LVM, XFS), installs packages from the ISO (no internet needed), installs the control plane, creates a self-signed TLS certificate and reboots.
The console prints the web address at the login prompt: https://<management address>/. The browser warns about the self-signed certificate until you install your own.
Unattended installation (lab and CI only)
Add to the kernel command line:
lexivirt.auto=1 lexivirt.disk=<by-id name> lexivirt.confirm=<same by-id name> lexivirt.nic=<MAC> lexivirt.hostname=<name> lexivirt.ip=dhcp|<CIDR> lexivirt.gw=<gw> lexivirt.dns=<dns> lexivirt.admin=<user> lexivirt.adminpw=<password>
The disk is erased only when lexivirt.disk and lexivirt.confirm name the same disk. The administrator password is visible on the kernel command line of the installer; change it after the first sign-in.
First sign-in
Open https://<address>/ and sign in with the administrator from step 5. Then, in this order:
- My account → Two-factor authentication: enroll an authenticator app.
- Hosts → <host> → Compatibility: confirm virtualization is hardware (KVM) and read the requirement checks.
- Storage pools: a
defaultpool exists under/var/lib/libvirt/images/lexivirt; add pools on other disks if needed. - Virtual networks: a shared NAT network
defaultexists; create project networks as needed. - Organizations & projects: create tenants, then users and role assignments in Users & access.
If the installer did not create an administrator (for example a manual control-plane install), the first visit shows Set up LexiVirt OS, which needs the setup token printed on the host console and stored in /var/lib/lexivirt/secrets/setup-token (root only).
Update package
lexivirt-os-2.2.2-update.tar is the signed update package (the signed manifest plus lexivirt-os-2.2.2-controlplane.tar.xz). How it is installed depends on what the host runs:
- 2.2.1: from this ISO's Upgrade an existing LexiVirt OS installation entry (2.2.1 cannot install updates itself). The package on the ISO is the same file.
- 2.2.2 and later: System → Updates in the web console (upload the package), or
lexivirt-update installon the host. - Legacy 2.1.x: not supported; the updater refuses it and changes nothing.
Details, rollback and recovery: UPDATES.md.
Recovery mode
The installed system's boot menu shows LexiVirt OS (<kernel>) and a LexiVirt OS recovery entry. It starts a local menu on the console (no network services) to:
- reset the management adapter (by its recorded MAC) to DHCP,
- reset an administrator's password,
- finish or roll back an interrupted update,
- roll back the last completed update,
- show service status, update status and recent errors, or open a shell.
Building the ISO
cd console && npm ci && npm run build && cd .. python3 tools/release/build_bundle.py --out dist # control-plane bundle + wheels python3 tools/release/keys.py init ~/keys --test # once; keys stay outside the repo python3 tools/release/sign.py --keys ~/keys --version "$(cat VERSION)" --channel testing dist/*.tar.xz hostos/build-iso.sh --bundle dist/lexivirt-os-*-controlplane.tar.xz --trust ~/keys/root.pub --out dist
The build runs rootless in an AlmaLinux 10 container. It downloads the upstream x86_64_v2 minimal ISO and its checksum file, verifies the checksum file's GPG signature against the distribution key and the ISO's SHA-256, and assembles an offline package repository on the ISO.