-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRUN_DEMO.sh
More file actions
executable file
Β·60 lines (49 loc) Β· 2.07 KB
/
RUN_DEMO.sh
File metadata and controls
executable file
Β·60 lines (49 loc) Β· 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# Quick demo launcher for ionChannel E2E validation
#
# This script runs the comprehensive E2E demo showing:
# - Capability-based VM discovery
# - VM provisioning via benchScale
# - RustDesk installation
# - ionChannel portal deployment
# - Full event streaming
set -e
echo "π ionChannel E2E Demo Launcher"
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
# Check prerequisites
echo "π Checking prerequisites..."
if ! command -v virsh &> /dev/null; then
echo "β libvirt not found. Please install:"
echo " sudo apt install libvirt-daemon-system libvirt-clients"
exit 1
fi
if ! virsh -c qemu:///system list &> /dev/null; then
echo "β Cannot connect to libvirt. Check permissions:"
echo " sudo usermod -aG libvirt \$USER"
echo " newgrp libvirt"
exit 1
fi
echo "β
Prerequisites OK"
echo ""
# Set default environment variables if not set
export VM_SSH_USER="${VM_SSH_USER:-ubuntu}"
export VM_SSH_PASSWORD="${VM_SSH_PASSWORD:-ubuntu}"
export BENCHSCALE_LIBVIRT_URI="${BENCHSCALE_LIBVIRT_URI:-qemu:///system}"
echo "βοΈ Configuration:"
echo " VM_SSH_USER=$VM_SSH_USER"
echo " VM_SSH_PASSWORD=$VM_SSH_PASSWORD"
echo " BENCHSCALE_LIBVIRT_URI=$BENCHSCALE_LIBVIRT_URI"
echo ""
echo "βΆοΈ Running E2E demo..."
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
cargo run -p ion-validation --example full_e2e_demo --features libvirt
echo ""
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo "β
Demo complete!"
echo ""
echo "π For more information, see:"
echo " - DEMO_GUIDE.md (complete guide)"
echo " - E2E_COMPLETE.md (implementation details)"
echo " - CAPABILITY_BASED_VM_DISCOVERY.md (architecture)"