Guides

Kymoscope Site: the ready virtual machine

Import the Kymoscope Site virtual machine into Hyper-V, VMware or VirtualBox, start it, and install with one command.

The ready virtual machine is Ubuntu Server 24.04 LTS with Docker and Kymoscope Site already on it, not yet installed. You import it, start it, and run one command. Nothing in it is secret: the install creates every key and password on your machine.

What you get

FileFor
kymoscope-site-<version>.vhdxHyper-V (generation 2, Windows Server 2016 or newer, Windows 10/11)
kymoscope-site-<version>.ovaVMware vSphere/ESXi 6.7 or newer, Workstation and Fusion (EFI); VirtualBox 7
*.sha256The checksum of each file, to check the copy before you import it

Check the file

Compare the checksum with the one in the .sha256 file:

Shell
# Windows (PowerShell)
Get-FileHash .\kymoscope-site-1.0.0.vhdx -Algorithm SHA256

# Linux or macOS
sha256sum -c kymoscope-site-1.0.0.ova.sha256

Import into Hyper-V

  1. Copy the .vhdx to the folder where your virtual machines' disks live.
  2. Create the machine: generation 2, at least 4 processors and 8 GB of memory (static), the network switch your users reach, and the .vhdx as its disk. In PowerShell, as administrator:
Shell
New-VM -Name kymoscope-site -Generation 2 -MemoryStartupBytes 8GB -VHDPath D:\VMs\kymoscope-site-1.0.0.vhdx -SwitchName "Your switch"
Set-VM -Name kymoscope-site -ProcessorCount 4 -StaticMemory -AutomaticCheckpointsEnabled $false
Set-VMFirmware -VMName kymoscope-site -SecureBootTemplate MicrosoftUEFICertificateAuthority
Start-VM -Name kymoscope-site

In Hyper-V Manager the same is: New, Virtual Machine, Generation 2, Use an existing virtual hard disk; then, in the machine's settings, Security, template Microsoft UEFI Certificate Authority.

Import into VMware or VirtualBox

In vSphere: Deploy OVF Template, choose the .ova, then pick the network your users reach. In Workstation or Fusion: File, Open, the .ova. The machine comes with 4 processors, 8 GB of memory and a 100 GB thin disk; change them before you start it if you need more.

In VirtualBox 7: File, Import Appliance, the .ova. After the import, set the network adapter to the network your users reach (it starts as Bridged).

First start

  1. Open the machine's console. It shows its address.
  2. Sign in as kymoscope with the password kymoscope. You are asked for a new password at once. Remote sign-in (SSH) accepts keys only: add yours to ~/.ssh/authorized_keys if you want it.
  3. Pick the name your users will open, such as kymoscope.customer.local, and point it at the machine's address in your DNS.
  4. Run the install command the sign-in message shows:
Shell
sudo kymoscope-site install --url https://kymoscope.customer.local --lead-email you@customer.local --internal-ca

Use --tls-cert server.crt --tls-key server.key instead of --internal-ca for your own certificate. The rest is as in Kymoscope Site: install with no internet: send us the site key and host name it prints, then apply the licence file we send back:

Shell
sudo kymoscope-site license apply site-licence.txt

Each copy of the machine makes its own identity on first start (machine id, SSH host keys), so you can import the same file more than once, for example for a test site.

A fixed address

The machine takes its address by DHCP. A network with no DHCP, as many closed networks are, needs a fixed address: replace /etc/netplan/01-kymoscope-network.yaml with your values, then apply it:

Shell
sudo tee /etc/netplan/01-kymoscope-network.yaml >/dev/null <<'EOF'
network:
  version: 2
  ethernets:
    site:
      match: { name: "e*" }
      addresses: [10.0.20.15/24]
      routes: [{ to: default, via: 10.0.20.1 }]
      nameservers: { addresses: [10.0.20.2] }
EOF
sudo chmod 600 /etc/netplan/01-kymoscope-network.yaml
sudo netplan apply

To prepare many machines without typing, attach a cloud-init NoCloud disk (label cidata) with your user, SSH keys and network: the machine reads it on first start.

With no internet

The machine needs no internet, neither to start nor to install: every container image is already on it. Keep its clock right with your own time server, because the licence counts time:

Shell
sudo sed -i 's/^#\?NTP=.*/NTP=ntp.customer.local/' /etc/systemd/timesyncd.conf
sudo systemctl restart systemd-timesyncd

Hyper-V and VMware also set the clock from the host. Updates arrive as signed bundles, as on any Kymoscope Site: sudo kymoscope-site update kymoscope-site-1.1.0.tar. Ubuntu's own updates come from your mirror, or from the internet if the machine has a way out.

More disk

Recordings and the database grow with use. Grow the disk in Hyper-V or VMware, then, on the machine:

Shell
sudo growpart /dev/sda 1
sudo resize2fs /dev/sda1