A pre-configured AI lab environment using VS Code Dev Containers to learn Nutanix Enterprise AI.
- OpenCode: Accessible directly from the VS Code terminal for command-line AI interactions and code generation.
- Open WebUI: Provides a clean graphical interface for interacting with models. It automatically maps to
http://localhost:8080on your machine (or automatically assigns a dynamic port if8080is already in use). Check the VS Code Ports tab to view the active URL.
Install these tools before proceeding:
- Visual Studio Code
- VS Code Dev Containers Extension
- Rancher Desktop (Tested container engine)
Note: If you are a Nutanix employee, connect to the VPN.
Launch Rancher Desktop and ensure these settings are set before opening VS Code:
-
Go to Preferences ➔ Container Engine (or Virtual Machine).
-
Set engine to
dockerd (moby)(Required for Dev Containers). -
Go to Preferences ➔ Kubernetes.
-
(Optional) Uncheck "Enable Kubernetes" (Frees up RAM and CPU).
┌─────────────────────────────────────────────────────────┐
│ Rancher Desktop Preferences │
├─────────────────────────────────────────────────────────┤
│ Container Engine: │
│ (●) dockerd (moby) <-- MUST BE SELECTED │
│ ( ) containerd │
│ │
│ Kubernetes: │
│ [ ] Enable Kubernetes <-- Uncheck to save resources │
└─────────────────────────────────────────────────────────┘
- Go to Preferences ➔ Application ➔ Environment / Supporting Utilities
- Set Configure PATH to "Automatic".
Click the link below to clone and open directly in VS Code:
Note: Select a local folder where to clone the repository. When prompted with opening the repository, click Open (maybe you need to do it twice). Click "Reopen in Container" when prompted in the bottom-right corner.
- Open VS Code.
- Press
F1(orCmd+Shift+P/Ctrl+Shift+P). - Select
Git: Clone - Paste repository URL: https://github.com/nutanixdev/nai-tutorials.git
Note: If you already cloned the repo locally, open the folder in VS Code and click "Reopen in Container" when prompted in the bottom-right corner.
- WSL 2 Required: Run
wsl --installin Admin PowerShell if Rancher prompts you, then reboot. - Performance: Always use Option 1 (Container Volume) to prevent file access slowness between Windows and Linux containers.
- Rosetta 2: Enable Rosetta support under Rancher Preferences ➔ Virtual Machine for maximum performance.
- Socket Permissions: Allow Rancher Desktop administrator credentials if prompted to setup
/var/run/docker.sock.
Look at the bottom-left corner of VS Code. When the build finishes, you will see a blue/green badge:
[><] Dev Container: Nutanix Tutorials
Open the terminal inside VS Code (Ctrl + ~ or Terminal -> New Terminal) to start!