Skip to content

eBPF-based security platform

lima: show how to enable GICv3 traps after a boot stall

Andrea Lattuada9e6bde6749a9
diff --git a/infra/lima/shirudo.yaml b/infra/lima/shirudo.yaml
index 8843df8f..40c68a21 100644
--- a/infra/lima/shirudo.yaml
+++ b/infra/lima/shirudo.yaml
@@ -106,7 +106,9 @@ provision:
case "$rc" in
0) echo "The nested KVM appliance is ready." ;;
124) echo "The nested KVM appliance check timed out. Inspect $log for boot progress."
- echo "If boot stalled, see https://docs.shirudo.dev/start/quickstart-macos.html#troubleshooting" ;;
+ echo "If the appliance started booting and then stalled, try the GICv3 traps."
+ echo "Run sudo sh infra/lima/enable-gicv3-traps.sh from the checkout inside this Lima VM."
+ echo "Then restart the VM from your Mac. See https://docs.shirudo.dev/start/quickstart-macos.html#troubleshooting" ;;
*) echo "The nested KVM appliance check failed with status $rc. See $log."
echo "For troubleshooting, see https://docs.shirudo.dev/start/quickstart-macos.html#troubleshooting" ;;
esac
diff --git a/testing/vm/build-bundle.sh b/testing/vm/build-bundle.sh
index 857df958..6aa4b9a1 100755
--- a/testing/vm/build-bundle.sh
+++ b/testing/vm/build-bundle.sh
@@ -273,7 +273,9 @@ if [[ "${1:-}" == --check-kvm-appliance ]]; then
case "$status" in
0) log "KVM appliance ready. Check target readiness separately with 'make -C testing vm'." ;;
124) log "KVM appliance readiness check timed out. Inspect the console for boot progress."
- log "If boot appears stalled in Lima, see https://docs.shirudo.dev/start/quickstart-macos.html#troubleshooting" ;;
+ log "If the appliance started booting and then stalled in Lima, try the GICv3 traps."
+ log "Run sudo sh infra/lima/enable-gicv3-traps.sh from the checkout inside the Lima VM."
+ log "Then restart the VM from your Mac. See https://docs.shirudo.dev/start/quickstart-macos.html#troubleshooting" ;;
*) log "KVM appliance check failed with status $status. See output above."
log "For troubleshooting, see https://docs.shirudo.dev/start/quickstart-macos.html#troubleshooting" ;;
esac