Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8b1be7a
Add the ZCon portable demo: Raspberry Pi USB agent computer with Tor-…
amiller Oct 25, 2026
18f48d2
Link the daily private inference digest from the README
amiller Oct 25, 2026
8faf4a3
Pseudonym: Zcash t-address identities on Free2Z from the wallet seed …
amiller Oct 27, 2026
f06fbbf
Pseudonym: refuse while the vault is locked; whoami needs a login
amiller Oct 27, 2026
39168e3
Pseudonym: reach Free2Z through a per-pseudonym Nym client and record…
amiller Oct 27, 2026
6fa89bd
Pseudonym: report Nym startup once; curl failures name the URL and cu…
amiller Oct 27, 2026
342474e
Pseudonym: say which Zkool address matches (stored at diversifier ind…
amiller Oct 27, 2026
a56a9be
Pseudonym: move to portable/zcash/pseudonym
amiller Oct 27, 2026
af319df
Merge pull request #80 from amiller/work/zcash-pseudonyms
amiller Oct 27, 2026
ed57191
ZECpublish for the agent: read the feed over Tor, post/reply/like thr…
amiller Oct 27, 2026
b1a7454
ZECpublish: read the feed with curl (fetch's 10 s connect timeout fai…
amiller Oct 27, 2026
b86fd15
Enforce NEAR direct firmware (MRTD/RTMR0) only; report kernel RTMR1/R…
amiller Oct 27, 2026
7b0959e
Merge ZECpublish (#81) into the ZCon portable demo
amiller Oct 29, 2026
f91fba6
Read the Wi-Fi regulatory country from the personalization input
amiller Oct 29, 2026
0df7adf
Name the agent wallet's source account "agent"
amiller Oct 29, 2026
38c92b4
Let the wallet user accept Zkool's disclaimer
amiller Oct 29, 2026
a52044d
Take the node binary for the namespace lease fixtures from NODE
amiller Oct 29, 2026
e3087c0
Add laptop tools for reaching, updating and recording the Pi
amiller Oct 29, 2026
5884f20
Add pinned fetch and build scripts for the stick's third-party binaries
amiller Oct 29, 2026
a0fd51b
Document how a ZCon demo stick is put together, and ZECpublish
amiller Oct 29, 2026
0936a6d
Move the QEMU rehearsal and portable-pi workflow to docs/history
amiller Oct 29, 2026
5de21fa
BUILD.md: do not claim how each missing component reached the demo stick
amiller Oct 29, 2026
0e25b5d
Pseudonym: read agent-wallet.json from portable/wallet
amiller Oct 29, 2026
78bde7a
pi-deploy: do not copy payload directory modes onto the Pi
amiller Oct 29, 2026
f0b021c
Tools: match PI_MAC on lladdr, stop hiding ssh failures in demo-record
amiller Oct 29, 2026
722a9b7
build-zkool-graphql.sh: say why the source check failed; note rustup …
amiller Oct 29, 2026
124cb2f
NEAR direct: label an unreviewed kernel by its RTMR1/RTMR2
amiller Oct 29, 2026
92ab95c
Operator shell: drop ~/pseudonym from the help, accept only its exact…
amiller Oct 29, 2026
cd681ac
Docs: scope the attestation claim; spell out upgrade and funding setup
amiller Oct 29, 2026
f784063
Tests: use 16385 as the out-of-range NEAR coupon cap after the cap ro…
amiller Oct 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ only under `~/.abalone-app` and `~/.local/bin`, and claims nothing
([what install.sh does](docs/abalone-coupon-redeem.md#what-installsh-does);
[without the script](docs/abalone-coupon-redeem.md#without-the-script)).

**Zcash, planned.** Pay for a slice of model access and open a session.
Invoice and payment detection have a testnet prototype; the swap is dry-run
only, and buying provider credit with the proceeds remains unresolved.
**Zcash.** Pay for a slice of model access and open a session. The
[ZCon demo](portable/zcon-demo/README.md) does this on a Raspberry Pi: it swaps
ZEC to USDC and buys NEAR AI credit with it. The laptop client does not have
this route yet.

Today plain `abalone` opens a saved credit or asks for a gift.
Bringing keys and coupons into the same launcher, with sandbox capabilities
Expand Down Expand Up @@ -122,6 +123,8 @@ boundaries.
- [Guides](guides/README.md): providers, payment and network setup
- [Watch a synthetic PDF become meeting minutes](https://pod.dstack.soc1024.com/artifact-reports-2026c/abalone-coupon-pdf-meeting-minutes--lWMO2qY1hfbnqZdRWwg8cQ/) using a coupon
- [Architecture and source layout](docs/architecture.md) and [documentation index](docs/README.md)
- [ZCon demo](portable/zcon-demo/README.md): a Raspberry Pi agent computer on a USB stick, paid with Zcash
- Related: [teep](https://github.com/13rac1/teep), a local proxy that checks provider attestation before forwarding requests, and [awesome-private-inference](https://github.com/amiller/awesome-private-inference), a registry of TEE inference providers, with a [daily news digest](https://github.com/amiller/awesome-private-inference/tree/main/watch/beat)
- [Contributing](CONTRIBUTING.md), [issues](https://github.com/amiller/abalone/issues) and [security reporting](SECURITY.md)

First-party code is [MIT licensed](LICENSE); preserve [component notices](THIRD_PARTY_NOTICES.md).
7 changes: 6 additions & 1 deletion agents/pi/admitted.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{
"kind": "tree",
"path": "lib",
"sha256": "fbe13e2031ba2dda14a42634ec1d1cb710bfe5a6f87c3d105e9f71fe2e041e64"
"sha256": "f01969f726aadfc92a16f584ae6f07dc1f30ed43a390833ccbbb8b0ac14e127f"
},
{
"kind": "skill",
Expand Down Expand Up @@ -85,6 +85,11 @@
"kind": "tree",
"path": "verifiers",
"sha256": "1400a863c3dab8d1e34b36cedd6887e42d04b14492d780a85a67cd8bd8f828f7"
},
{
"kind": "provider",
"path": "agents/pi/broker-provider.mjs",
"sha256": "0baeaede4804fc33906c8047a71e6d29fc2911e2f1bb63f998caad1c1b955d9b"
}
]
}
40 changes: 40 additions & 0 deletions agents/pi/broker-provider.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// SPDX-License-Identifier: MIT
// Trusted caller supplies the profile and fetch factory; no platform discovery.
import fs from 'node:fs';
import path from 'node:path';
import {pathToFileURL} from 'node:url';
export async function createBrokerProvider({sdkPath, profile, fetchFactory}) {
if (!profile || typeof profile.id !== 'string' || typeof profile.model !== 'string' || !Number.isSafeInteger(profile.maxTokens) || profile.maxTokens < 1 || !Number.isSafeInteger(profile.contextWindow) || typeof fetchFactory !== 'function') throw new Error('Trusted broker profile required');
const entry = fs.realpathSync(sdkPath);
const codingRoot = path.dirname(path.dirname(entry));
if (path.basename(entry) !== 'index.js' || path.basename(path.dirname(entry)) !== 'dist') throw new Error('Unsupported SDK entry');
let packageDir;
if (path.basename(codingRoot) === 'pi-coding-agent' && path.basename(path.dirname(codingRoot)) === '@earendil-works') {
packageDir = path.join(path.dirname(codingRoot), 'pi-ai');
} else if (path.basename(codingRoot) === 'coding-agent' && path.basename(path.dirname(codingRoot)) === 'packages') {
const root = path.dirname(path.dirname(codingRoot));
packageDir = path.join(root, 'packages/ai');
} else throw new Error('Unsupported SDK package layout');
// Exact sibling inside the admitted closure, never ancestor NODE_PATH/HOME.
if (fs.realpathSync(packageDir) !== packageDir) throw new Error('SDK provider package escapes closure');
const metadata = JSON.parse(fs.readFileSync(path.join(packageDir, 'package.json'), 'utf8'));
if (metadata.name !== '@earendil-works/pi-ai' || metadata.exports?.['.']?.import !== './dist/index.js' || metadata.exports?.['./compat']?.import !== './dist/compat.js') throw new Error('Unsupported SDK provider exports');
const { createProvider } = await import(pathToFileURL(path.join(packageDir, 'dist/index.js')).href);
const { openAICompletionsApi } = await import(pathToFileURL(path.join(packageDir, 'dist/compat.js')).href);
const api = openAICompletionsApi();
const wrap = method => (model, context, options = {}) => api[method](model, context, {
...options, ...profile.streamOptions, fetch: fetchFactory(options), maxRetries: 0,
});
return createProvider({
id: profile.id, name: profile.name, baseUrl: 'http://inference-broker.invalid/v1',
auth: {apiKey: {name: 'Local socket dummy', resolve: async () => ({auth: {apiKey: 'inference-broker-session'}})}},
models: [{id: profile.model, name: profile.modelName, api: 'openai-completions',
provider: profile.id, baseUrl: 'http://inference-broker.invalid/v1',
compat: {supportsStore: false, supportsDeveloperRole: false, maxTokensField: 'max_tokens', ...profile.compat},
...(profile.thinkingLevelMap ? {thinkingLevelMap: profile.thinkingLevelMap} : {}),
reasoning: profile.reasoning === true, input: ['text'], contextWindow: profile.contextWindow, maxTokens: profile.maxTokens,
// SDK requires numeric metadata. Zero is a placeholder, not a price.
cost: {input: 0, output: 0, cacheRead: 0, cacheWrite: 0}}],
api: {stream: wrap('stream'), streamSimple: wrap('streamSimple')},
});
}
46 changes: 46 additions & 0 deletions docs/history/portable-development.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Portable development workflow

> Historical: the workflow for the `portable-pi` feature branch, which is no longer the integration target; see [development workflow](../development.md).

`portable-pi` is the portable feature integration branch. Keep bounded changes
on separate topic branches and worktrees; target their PRs at `portable-pi` rather
than `main`. Follow the repository's [development workflow](../development.md)
and [contribution instructions](../../CONTRIBUTING.md).

## Start a topic

Once the feature branch is available on the hosted repository, fetch it explicitly
and create an isolated checkout from that revision:

```sh
git fetch https://github.com/amiller/abalone.git portable-pi
git worktree add -b work/portable-wallet ../portable-wallet FETCH_HEAD
```

For an unpublished local feature branch, create the worktree from the local
`portable-pi` ref instead. Keep credentials and disposable runtime state outside
tracked files. Do not copy private planning, transcripts or preserved history
into this repository.

After the change passes its relevant checks and publication review, push only
that topic and open a draft PR with base `portable-pi`. Describe the final behavior,
actual validation, platform scope and dependencies. Seek independent review before
merging into the feature branch. Feature integration does not qualify `main` or
an installable release; their offline gate and review requirements remain.

## Keep the loop small

Run terminal, conversation and wallet interactions as normal processes in a
desktop session. Restart the changed process and complete one relevant journey.
Use focused fixtures for financial and error handling; never silently replay a
potentially charged request. Wallet exploration begins read-only, with signing
and transaction approval remaining in the wallet.

Use QEMU for boot, storage and network-isolation changes. Check physical hardware
at complete feature milestones for ARM compatibility, resource use and speed.
Do not rebuild an image to check an unrelated terminal or wallet interaction.
Preserve logs and results, then remove disposable installs and build outputs.

The older
`work/portable-pi-workspace` draft PR is legacy work targeting `main`; it does
not define the new topic-PR base or establish release readiness.
105 changes: 105 additions & 0 deletions docs/history/raspberry-pi-rehearsal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# ARM64 portable rehearsal

> Historical: the QEMU rehearsal and kiosk recipe used before the Pi hardware demo; the scripts were moved here from `portable/raspberry-pi/`, so the paths in the commands below are the old ones.

Boot a disposable ARM64 development guest to validate the portable filesystem and
startup services before testing a separate Raspberry Pi USB image. This is a VM
boot spike: it does not yet contain the workspace UI, agent, payment integration,
or a Tor-only network boundary. User-mode networking permits ordinary egress.
Use synthetic work and no payment credentials.

The initial host recipe targets Ubuntu 22.04 x86_64 with `qemu-img`, `genisoimage`,
`curl`, `ssh-keygen`, `dpkg-deb`, and the shared libraries required by QEMU already
installed. ARM QEMU and EFI packages are extracted into a user-owned directory;
no system package install or existing VM changes are needed. The package versions
are pinned; if the host's authenticated apt indexes no longer offer them, review
and update the pins instead of silently substituting a different version.

Choose dedicated storage on a disk with room for the image and a sparse 12 GB
writable overlay. Heavy work belongs on a build host, not a small laptop.

```sh
export PORTABLE_REHEARSAL_DIR=/path/to/dedicated/portable-rehearsal
./portable/raspberry-pi/rehearse.sh tools
./portable/raspberry-pi/rehearse.sh image
./portable/raspberry-pi/rehearse.sh prepare
./portable/raspberry-pi/rehearse.sh run
```

Run the final command in a persistent terminal. In another terminal on that host:

```sh
export PORTABLE_REHEARSAL_DIR=/path/to/dedicated/portable-rehearsal
./portable/raspberry-pi/rehearse.sh ssh 'uname -m; cloud-init status --wait'
```

SSH is bound to host loopback port 2222 and VNC to loopback port 5901. Forward them
through SSH to inspect a remote guest. No guest password is installed; the
rehearsal generates a dedicated key in `seed/`. The guest user has passwordless
sudo inside this disposable VM. Never reuse the seed or key for a shipped image.
The base image has no graphical desktop; VNC is wired for a future workspace.

The pinned base is Debian's official
[Bookworm ARM64 generic image](https://cloud.debian.org/images/cloud/bookworm/20261006-2623/).
The script verifies its pinned SHA-512 before accepting a download or preparing
an overlay. Provenance and serial output go in `evidence/`; preserve those with
source revision and outcomes. The checksum was obtained from the publisher over
HTTPS; detached-signature verification is not implemented by this spike.

QEMU's [generic virt board](https://www.qemu.org/docs/master/system/arm/virt.html)
runs with four Cortex-A72 CPUs, 4 GB RAM, and software TCG emulation on x86. Its
firmware and virtio devices differ from a Pi. Share filesystem contents and
service definitions with the eventual Pi package, but provide machine-specific
kernel/firmware configuration. Emulated boot time does not predict Pi timing.

## Acceptance loop

1. Preserve the immutable base image; use one writable overlay per rehearsal.
2. Record serial `PORTABLE_ARM64_READY`, `uname -m`, cloud-init status, image hash,
source revision, and the actual checks run. These establish a booted guest,
not a working agent experience.
3. As workspace integration lands, exercise local interaction before networking,
a real synthetic agent task, connection loss, and restart recovery.
4. Once Tor enforcement lands, independently capture egress and test failure
closure. A Tor status label or this VM's NAT configuration is not evidence.
5. Shut down with `rehearse.sh ssh 'sudo poweroff'`. Retain logs and results;
remove disposable images, keys, and build outputs after collecting evidence.
A new `prepare` refuses to overwrite an existing overlay.

The hardware gate remains a separate USB boot on the target Pi, covering firmware,
display, input, USB compatibility, and three measured cold boots. Do not flash a
system disk or disturb a running Pi as part of the VM rehearsal.

## Workspace and kiosk in the disposable guest

Copy `portable/workspace/` and `portable/raspberry-pi/provision-guest.sh` into the
rehearsal user's home directory, preserving the directory layout, then run:

```sh
bash portable/raspberry-pi/provision-guest.sh --kiosk
```

This guest-only command verifies a pinned official Node 24 ARM64 archive, installs
it under `~/.local/opt`, and enables `portable-workspace.service` before installing
optional Chromium, Xorg, Openbox, and fonts from Debian's authenticated package
repositories. Omit `--kiosk` for backend-only iteration. Kiosk packages use the
configured Debian repository versions; record installed versions when qualifying
an image. This step is not a reproducible final image build.

The kiosk uses tty1 autologin as the disposable rehearsal user and opens the
loopback workspace. This convenience account has sudo; it is not the final
agent authority boundary. Do not add secrets. A graphical failure should leave
SSH available for diagnosis. Inspect `journalctl -u portable-workspace` and the
user's Xorg log. VNC displays the guest; it is not a web server port.

Copy [verify-workspace.py](verify-workspace.py) into the guest and run it with
Python 3 to exercise a real terminal via the HTTP API. It checks `uname -m`
through the PTY and closes its session. Retain its JSON output as evidence.

## SDK runtime bundle

[Package and verify the SDK runtime](../../../portable/raspberry-pi/sdk-runtime.md) separately from guest
provisioning. The bundle verifier exercises real SDK tools, native clipboard
binding loading and QuickJS on the machine where it runs. Host results do not
qualify another architecture; run the verifier inside the ARM guest before
connecting its workspace to the bundle. This does not perform model inference.
53 changes: 53 additions & 0 deletions docs/history/raspberry-pi-rehearsal/provision-guest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/usr/bin/env bash
# Run inside the disposable ARM64 guest as the rehearsal user.
set -euo pipefail
[[ $(uname -m) == aarch64 ]] || { echo 'ARM64 guest required' >&2; exit 1; }
node_version=v24.22.0
node_archive="node-$node_version-linux-arm64.tar.xz"
node_sha=fef00bb4d36e1c50104a9775a10359beee98f162b4104dd12472c75065c6a143
mkdir -p "$HOME/.local/opt" "$HOME/workspace" "$HOME/provision-cache"
cd "$HOME/provision-cache"
curl --fail --location --retry 3 "https://nodejs.org/dist/$node_version/$node_archive" -o "$node_archive"
printf '%s %s\n' "$node_sha" "$node_archive" | sha256sum --check -
tar -xJf "$node_archive" -C "$HOME/.local/opt"
[[ -f "$HOME/portable/workspace/server.mjs" ]] || { echo 'Deploy portable/workspace first' >&2; exit 1; }
sudo tee /etc/systemd/system/portable-workspace.service >/dev/null <<UNIT
[Unit]
Description=Portable workspace rehearsal
After=local-fs.target
[Service]
User=$USER
WorkingDirectory=$HOME
ExecStart=$HOME/.local/opt/node-$node_version-linux-arm64/bin/node $HOME/portable/workspace/server.mjs --workspace $HOME/workspace
Restart=on-failure
[Install]
WantedBy=multi-user.target
UNIT
sudo systemctl daemon-reload
sudo systemctl enable --now portable-workspace.service
if [[ ${1:-} == --kiosk ]]; then
sudo apt-get update
sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends xserver-xorg xinit x11-xserver-utils chromium openbox fonts-dejavu-core
cat > "$HOME/.xinitrc" <<'XINIT'
#!/bin/sh
xset -dpms
xset s off
openbox &
exec chromium --kiosk --no-first-run --disable-session-crashed-bubble --user-data-dir=/tmp/portable-chromium http://127.0.0.1:8765
XINIT
chmod +x "$HOME/.xinitrc"
mkdir -p "$HOME/.config"
cat > "$HOME/.bash_profile" <<'PROFILE'
if [ "$(tty)" = /dev/tty1 ]; then
exec startx -- -nolisten tcp
fi
PROFILE
sudo mkdir -p /etc/systemd/system/getty@tty1.service.d
sudo tee /etc/systemd/system/getty@tty1.service.d/autologin.conf >/dev/null <<UNIT
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin $USER --noclear %I \$TERM
UNIT
sudo systemctl daemon-reload
sudo systemctl restart getty@tty1.service
fi
82 changes: 82 additions & 0 deletions docs/history/raspberry-pi-rehearsal/rehearse.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/usr/bin/env bash
# Disposable ARM64 development guest; this does not enforce Tor-only egress.
set -euo pipefail
mode=${1:-help}
root=${PORTABLE_REHEARSAL_DIR:?Set PORTABLE_REHEARSAL_DIR to dedicated rehearsal storage}
mkdir -p "$root"/{tools/packages,tools/root,images,evidence,tmp}
root=$(cd "$root" && pwd)
export TMPDIR="$root/tmp"
image=debian-12-generic-arm64-20261006-2623.qcow2
image_url="https://cloud.debian.org/images/cloud/bookworm/20261006-2623/$image"
image_sha=991f0dd77ee442eb2406568fc27c537190af0c78ab211b0e2adcf568cd203aebf696b94a05e64c7e00d3e05e0e532fdd941311e34ef862ad06bc1bc69a92a3fb
qemu="$root/tools/root/usr/bin/qemu-system-aarch64"
firmware="$root/tools/root/usr/share/AAVMF"
case "$mode" in
tools)
cd "$root/tools/packages"
apt-get download 'qemu-system-arm=1:6.2+dfsg-2ubuntu6.31' 'qemu-efi-aarch64=2022.02-3ubuntu0.22.04.7'
for package in ./*.deb; do dpkg-deb -x "$package" ../root; done
sha256sum ./*.deb > "$root/evidence/tool-packages.sha256"
ldd "$qemu" > "$root/evidence/qemu-ldd.txt"
if grep -q 'not found' "$root/evidence/qemu-ldd.txt"; then cat "$root/evidence/qemu-ldd.txt"; exit 1; fi
"$qemu" --version | tee "$root/evidence/qemu-version.txt"
;;
image)
cd "$root/images"
if [[ ! -f "$image" ]]; then
curl --fail --location --retry 3 "$image_url" -o "$image.part"
printf '%s %s\n' "$image_sha" "$image.part" | sha512sum --check -
mv "$image.part" "$image"
fi
printf '%s %s\n' "$image_sha" "$image" | sha512sum --check -
printf '%s\n%s %s\n' "$image_url" "$image_sha" "$image" > "$root/evidence/image-provenance.txt"
;;
prepare)
[[ ! -e "$root/images/run.qcow2" ]] || { echo 'Existing run.qcow2: retain it for recovery or remove explicitly before a fresh run.' >&2; exit 1; }
printf '%s %s\n' "$image_sha" "$root/images/$image" | sha512sum --check -
mkdir -p "$root/seed"
ssh-keygen -q -t ed25519 -N '' -f "$root/seed/guest-key"
printf 'instance-id: portable-arm64-rehearsal\nlocal-hostname: portable-rehearsal\n' > "$root/seed/meta-data"
cat > "$root/seed/user-data" <<YAML
#cloud-config
users:
- name: rehearsal
groups: [sudo]
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
lock_passwd: true
ssh_authorized_keys:
- $(cat "$root/seed/guest-key.pub")
ssh_pwauth: false
disable_root: true
runcmd:
- [sh, -c, 'echo PORTABLE_ARM64_READY > /dev/ttyAMA0']
YAML
genisoimage -quiet -output "$root/images/seed.iso" -volid cidata -joliet -rock "$root/seed/user-data" "$root/seed/meta-data"
qemu-img create -f qcow2 -F qcow2 -b "$root/images/$image" "$root/images/run.qcow2" 12G
cp "$firmware/AAVMF_VARS.fd" "$root/images/vars.fd"
;;
run)
exec "$qemu" -name portable-arm64-rehearsal \
-machine virt -cpu cortex-a72 -accel tcg,thread=multi -smp 4 -m 4096 \
-drive if=pflash,format=raw,readonly=on,file="$firmware/AAVMF_CODE.fd" \
-drive if=pflash,format=raw,file="$root/images/vars.fd" \
-drive if=none,id=os,format=qcow2,file="$root/images/run.qcow2" \
-device virtio-blk-pci,drive=os \
-drive if=none,id=seed,format=raw,readonly=on,file="$root/images/seed.iso" \
-device virtio-blk-pci,drive=seed \
-netdev user,id=net0,hostfwd=tcp:127.0.0.1:2222-:22 \
-device virtio-net-pci,netdev=net0 \
-device virtio-gpu-pci -device qemu-xhci -device usb-kbd -device usb-tablet \
-vnc 127.0.0.1:1 -serial file:"$root/evidence/serial.log" \
-qmp unix:"$root/tmp/qmp.sock",server=on,wait=off \
-pidfile "$root/tmp/qemu.pid" -monitor none
;;
ssh)
shift
exec ssh -i "$root/seed/guest-key" -o IdentitiesOnly=yes \
-o StrictHostKeyChecking=accept-new -o UserKnownHostsFile="$root/seed/known_hosts" \
-p 2222 rehearsal@127.0.0.1 "$@"
;;
*) echo "Usage: PORTABLE_REHEARSAL_DIR=/dedicated/storage $0 {tools|image|prepare|run|ssh [command]}"; exit 2 ;;
esac
Loading