Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions bin/omarchy-windows-vm
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,7 @@ launch_windows() {
exit 1
fi

# Wait for RDP to be ready
echo "Waiting for Windows VM to be ready..."
echo "Waiting for RDP to be ready..."
WAIT_COUNT=0
while ! nc -z 127.0.0.1 3389 2>/dev/null; do
sleep 2
Expand All @@ -297,8 +296,18 @@ launch_windows() {
fi
done

# Give it a moment more to fully initialize
sleep 5
echo "Waiting for Windows VM to start..."
WAIT_COUNT=0
until docker logs omarchy-windows 2>&1 | grep -qi "windows started successfully"; do
sleep 2
WAIT_COUNT=$((WAIT_COUNT + 1))
if [ $WAIT_COUNT -gt 60 ]; then # 2 minutes timeout
echo ""
echo "❌ Timeout: Windows VM failed to start within 2 minutes"
echo " Check logs: docker logs omarchy-windows"
exit 1
fi
done
fi

# Extract credentials from compose file
Expand Down