virtuOSo docs v0.8.1

Fleet

What Fleet is

Fleet lets one virtuOSo server watch and use others. You pick one server to keep the fleet, add your other virtuOSo servers to it as nodes, and from that one page you see every server's load and every VM, start new VMs where there is room, open any server's tools, and move a VM from one server to another. Nothing is installed on the nodes: the Fleet server talks to each node over the node's own REST API, so every node only needs to run virtuOSo and be reachable. Fleet is for admins. The Fleet button is in the main menu.

The server that keeps the fleet is part of the fleet. It appears beside its nodes, marked This server, and its own VMs are in the lists.

Add a server

  1. On the node you want to add, open the Profile page and create an admin API key.
  2. On the Fleet server, open Fleet and then Add node. The form is at the bottom of the page, and the Add node button in the header opens it.
  3. Enter a name, the node's address, for example https://192.0.2.20, and the API key.

The node is checked at once and then every 30 seconds. Keys are stored encrypted and never shown again. The first certificate a node presents is saved. If a node later presents a different certificate, Fleet refuses to send the key and shows a button to trust the new one, so only press it when you know the certificate was changed. A node cannot be named aws, auto, best or local, because the deploy form uses those names for where to deploy.

When you add a node, the node is told the name and address of the server that manages it, so the Fleet button on any node leads to the same Fleet page. The node learns no key. The address it is given is the one you used to reach the Fleet server, and you can change it in Settings, General, Fleet Address.

The overview

The top of the page shows totals: nodes online and how many need attention, VMs running, vCPUs and memory given to VMs, and the CPU load, memory and storage in use across the fleet. Only servers that are up are counted. Below it each server has a card, or a row if you switch to the table view, with its version, CPU, memory and storage meters and its VM count. A server that is offline stays on the page, greyed out, with its last known figures and when it was last seen, and it never holds up the others. The cards and the table can be sorted, for example by CPU or by memory.

Settings, General has a Hide IP Addresses in Fleet option. It is on by default and hides server addresses and VM addresses on the Fleet pages, so a screenshot can be shared. Host names stay visible, and the REST API is not hidden.

All VMs

All VMs lists every server's VMs in one table, with a Node column, a Node filter, a Provider filter and a search box. You can sort by node, name, state, address, vCPUs, memory, disk or provider. Each row has buttons that open that VM's Shell, Console or VNC on the server that runs it. A stopped on prem VM has a Delete button, which asks you to confirm and then removes the VM, its disk and its snapshots for good. Only a stopped VM can be deleted this way. A running, protected, cloud or moving VM is refused.

Place a VM on the best server

Fleet, Deploy launches a cloud image VM on the server with the most room. It ranks this server and every node by how much memory and storage would be left after the VM starts. Each one is marked best fit, good fit, tight or will not fit, with the reason, and the best is chosen for you. You can pick another server. Choosing one that may not have room still works, with a warning. A server that is offline is never picked. ISO and qcow2 launches stay on the server that holds the file.

Sign in once

You sign in to the Fleet server once. The Open, Shell, Console and VNC buttons then take you to the other server already signed in. The Fleet server asks the node for a one time ticket that works for 60 seconds, and your browser hands it to the node, which signs you in as the owner of the key Fleet holds for it. The ticket is never put in an address bar. Both the Fleet server and the node need to run a version with this feature. A node on an older version gets a plain link to its own sign in page.

AWS in Fleet

If AWS is set up on the Fleet server, the overview has an AWS section. It lists the EC2 instances virtuOSo launched in your account, across every region your account can read, with how many are running, their vCPUs, regions, and an estimated monthly cost. The cost is an estimate from on demand prices in us-east-1. Storage, data transfer and other regions differ, and a stopped instance shows as storage only. The same instances appear in All VMs under the provider name AWS.

AWS is also a choice in the Server picker of Fleet, Deploy, under a Cloud heading. Because it costs money it is stricter than an on prem launch. You choose a region, a size that sets the instance type, a system, any ports to open and an SSH key, and the form refuses to go ahead until you confirm the estimated hourly and monthly cost. Best fit never chooses AWS. An instance can be given a time after which it is terminated, from 1 hour to 7 days. The AWS section shows when each instance ends, and has Keep, Extend and Terminate buttons. When an instance is terminated, its security groups go with it. See AWS provider for the setup and permissions.

Move a VM to another server

An on prem VM can be moved from one server to another. In All VMs, press Move on the VM and pick the new server. Before anything happens Fleet checks the move and tells you at once whether it can go ahead, how long the VM will be stopped (an upper bound), and that the VM will get a new IP address on the new server. A running VM needs a tick to confirm it may be stopped.

The disk is copied straight from server to server, never through the Fleet server, and it is checked against a checksum. The VM is then started on the new server with its password, notes, schedule and restore point settings. Progress shows live, you can cancel the move, and it survives a page reload. If anything fails, the move undoes itself: the original is started again and nothing is left on the new server. After a move, the VM in the list shows a small note saying where it went.

Held copies

After a successful move the original is put away on the server it came from. It leaves the VM list, but its disk, snapshots and records are kept for 7 days, and then it is deleted. This lets you go back if the moved VM is not right. The Held copies page in Fleet lists them across all servers and shows how much space they use. Each one has Restore and Delete. Restore puts the VM back stopped, with its schedule and restore points switched off and a note, and it is refused if the name is already in use. Delete removes it for good. A server that is more than 85 percent full while it holds copies shows a warning, because deleting them frees the space.

Limits

  • Only on prem VMs on the default network can move. A VM on another network, such as a bridged one, cannot, because that network belongs to one server. A cloud VM cannot be moved.
  • Only a running or stopped VM can move. A running VM is stopped for the move, and you confirm that first.
  • Both servers must be online, and both must report their CPU type, which needs the same virtuOSo version on both. A VM cannot move between servers with different CPU architectures. The check compares the architecture only, so a move between an Intel server and an AMD server is not blocked by it.
  • The new server must not already have a VM with the same name, and it needs room for the disk and the memory. The old server needs room to make the copy.
  • The VM gets a new IP address on the new server.
  • The move stops the VM for as long as the copy takes. It is not a live move.
  • AWS instances can be kept, extended and terminated from Fleet, but not moved or deleted from the VM list.
  • Only a stopped VM can be deleted from Fleet.
  • Fleet needs each node's admin API key and a network path from the Fleet server to the node, and from node to node for moves.