Skip to content

Install on Linux and macOS

rodeo runs in two roles, and they have different platform rules:

Role What it does Linux macOS
KVM host Runs the lab itself: rodeo up, status, stop, clean, ... Yes (SLES 16 / Leap 16 recommended) No
Control machine Drives remote hosts: rodeo up --target aws, rodeo fleet ..., rodeo fleet portal ..., rodeo ssh Yes Yes

A Mac can never be a KVM host: labs need /dev/kvm, libvirt and Linux /proc. rodeo doctor on a Mac reports 0 GiB RAM and no /dev/kvm, which is expected. Everything else (cloud hosts, fleets, the claim portal) works the same from either platform.

One installer, two roles

curl -fsSL https://raw.githubusercontent.com/avaleror/rodeo-cli/main/install.sh | bash

install.sh looks at the machine and picks the role:

Machine Role What it installs
SLES 16 / Leap 16 KVM host Needs root. python3, pip and git with zypper, rodeo in /opt/rodeo-cli, /usr/local/bin/rodeo. Then: rodeo up
macOS, SLES/Leap 15, Ubuntu, Fedora, any other Linux Control machine No system packages and no root needed. rodeo with the [aws,gcp] extras in ~/.local/share/rodeo-cli, ~/.local/bin/rodeo (as root: /opt/rodeo-cli, /usr/local/bin). Then: rodeo up --profile <name> --target aws (or --target gcp)

On a control machine the installer uses a Python 3.10+ that is already there (Homebrew, python311 on SLES 15, ...). If there is none, for example the Python 3.9 of macOS or the 3.6 of SLES 15, it fetches a private Python with a pinned uv into the install directory. The system Python is never touched and no shell profile is edited; the installer prints the PATH line to add if ~/.local/bin is not on it yet.

It needs git and curl. On macOS they come with the Xcode command line tools (xcode-select --install); on Linux, as root, the installer adds them itself.

  • By default it installs the latest validated release: the version that last passed a live deploy, recorded in the STABLE file. A release tagged after it isn't installed until it passes too (how releases are validated).
  • --ref <tag|branch|sha> installs something else: a specific release (--ref v0.33.0), or --ref main for the latest code.
  • --mode kvm-host|control-plane (or RODEO_MODE) overrides the automatic choice, for example a KVM host on another distribution at your own risk.
  • --no-builder (or RODEO_BUILDER=0) skips the Rodeo Builder service and removes one an earlier install set up. --builder-host ADDR (or RODEO_BUILDER_HOST) sets the address it listens on (default 0.0.0.0).
  • Re-running the installer updates rodeo. An environment left on a Python that is too old is rebuilt.

You normally never run it by hand on cloud hosts: rodeo up --target aws and rodeo fleet deploy run it on the host for you.

On a control machine, rodeo up without --target aws stops and says so instead of starting a lab it cannot run (--no-deploy still sets the lab up). RODEO_ALLOW_ANY_KVM_HOST=1 lets you try a local lab on an unsupported Linux anyway.

Rodeo Builder service

On Linux with systemd, in both roles, the installer runs the Rodeo Builder as rodeo-builder.service, so https://<this host>:8678/ is up after the install and after every reboot. It runs rodeo builder --no-open --host 0.0.0.0 --expose, listening on every interface over HTTPS (a certificate signed by rodeo's own CA; import https://<this host>:8678/ca.pem once in each browser, see Rodeo Builder), and is restarted on every update, by the installer and by rodeo self-update (--no-restart skips it), so it always runs the code just installed. A server left running on older code keeps serving the page it read at start-up while handing out the new scripts, and the page then fails to open.

On every interface the builder answers to this machine's host names and the addresses on its interfaces, read each time it starts; any other Host is refused, so other sites still can't reach it through DNS rebinding. Add names clients use that the machine can't see itself (a DNS alias, a public IP behind NAT) with RODEO_BUILDER_ALLOW="name1 name2".

Exposed, anyone who can reach port 8678 can save profiles as the service's user; Deploy and stored credentials ask for a login (rodeo logins add <user>, see Settings page), and Publish uses the github.com pages instead of this host's GitHub login (see Rodeo Builder). Limit who reaches the port with your firewall, or keep it on this machine with --builder-host 127.0.0.1 and tunnel (ssh -L 8678:127.0.0.1:8678 <host>).

Installed as Unit file Manage with
root /etc/systemd/system/rodeo-builder.service (runs as root) systemctl status rodeo-builder, journalctl -u rodeo-builder
a normal user ~/.config/systemd/user/rodeo-builder.service systemctl --user status rodeo-builder, journalctl --user -u rodeo-builder

A user service runs while that user is logged in; loginctl enable-linger keeps it running without a session.

