Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
Add lume options
f-trycua885831f04ea7
diff --git a/libs/lumier/src/lib/vm.sh b/libs/lumier/src/lib/vm.shindex 19dcff07a7..9d3dda0637 100755--- a/libs/lumier/src/lib/vm.sh+++ b/libs/lumier/src/lib/vm.sh@@ -9,7 +9,7 @@ start_vm() {# Check if VM exists and its status using JSON formatVM_INFO=$(lume get "$VM_NAME" --storage "$STORAGE_NAME" -f json 2>&1)-+# Check if VM not found errorif [[ $VM_INFO == *"Virtual machine not found"* ]]; thenIMAGE_NAME="${VERSION##*/}"@@ -17,7 +17,8 @@ start_vm() {else# Parse the JSON status - check if it contains "status" : "running"if [[ $VM_INFO == *'"status" : "running"'* ]]; then- lume_stop "$VM_NAME" "$STORAGE_NAME"+ # lume_stop "$VM_NAME" "$STORAGE_NAME"+ lume stop "$VM_NAME" --storage "$STORAGE_NAME"fifi@@ -38,7 +39,8 @@ start_vm() {fi# Run VM with VNC and shared directory using curl- lume_run $SHARED_DIR_ARGS --storage "$STORAGE_NAME" "$VM_NAME" &+ # lume_run $SHARED_DIR_ARGS --storage "$STORAGE_NAME" "$VM_NAME" &+ lume run "$VM_NAME" --storage "$STORAGE_NAME" --no-display# Wait for VM to be running and VNC URL to be availablevm_ip=""@@ -69,7 +71,8 @@ start_vm() {if [ -z "$vm_ip" ] || [ -z "$vnc_url" ]; thenecho "Timed out waiting for VM to start or VNC URL to become available."- lume_stop "$VM_NAME" "$STORAGE_NAME" > /dev/null 2>&1+ # lume_stop "$VM_NAME" "$STORAGE_NAME" > /dev/null 2>&1+ lume stop "$VM_NAME" --storage "$STORAGE_NAME" > /dev/null 2>&1exit 1fi@@ -79,7 +82,7 @@ start_vm() {VNC_PORT=$(echo "$vnc_url" | sed -n 's/.*:\([0-9]\+\)$/\1/p')# Wait for SSH to become available- wait_for_ssh "$vm_ip" "$HOST_USER" "$HOST_PASSWORD" 5 20+ wait_for_ssh "$vm_ip" "$HOST_USER" "$HOST_PASSWORD" 5 20# Export VNC variables for entry.sh to useexport VNC_PORT