Skip to content

Ollama with Open WebUI on Google Cloud

Ollama with Open WebUI on Google Cloud is a pre-configured Compute Engine image that provides a ready-to-run local LLM environment. It combines Ollama for local model serving and Open WebUI for a browser-based chat interface, with the lightweight smollm2:135m model preloaded for immediate validation.

Disclaimer: All trademarks referenced in this listing belong to their respective owners. Their use does not imply any affiliation with or endorsement by the trademark holders.

  • Ollama local model server (listening privately on 127.0.0.1:11434)
  • Open WebUI browser interface (listening on port 8080)
  • Preloaded smollm2:135m model for quick validation (CPU inference by default; pull larger models after launch on larger machine types)
  1. Find and subscribe to Ollama with Open WebUI on the Google Cloud Marketplace.
  2. Launch a VM instance (e2-standard-2 or larger for basic validation; larger models require more CPU, memory, and disk capacity).
  3. In your VPC firewall rules, allow TCP port 8080 only from trusted IP addresses (or keep 8080 closed and use an SSH tunnel). Do not expose port 11434 publicly.

Once the VM is running, open:

http://<INSTANCE_EXTERNAL_IP>:8080

On first access, create the initial Open WebUI administrator account and start chatting with the preloaded smollm2:135m model.

Section titled “Private access via SSH tunnel (recommended)”

If you do not want to expose port 8080 in your VPC firewall, forward it over gcloud compute ssh:

Terminal window
gcloud compute ssh ubuntu@INSTANCE_NAME --project PROJECT_ID --zone ZONE -- -L 8080:127.0.0.1:8080

Then open http://127.0.0.1:8080 in your local browser.

To access the private Ollama API (127.0.0.1:11434) from your workstation, forward port 11434 over SSH:

Terminal window
gcloud compute ssh ubuntu@INSTANCE_NAME --project PROJECT_ID --zone ZONE -- -L 11434:127.0.0.1:11434
curl http://127.0.0.1:11434/api/tags

From an SSH session on the VM, you can verify and pull additional models:

Terminal window
ollama list
ollama run smollm2:135m "Reply with OK only."
ollama pull llama3.2:1b

Questions or need help getting started? Contact support@elmcomputing.io.