Platform

Import existing servers

Register servers you already run with one command, read-only, then hand them to CloudOps when you are ready, after reviewing everything that runs on them.

What importing means

Importing registers a machine you already run, so it appears in the console next to the ones CloudOps built. It is read-only: nothing is installed, and CloudOps changes nothing on the machine until you take it over. A server moves up one step at a time, and every step is an action you take.

From imported to managed
  1. Your serverDiscoveredRegistered from a read-only scan. CloudOps does not contact it.
  2. Your server, your keyInventoriedRead-only checks: access test, discovery, package and cleanup scans
  3. CloudOpsManagedPlaybooks, firewall rules and cleanup become available
Nothing moves a server up a step except you. Take-over keeps everything that already runs on the machine.
  • Discovered: where an import starts. CloudOps holds the facts the scan reported and does not contact the machine, not even to probe its SSH port.
  • Monitored: you pointed CloudOps at a node_exporter you already run. CloudOps reads metrics from it and does nothing else.
  • Inventoried: you gave CloudOps an SSH key the machine already trusts. CloudOps logs in only for read-only checks.
  • Managed: you reviewed what runs on the machine and took it over.

The server page shows the step in its banner, for example Imported · Discovered, with the date of the scanned facts.

Import Linux servers with one command

  1. Pick the region in the console header. Imported servers are placed in that region, whichever way you import them.
  2. Open Compute → Bare Metal and press Import Existing.
  3. Optionally, choose an SSH key under SSH credential; see below.
  4. Under Quickest: run one command on each server, press Generate command, then Copy command.
  5. Run the command on each server. It needs curl and HTTPS access to your CloudOps console. Root is optional; as root the scan also reads the vendor, model and serial number.

Each server appears in the list as it registers. One command works on any number of servers until it expires: after one hour, or after 15 minutes if it carries an SSH key. A server whose name is already in CloudOps is skipped.

Imported servers count toward your plan's server limit. If the limit is reached, the command says so and registers nothing.

What the command does on the machine

It downloads a script to a temporary file, runs it, and deletes it. The script runs a read-only scan and sends the result to CloudOps. The scan reads:

  • the hostname, primary IP address and MAC address;
  • CPU, memory, and each disk and partition;
  • the OS, kernel, architecture, uptime and time zone;
  • network interfaces, listening TCP ports, active systemd services and the number of installed packages;
  • as root, the vendor, product name and serial number.

It installs nothing, changes nothing and writes no file except that temporary copy of itself.

Import by hand

For a machine that cannot reach CloudOps, or to read the scan first, press Or: download the scan script. Run it on each machine; it prints one JSON entry and changes nothing.

bash import_scan.sh > "$(hostname).json"

    # several hosts into one manifest
    bash import_scan.sh --merge web1.json web2.json > manifest.json

Paste the output under Manifest JSON, or upload the file, and press Import Servers. Tick Skip servers that already exist to skip duplicates instead of failing the whole import.

Attach an SSH key while importing

Choosing a key under SSH credential saves attaching one to every server afterwards. Pick a key stored in CloudOps with its private key, and a Login user. The public key must already be in that user's authorized_keys on each machine: CloudOps never installs a key. The servers then start at Inventoried.

With Test access automatically after import ticked, CloudOps logs in once per server, runs id -un and a passwordless-sudo check, and shows the result on each row. Generating a command that carries a key needs the admin role.

Work with an imported server

An imported server has the same tabs as any other. Actions that would change the machine are shown but disabled until you take it over.

Add an SSH key

In the banner, press Add SSH key, choose the key and login user, and press Attach credential. With Test access now ticked, CloudOps makes one read-only login and records the result. Nothing is installed. The server moves to Inventoried, which enables Test Access, Discover Hardware, and the read-only package, cleanup and firewall scans. Remove key takes the credential away again.

The access result reads Access verified, No sudo, Login refused, Unreachable, Port 22 closed, Not confirmed or Not tested. CloudOps runs its scans and playbooks with sudo, so the login user needs passwordless sudo.

Monitor it without installing anything

If the machine already runs node_exporter, press Adopt existing exporter, enter its port (9100 by default) and press Adopt exporter. CloudOps scrapes it read-only and the metrics pages fill in. CloudOps scrapes ports 9100 to 9199, and must be able to reach the machine on that port. Stop scraping undoes it.

CloudOps does not install its own exporter on an imported machine, before or after take-over.

Virtual machines on an imported host

After Discover Hardware, the server page lists the VMs on the host that CloudOps did not create. Press Import VMs (read-only) (the button shows how many) to keep a record of them under Compute → Virtual Machines. CloudOps never starts, stops, changes or deletes an imported VM. To manage one, take it over, as described below.

Windows virtual machines

A Windows guest is reached over WinRM with an administrator account instead of an SSH key. Windows import covers virtual machines on a host you have added to CloudOps. A physical Windows server cannot be imported, and the import command runs on Linux only.

  1. Import the VM from its host, as above.
  2. Open the VM. Under Windows administrator credentials, enter the guest's Username and Password and press Save credentials. The password is stored encrypted. Nothing changes on the guest, and the VM moves to Inventoried.
  3. Press Take over this VM and review it, as for any server.

