@@ -390,6 +390,10 @@ sandbox-create: ## Create a Lima sandbox VM for this worktree
|
|||||||
sandbox-start: ## Start the Lima sandbox VM
|
sandbox-start: ## Start the Lima sandbox VM
|
||||||
./contrib/lima/sandbox.sh start
|
./contrib/lima/sandbox.sh start
|
||||||
|
|
||||||
|
.PHONY: sandbox-boot-logs
|
||||||
|
sandbox-boot-logs: ## Show the Lima sandbox VM boot logs
|
||||||
|
./contrib/lima/sandbox.sh boot-logs
|
||||||
|
|
||||||
.PHONY: sandbox-stop
|
.PHONY: sandbox-stop
|
||||||
sandbox-stop: ## Stop (hibernate) the Lima sandbox VM
|
sandbox-stop: ## Stop (hibernate) the Lima sandbox VM
|
||||||
./contrib/lima/sandbox.sh stop
|
./contrib/lima/sandbox.sh stop
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ Usage: $(basename "$0") <command> [options]
|
|||||||
Commands:
|
Commands:
|
||||||
create [--cpus C] [--memory M] [--disk D] Create a new sandbox VM
|
create [--cpus C] [--memory M] [--disk D] Create a new sandbox VM
|
||||||
start Start a stopped sandbox
|
start Start a stopped sandbox
|
||||||
|
boot-logs Show boot logs
|
||||||
stop Stop the sandbox
|
stop Stop the sandbox
|
||||||
restart Stop + start the sandbox
|
restart Stop + start the sandbox
|
||||||
delete Delete the sandbox entirely
|
delete Delete the sandbox entirely
|
||||||
@@ -85,6 +86,10 @@ cmd_start() {
|
|||||||
cmd_status
|
cmd_status
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cmd_boot_logs() {
|
||||||
|
limactl shell probo-sandbox-fix -- sudo tail -f /var/log/cloud-init-output.log
|
||||||
|
}
|
||||||
|
|
||||||
cmd_stop() {
|
cmd_stop() {
|
||||||
echo "Stopping sandbox: ${VM_NAME}"
|
echo "Stopping sandbox: ${VM_NAME}"
|
||||||
limactl stop "${VM_NAME}"
|
limactl stop "${VM_NAME}"
|
||||||
@@ -159,6 +164,7 @@ shift
|
|||||||
case "${command}" in
|
case "${command}" in
|
||||||
create) cmd_create "$@" ;;
|
create) cmd_create "$@" ;;
|
||||||
start) cmd_start ;;
|
start) cmd_start ;;
|
||||||
|
boot-logs) cmd_boot_logs ;;
|
||||||
stop) cmd_stop ;;
|
stop) cmd_stop ;;
|
||||||
restart) cmd_restart ;;
|
restart) cmd_restart ;;
|
||||||
delete) cmd_delete ;;
|
delete) cmd_delete ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user