To turn it off, re-run the installer with --no-builder (or RODEO_BUILDER=0): it stops, disables and removes the unit. systemctl disable --now rodeo-builder works too, but the next install without --no-builder turns it back on. macOS and machines without systemd get no service; run rodeo builder by hand there.

Settings page

The builder's Settings page (see Rodeo Builder) is served by rodeo builder itself, on its own address and port. As root on Linux, in both roles, the installer only prepares its login:

Path What
/etc/rodeo-builder/htpasswd Login file: users who may add or delete credentials (a link to lab-builder's /etc/lab-builder/htpasswd, created empty when missing)

Add users with rodeo logins add <user> (list, remove). The file is in htpasswd format and the hashes are bcrypt, checked by rodeo itself: no Apache tool is needed, and htpasswd -B lines work too. A user made with htpasswd -m (APR1-MD5) can log in and moves to bcrypt the next time its password is set; any other hash (SHA-1, crypt) cannot log in until the password is set again. Without the system file, on a laptop or a non-root install, rodeo builder uses ~/.rodeo/builder/htpasswd.

Earlier versions served the page through Apache; an update removes what they installed for it (/srv/www/rodeo-builder/, /usr/local/sbin/rodeo-builder-helper, /etc/sudoers.d/rodeo-builder and the rodeo-builder.conf in Apache's conf.d, reloading a running Apache). The login file stays.

From a checkout (if you change rodeo itself)

git clone https://github.com/avaleror/rodeo-cli.git ~/GitHub/rodeo-cli
cd ~/GitHub/rodeo-cli
bash install.sh --dev        # editable install with the dev extras, in place

The install is editable, so whatever branch is checked out in that directory is what rodeo runs.

AWS credentials (both platforms)

rodeo uses boto3 and never reads keys from workshop.yaml or rodeo-plan.yaml. Any standard AWS credential source works: aws login (console session, used by SUSE accounts), aws sso login, ~/.aws/credentials, or environment variables.

aws login
aws sts get-caller-identity             # confirm before provisioning anything

aws login sessions need the awscrt package, which the [aws] extra installs (boto3[crt]). Without it every AWS call fails with MissingDependencyException. These sessions can also throw a transient CreateOAuth2Token error mid-command while still being valid: re-run the command.

Differences and things to know

Topic Linux macOS
Installer install.sh (KVM host on SLES 16 / Leap 16, control machine elsewhere) install.sh (control machine)
Python Distribution python3 3.10+, else a private one via uv Homebrew's if present, else a private one via uv (system python3 is 3.9)
[aws] extra Installed on control machines Installed
Local labs (rodeo up without --target aws) Yes, on a KVM host No
SSH OpenSSH Built-in OpenSSH; nothing extra needed
rodeo's own SSH key ~/.rodeo/ssh/id_ed25519, created on first use; AWS labs get their own key in ~/.rodeo/ssh/labs/<lab>/, deleted with the lab Same

Your laptop's public IP. A rodeo-managed AWS security group only admits the public IP of the machine that last ran provision (or up --target aws). Changing network (another Wi-Fi, a VPN, tethering) locks you out: SSH and rodeo fleet time out. Re-run rodeo fleet provision -f workshop.yaml (or rodeo up --target aws again): it reuses the hosts and moves the rule to your new IP. It also closes any student ports, so run rodeo fleet open-access -f workshop.yaml again afterwards.

Laptop sleep during long runs. A deploy runs on the hosts (in tmux), so a sleeping laptop does not break it. What stops are the commands that follow it from your machine, such as rodeo fleet portal publish --watch. Keep the machine awake while they run:

# macOS
caffeinate -i rodeo fleet portal publish --watch -f workshop.yaml
# Linux (systemd)
systemd-inhibit --what=sleep rodeo fleet portal publish --watch -f workshop.yaml

If the watch stops anyway, just start it again: labs that are already published stay published, and the instructor page warns when updates stop arriving.

The same goes for a single-host rodeo up --target aws: if the laptop loses the session (sleep, Wi-Fi, Ctrl-C), the deploy keeps running on the host. Its log is /root/.rodeo/logs/aws-up.log there (rodeo ssh, then sudo tail -f it). Running rodeo up again while that deploy is still going stops with exit 75 instead of starting a second one.

Which rodeo runs where. Your local checkout only drives the control side. KVM hosts install rodeo from GitHub: the same release your laptop runs, main when your laptop runs a checkout between releases, or the ref you pass with --ref / lab.ref. A local change reaches the hosts only after it is pushed. The one exception is the claim portal: rodeo fleet portal up copies the portal code from your local checkout to the portal VM.

Scripts around rodeo. macOS ships BSD tools and zsh, not GNU tools and bash. Commands you write around rodeo may behave differently: there is no timeout (brew install coreutils gives gtimeout), sed -i needs sed -i '', and zsh does not word-split unquoted variables. rodeo itself does not depend on any of these on the control machine.