Files
coreapp-dev/install.sh
T
davidandClaude Opus 5.5 b405e35ea8 coreapp-dev: a Federated Core in a local KVM VM
A CoreDesktop sibling project. install.sh and update.sh install libvirt
and QEMU/KVM and set up the coreapp VM network (10.123.0.0/24, open mode,
with a libvirt hook for NAT and firewall rules, and ufw rules for DHCP,
DNS and forwarding). scripts/create-coreserver-vm.sh creates a CoreServer
VM with root's SSH keys from cloud-init, at 10.123.0.10, with
systemd-resolved masked so the Core's DNS server survives reboots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 11:27:23 -07:00

33 lines
936 B
Bash

#!/bin/bash
#
# Purpose : Install coreapp-dev, the Federated Core app SDK (run by
# CoreDesktop's `sibling add`). Safe to re-run.
set -e
SELF="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
COREDESKTOP="$HOME/.local/share/coredesktop"
if [ ! -f "$COREDESKTOP/utils.sh" ]; then
echo "coreapp-dev needs CoreDesktop, which isn't installed at $COREDESKTOP."
exit 1
fi
if [ ! -e /dev/kvm ]; then
echo "/dev/kvm is missing: turn on virtualization (VT-x/AMD-V) in the firmware"
echo "settings, then run this again."
exit 1
fi
# Per-machine data (CoreServer images, VM state) lives outside the repo
mkdir -p "$HOME/.local/share/coreapp-dev/images"
bash "$SELF/update.sh"
echo
echo "coreapp-dev installed."
# This shell's groups are fixed at login, so a new membership isn't seen yet
if ! id -nG | tr ' ' '\n' | grep -qx libvirt; then
echo "Log out and back in so your new libvirt group membership takes effect."
fi