WinRM must be enabled on the guest, on port 5986 (HTTPS) or 5985 (HTTP). CloudOps tries HTTPS first, then HTTP, and remembers the one that answers. The credentials card appears only when CloudOps recognises the guest as Windows.

Take over a server

Taking over hands the machine to CloudOps, so it can run playbooks, apply firewall rules and clean up. It starts with a read-only inventory and changes nothing until you confirm. You need the admin role, and the machine must have a credential. A VM can be taken over only after its host: CloudOps finishes taking over a VM by marking it as its own on the host, and does that only on a host it manages. Until then Take over this VM is disabled and names the host to take over first.

  1. Press Take over in the banner, or Take over this VM on a VM. CloudOps runs discovery and, on a bare-metal server, the cleanup scan. Both only read.
  2. The review lists what it found: Listening ports, Virtual machines, Containers (Docker and Podman) and Services (enabled systemd units outside the stock baseline).
  3. Everything listed is kept. Removing items during take-over is not available; use the cleanup tool afterwards.
  4. Tick the box confirming you have reviewed the machine, and press Take over.

If the cleanup scan has not produced a result for a bare-metal server, for example because it cannot run on that machine, the review says that it is incomplete: containers and services were not scanned and are missing from the list. Close it and press Take over again a few minutes later, or tick the second box, which accepts that CloudOps will manage the machine including software it has not inventoried. The take-over removes nothing either way.

A VM becomes managed only once CloudOps has marked it as its own on the host. Until then its page shows Finishing take-over. If the mark cannot be placed, the VM stays read-only and you can start the take-over again.

What take-over changes

On a Linux server, CloudOps re-runs validation and discovery, which only read, and runs a package scan that refreshes the package lists, for example with apt update. It installs no agent and does not join the server to the encrypted overlay network. VMs you kept become read-only records.

The host firewall stays as it is until you attach a security group or a firewall policy. From then on CloudOps applies those rules, and keeps each port listed at take-over reachable from the addresses that could reach it before, as read from the server's own firewall during the review, and closed to every other IPv4 address. The review shows these addresses next to each port. A port whose sources could not be read stays open to any address, and the review marks it for you to check. SSH is always allowed. On a server you imported, CloudOps does not drop traffic that no rule mentions. The group's rules are checked first: to let more addresses reach a kept port, allow them in the group; to close one, add a deny rule for it.

A Linux VM's security groups are enforced on the server that hosts it. Once you attach one, the ports you kept stay reachable through the host from the same addresses as before, and everything else follows the group. Allow SSH in the group if you connect to the VM directly.

On a Windows VM, take-over sets Windows Firewall to block inbound traffic by default, with allow rules for the ports you kept and for WinRM (5985 and 5986), so management cannot lock itself out. Windows' own built-in allow rules stay in place. Nothing is installed on the guest and it is not restarted. If the review listed no ports and the VM has no security group, its firewall is left alone.

Clean up after take-over

The Onboarding cleanup card on the Details tab inventories foreign systemd services and timers, cron files and user crontabs, entries in /opt and /srv, binaries in /usr/local/bin and /usr/local/sbin, custom apt repositories, and Docker and Podman containers. Scan now only reads, and works once the server has a credential.

Review report opens the list. Tick what to remove, type REMOVE, and press the Remove button. Removal is permanent: selected services are stopped, disabled and masked, files and cron entries are deleted, and containers are force-removed. CloudOps makes no backup first. Removing needs the admin role and a server that has been taken over.

Leave Also remove the CloudOps stack unticked on a machine you imported. It stops and removes Nebula, kubelet, containerd, Docker, etcd and node_exporter with their configuration and data, whoever installed them.

Remove an imported server

Remove from CloudOps deletes the record only. The machine and any VMs on it keep running, untouched. That stays true after take-over: deleting a server you imported never wipes it.

A VM you took over is treated like any CloudOps VM, so deleting it destroys the VM and its disks.

In the list of VMs that CloudOps did not create, a VM you have not imported shows Destroy. Type the VM's name to confirm. It deletes the VM and its disks, and cannot be undone. CloudOps refuses it unless you have taken the host over.

What CloudOps never does to an imported machine

  • Before take-over: no agent, package, playbook, firewall change, reboot or SSH key. Without a credential, no contact at all.
  • With a credential, before take-over: read-only logins only, when you press a button, plus one access test when you attach the key.
  • Take-over removes nothing. Everything it lists is kept.
  • It never installs its own monitoring exporter.
  • Deleting the server never wipes it.

Who can do what

  • The member role or higher can import servers, generate a command without a key, attach or remove a key, test access, run discovery and the read-only scans, adopt an exporter, import VMs, and save Windows credentials.
  • The admin role or higher can generate a command that carries a key, take a machine over, and remove items with the cleanup tool.