- chainfire: Fix binary name (chainfire-server → chainfire) - fiberlb: Use --grpc-addr instead of --port - flaredb: Use --addr instead of --api-addr/--raft-addr - flashdns: Add --grpc-addr and --dns-addr flags - iam: Use --addr instead of --port/--data-dir - k8shost: Add --iam-server-addr for dynamic IAM port connection - lightningstor: Add --in-memory-metadata for ChainFire fallback - plasmavmc: Add ChainFire service dependency and endpoint env var - prismnet: Use --grpc-addr instead of --port These fixes are required for T039 production deployment. The plasmavmc change specifically fixes the ChainFire port mismatch (was hardcoded 50051, now uses chainfire.port = 2379). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
47 lines
1.4 KiB
Bash
Executable file
47 lines
1.4 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# PlasmaCloud VM Cluster - Node 02 (Disk Boot)
|
|
# Boots from installed NixOS on disk
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
DISK="${SCRIPT_DIR}/node02.qcow2"
|
|
MAC_MCAST="52:54:00:12:34:02"
|
|
MAC_SLIRP="52:54:00:aa:bb:02"
|
|
MCAST_ADDR="230.0.0.1:1234"
|
|
SSH_PORT=2202
|
|
VNC_DISPLAY=":2"
|
|
SERIAL_LOG="${SCRIPT_DIR}/node02-serial.log"
|
|
OVMF_CODE="/run/libvirt/nix-ovmf/edk2-x86_64-code.fd"
|
|
EFIVARS="${SCRIPT_DIR}/node02-efivars.fd"
|
|
|
|
# Verify disk exists
|
|
if [ ! -f "$DISK" ]; then
|
|
echo "ERROR: Disk not found at $DISK"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Launching node02 from disk..."
|
|
echo " Disk: ${DISK}"
|
|
echo " eth0 (multicast): ${MAC_MCAST} @ ${MCAST_ADDR}"
|
|
echo " eth1 (SLIRP): ${MAC_SLIRP}, SSH on host:${SSH_PORT}"
|
|
echo " VNC: ${VNC_DISPLAY} (port 5902)"
|
|
echo " Serial log: ${SERIAL_LOG}"
|
|
|
|
exec qemu-system-x86_64 \
|
|
-name node02 \
|
|
-machine type=q35,accel=kvm \
|
|
-cpu host \
|
|
-smp 8 \
|
|
-m 16G \
|
|
-drive if=pflash,format=raw,readonly=on,file="${OVMF_CODE}" \
|
|
-drive if=pflash,format=raw,file="${EFIVARS}" \
|
|
-drive file="${DISK}",if=virtio,format=qcow2 \
|
|
-boot c \
|
|
-netdev socket,mcast="${MCAST_ADDR}",id=mcast0 \
|
|
-device virtio-net-pci,netdev=mcast0,mac="${MAC_MCAST}" \
|
|
-netdev user,id=user0,hostfwd=tcp::${SSH_PORT}-:22 \
|
|
-device virtio-net-pci,netdev=user0,mac="${MAC_SLIRP}" \
|
|
-vnc "${VNC_DISPLAY}" \
|
|
-serial "file:${SERIAL_LOG}" \
|
|
-daemonize
|