Guides for users

Machines

Linux and Windows Server machines: sizes, boot scripts, health checks, access, snapshots and rescue mode.

A machine is a virtual machine that boots from a disk image in your catalogue. Your first VM makes one and signs in; this page is about living with it. A machine’s page has a head with its state, address and server, and tabs such as Overview, Access, Health, Snapshots and Scripts, with more when other parts of Velrix add their own.

Make one

Machines › New machine goes step by step: General (name, image, your SSH keys), Size, Advanced, then a Review. The name is also the machine’s hostname. Under Advanced:

  • Firmware: UEFI, UEFI (Secure Boot) or Direct kernel boot, as the image allows.
  • vTPM 2.0: an emulated TPM, kept with the disk, for Secure Boot, BitLocker and measured boot.
  • Memory ballooning: memory the guest does not use goes back to the server, and comes back when the guest needs it.

A machine takes the SSH keys you pick at its first boot. To add one later, use Access (below).

Scripts at boot

Scripts in the start menu holds your install scripts, and your organisation’s: a shell script, run as root, or a cloud-config written as JSON and merged into the machine’s own. From the library starts from one of your operator’s templates. Variables have defaults; seal a secret and it is never shown again, opened only when a machine’s boot data is built.

On a new machine, or later on its Scripts tab, pick the scripts it runs, in order, with its own values for their variables. They run once, at the first boot. Run at every boot is for a machine without a persistent disk, which starts afresh each time. A changed script reaches a machine the next time it starts.

Access

The Access tab acts inside the machine through its guest agent, so you need no way in first:

  • Password: set the password of an account inside the machine. On Windows, set the Administrator’s first: the image has none anyone knows. It is used once and not kept.
  • SSH keys: the keys in the account’s authorized_keys, read from the machine; add or remove one.
  • Remote desktop sessions: who opened the machine’s screen, when, and whether it opened.

Console opens the machine’s own console from the first line the firmware prints, before the network is up. Remote desktop opens a Windows machine’s desktop in a browser window, reached from inside the platform, so port 3389 can stay closed.

Health

Once the guest agent answers, Velrix watches it. The Health tab adds checks from the server that runs the machine against its own address: TCP ports, or a web address. Set how often, the timeout, a grace period after a start, and how many failures in a row make it Unhealthy.

Restart when unhealthy restarts it through the guest agent if it answers, else with a reset, and tells you either way. At most, per hour stops a restart loop: past it, the machine stays unhealthy and you are told.

Size and settings

  • Resize: pick another size from the catalogue. A running machine restarts to take it; its disk and address stay.
  • Rename: the name shown changes; the machine, its disk, address and hostname on its network stay.
  • Move to project: into one of its organisation’s projects, or out of any. Its disk stays with its owner, so a machine never moves to another owner.
  • VMM update available: when a new version of the virtual machine monitor is out, the machine takes it on its next restart, or in your maintenance window if you choose. Update now restarts it on the new one.

Snapshots and clones

The Snapshots tab keeps point-in-time snapshots of the machine’s disk. Take snapshot is instant and takes no room until the disk changes. Restore rolls the disk back to a snapshot and restarts the machine if it runs; anything written since is gone, and the snapshot stays.

Clone makes a new machine from this one’s disk, with the same image, size, firmware, TPM, ballooning and SSH keys.

Snapshots live on the machine’s server. For copies elsewhere, your operator’s backups take machine disks on a schedule (Backups).

Rescue mode

Rescue mode boots the machine into a rescue system with its own disk attached at /disk, to repair a machine that no longer boots. Exit rescue mode boots it from its disk again.

Reverse DNS

Reverse DNS (PTR) publishes a hostname, such as mail.example.com, for the machine’s IPv4 and IPv6 addresses. A mail server needs one. Leave it empty to clear it.

Network

A machine has an address on its project’s private network, where its apps and other machines reach it by name. To reach it from the internet, give it a floating IP and open the ports in a security group.

Windows Server

The create form says how Windows is licensed for an image: your own licence, your own KMS host, or a licence your operator includes and bills per core. The machine’s page shows its Activation. Your first VM has the steps.

As code

Every action here is an API call under https://<realm>/api/machines/, and the OpenTofu provider has a velrix_machine resource. Both are documented in your realm’s Docs window (The API reference in your realm).