Single Server Upgrade

Kasm Tech recommends installing a separate instance of the application, migrating the data and performing a cutover of the application.

Please read through the entire process before getting started.


The Kasm Workspaces 1.10.0 upgrade will install a new set of default desktop and application images. Please ensure 50GB of free space is available on the Kasm server ( or Agent role server for multi-server installations) prior to upgrading.

Create a Database Backup

Backup the existing Kasm database. This can be saved for later recovery, but will also be used to migrate existing data to the latest version.

  • Stop existing Kasm Services

sudo /opt/kasm/bin/stop
  • Execute the database backup utility

sudo mkdir -p /opt/kasm/backups/
sudo bash /opt/kasm/1.9.0/bin/utils/db_backup -f /opt/kasm/backups/kasm_db_backup.tar -p /opt/kasm/1.9.0/
  • Download and extract the new installation media

cd /tmp
curl -O <release url>
tar -xf kasm_release_*.tar.gz
  • Get the existing database password for use in the subsequent commands.

sudo grep " password" /opt/kasm/1.9.0/conf/app/
  • Get the existing manager token for use in the subsequent commands.

sudo grep "token" /opt/kasm/1.9.0/conf/app/

Perform a clean install

  • Install kasm from the release media downloaded in the prior steps.

sudo bash kasm_release/ -D -Q <DATABASE_PASSWORD> -M <MANAGER_TOKEN>

Modify Configs

  • Copy the server_id and the public_hostname properties from the old agent to the new

grep server_id /opt/kasm/1.9.0/conf/app/
grep public_hostname /opt/kasm/1.9.0/conf/app/
sudo vi /opt/kasm/1.10.0/conf/app/
  • Copy manager_id and server_hostname from the old configuration into the new

grep manager_id /opt/kasm/1.9.0/conf/app/
grep server_hostname /opt/kasm/1.9.0/conf/app/
sudo vi /opt/kasm/1.10.0/conf/app/
  • Copy the auto-generated nginx configs for any sessions that may exist on the Agent

sudo cp /opt/kasm/1.9.0/conf/nginx/containers.d/* /opt/kasm/1.10.0/conf/nginx/containers.d/

Restoring the Database.

Restore and update the database from the prior version

  • Ensure all Kasm services are stopped

sudo /opt/kasm/bin/stop
  • Execute the database restore command

sudo /opt/kasm/1.10.0/bin/utils/db_restore -f /opt/kasm/backups/kasm_db_backup.tar -p  /opt/kasm/1.10.0
  • Perform an upgrade of the database schema

sudo /opt/kasm/1.10.0/bin/utils/db_upgrade -p /opt/kasm/1.10.0
  • Install The Kasm 1.10.0 Default Images for your platform

For x86 (amd64) platforms:

sudo /opt/kasm/1.10.0/bin/utils/db_init -s /opt/kasm/1.10.0/conf/database/seed_data/default_images_amd64.yaml

For ARM (arm64) platforms:

sudo /opt/kasm/1.10.0/bin/utils/db_init -s /opt/kasm/1.10.0/conf/database/seed_data/default_images_arm64.yaml
  • Start the Kasm services

sudo /opt/kasm/bin/start

Update Custom Images

Each release, the Kasm Technologies team updates the default images with new features and security updates. The previous steps added the new default images to the upgraded system. Old images should be removed as they are not compatible with new Kasm features.

If you are running custom images, rebuild each image using the the latest image. (e.g : kasmweb/core-ubuntu-bionic:1.10.0 ) , and create a new Image entry in the Kasm UI. Do not re-use existing Image entries for custom images.

See Default and Custom Images for details.