Requirements
| Resource | Minimum | Recommended |
|---|---|---|
| Host OS | Windows 10/11 or macOS 10.15+ | Latest version |
| RAM | 4 GB available for VM | 8 GB available for VM |
| Disk | 25 GB free | 40 GB free |
| CPU | 2 cores, VT-x/AMD-V enabled | 4 cores |
| Network | Internet connection | Stable broadband |
Enable Hardware Virtualization
VirtualBox requires hardware virtualization (VT-x on Intel, AMD-V on AMD). This is usually enabled by default but may need to be turned on in your BIOS/UEFI settings.
To check on Windows: Open Task Manager > Performance tab > look for "Virtualization: Enabled".
Step 1: Download VirtualBox
- Go to: https://www.virtualbox.org/wiki/Downloads
- Download the version for your operating system:
- Windows: "Windows hosts"
- macOS Intel: "macOS / Intel hosts"
- macOS Apple Silicon: "macOS / ARM hosts" (M1/M2/M3/M4)
- Run the installer with default settings
- Restart your computer if prompted
Step 2: Download Ubuntu ISO
- Go to: https://ubuntu.com/download/server
- Download Ubuntu Server 24.04 LTS
- Save the ISO file (approximately 2.5 GB)
Step 3: Create the Virtual Machine
- Open VirtualBox and click New
- Configure the basics:
- Name:
codehero - Folder: Leave default (or choose a location with enough space)
- ISO Image: Click "Browse" and select the downloaded Ubuntu ISO
- Check "Skip Unattended Installation"
- Name:
- Click Next
- Hardware settings:
- Base Memory: 4096 MB (or more if available)
- Processors: 2 (or more)
- Click Next
- Virtual Hard Disk:
- Select "Create a Virtual Hard Disk Now"
- Size: 40 GB
- Click Next then Finish
Step 4: Configure Network (Bridged)
By default, VirtualBox uses NAT networking, which makes the VM harder to access from your browser. Switch to Bridged mode so the VM gets its own IP on your local network.
- Select the VM in the VirtualBox Manager
- Click Settings
- Go to Network > Adapter 1
- Change "Attached to" from NAT to Bridged Adapter
- In the "Name" dropdown, select your active network adapter:
- For Wi-Fi: select your wireless adapter
- For Ethernet: select your wired adapter
- Click OK
https://VM_IP:9453.Alternative: NAT with Port Forwarding
If bridged mode does not work (e.g., corporate networks), you can use NAT with port forwarding:
- Keep "Attached to" as NAT
- Click Advanced > Port Forwarding
- Add these rules:
| Name | Protocol | Host Port | Guest Port |
|---|---|---|---|
| Dashboard | TCP | 9453 | 9453 |
| WebProjects | TCP | 9867 | 9867 |
Access the dashboard at https://localhost:9453
Step 5: Install Ubuntu
- Select the VM and click Start
- The VM boots from the Ubuntu ISO
Ubuntu Installation Steps
- Select Try or Install Ubuntu Server and press Enter
- Language: Select your language
- Keyboard: Select your keyboard layout
- Type of Install: Select "Ubuntu Server"
- Network: Ubuntu auto-detects the network. Note the IP if shown.
- Proxy: Leave empty
- Mirror: Leave default
- Storage: Select "Use an entire disk" > select the virtual disk > Done > Done > Continue
- Profile Setup:
- Your name:
Claude Admin - Server name:
codehero-server - Username:
claude - Password: Choose a password (remember it)
- Your name:
- Ubuntu Pro: Select "Skip for now"
- SSH: Check "Install OpenSSH server"
- Featured Snaps: Skip, select Done
- Wait for installation (5-10 minutes)
- Select Reboot Now when prompted
- Press Enter when asked to remove installation medium
First Login
Wait for the login prompt, then enter:
- Username:
claude - Password: the password you chose
Step 6: Install CodeHero
Run these commands inside the VM. First, copy the ZIP file provided with your CodeHero PRO license into the VM, then:
sudo apt update
sudo apt install -y unzip wget net-tools
sudo su
cd /root
unzip codehero-pro-release-4.6.3.zip
cd codehero
chmod +x setup.sh
./setup.sh
Wait 10-15 minutes for installation to complete.
Find Your VM IP Address
hostname -I
Write down the IP address (e.g., 192.168.1.105).
Step 7: Access the Dashboard
On your host machine (not inside the VM), open a browser and go to:
https://YOUR_VM_IP:9453
Default Login
- Username:
admin - Password:
admin123
Change Default Passwords
Inside the VM:
sudo /opt/codehero/scripts/change-passwords.sh
Browser Security Warning
| Browser | How to Proceed |
|---|---|
| Chrome | Click "Advanced" then "Proceed to site (unsafe)" |
| Firefox | Click "Advanced..." then "Accept the Risk and Continue" |
| Safari | Click "Show Details" then "visit this website" |
| Edge | Click "Advanced" then "Continue to site (unsafe)" |
Daily Usage
Start the VM
GUI: Select the VM in VirtualBox Manager and click Start.
Headless (no window): Right-click the VM > Start > Headless Start. The VM runs in the background.
Command line:
# Normal start
VBoxManage startvm "codehero"
# Headless start (recommended for daily use)
VBoxManage startvm "codehero" --type headless
Stop the VM
GUI: Machine menu > ACPI Shutdown (graceful) or Power Off (force).
Command line:
# Graceful shutdown
VBoxManage controlvm "codehero" acpipowerbutton
# Force power off
VBoxManage controlvm "codehero" poweroff
Save VM State (Pause)
VBoxManage controlvm "codehero" savestate
This saves the VM state to disk and stops it. Next start resumes from where you left off.
Delete the VM
GUI: Right-click the VM > Remove > "Delete all files"
Command line:
VBoxManage unregistervm "codehero" --delete
SSH into the VM
Instead of using the VirtualBox console, you can SSH from your host:
ssh claude@YOUR_VM_IP
Troubleshooting
VM Won't Start: "VT-x is disabled"
Enable hardware virtualization in your BIOS/UEFI:
- Restart your computer
- Enter BIOS (usually F2, F12, Del, or Esc during boot)
- Find Virtualization Technology (VT-x or AMD-V)
- Enable it
- Save and restart
No Network in the VM
- Check that the network adapter is set to Bridged
- Verify the correct host adapter is selected
- Inside the VM, restart networking:
sudo systemctl restart systemd-networkd
Cannot Access Dashboard from Browser
- Verify the VM IP:
hostname -I(inside VM) - Ensure you are using
https://nothttp:// - Check that services are running:
sudo systemctl status codehero-web - If using NAT, verify port forwarding rules are correct
VM Performance Is Slow
- Increase RAM: Settings > System > Base Memory
- Increase CPUs: Settings > System > Processor
- Enable VT-x/AMD-V: Settings > System > Acceleration
- Use a fixed-size disk instead of dynamically allocated
- Install VirtualBox Guest Additions for better performance:
sudo apt install -y virtualbox-guest-utils
Screen Resolution Too Small
Install Guest Additions:
sudo apt install -y virtualbox-guest-utils virtualbox-guest-x11
sudo reboot
Ubuntu Boot Hangs
- Ensure you selected "Skip Unattended Installation" when creating the VM
- Try disabling EFI: Settings > System > uncheck "Enable EFI"
- Verify the ISO downloaded correctly (check file size)