Requirements
| Resource | Minimum | Recommended |
|---|---|---|
| macOS | macOS 12 Monterey or later | macOS 14 Sonoma or later |
| Parallels | Parallels Desktop 18+ | Latest version |
| RAM | 4 GB available for VM | 8 GB available for VM |
| Disk | 25 GB free | 40 GB free |
| CPU | Any Apple Silicon or Intel Mac | Apple Silicon (M1+) |
| Network | Internet connection | Stable broadband |
License
Parallels Desktop requires a paid license. Plans include:
- Standard: For home and students
- Pro: For developers and power users
- Business: For teams
A free 14-day trial is available at https://www.parallels.com.
Step 1: Download Parallels Desktop
- Go to: https://www.parallels.com/products/desktop/
- Click Download Free Trial (or purchase)
- Open the downloaded DMG file
- Double-click Install Parallels Desktop
- Follow the installation wizard
- Sign in with your Parallels account or create one
- Activate your license or start the free trial
Step 2: Download Ubuntu ISO
Parallels can download Ubuntu automatically during VM creation, but you can also provide your own ISO.
Automatic (Recommended)
Parallels offers a list of downloadable Linux distributions during VM creation. Select Ubuntu and it downloads automatically.
Manual Download
- Apple Silicon Macs: Go to https://ubuntu.com/download/server/arm and download Ubuntu Server 24.04 LTS for ARM
- Intel Macs: Go to https://ubuntu.com/download/server and download Ubuntu Server 24.04 LTS
Step 3: Create the Virtual Machine
- Open Parallels Desktop
- Click + (or File > New) to create a new VM
- Select Install Windows or another OS from a DVD or image file
- Click Continue
- Choose one of:
- Automatic: Select Ubuntu from the list of available downloads
- Manual: Click "Choose Manually" and browse to the downloaded Ubuntu ISO
- Parallels detects "Ubuntu Linux"
- Configure the basics:
- Name:
codehero - Check Customize settings before installation
- Name:
- Click Create
Step 4: Configure the VM
The Configuration window opens automatically (because you checked "Customize settings before installation").
CPU & Memory
- Go to Hardware > CPU & Memory
- Set Processors: 2 (or more)
- Set Memory: 4096 MB (or more)
Hard Disk
- Go to Hardware > Hard Disk 1
- Set size to 40 GB (if not already)
Network
- Go to Hardware > Network
- Source: Select Bridged Network > Default Adapter
Bridged networking gives the VM its own IP on your local network, making it easy to access the dashboard.
Close Configuration
- Close the Configuration window
- Click Continue to start the installation
Step 5: Install Ubuntu
The VM boots from the ISO automatically.
Ubuntu Installation Steps
- Select Try or Install Ubuntu Server and press Enter
- Language: Select your language
- Keyboard: Select your keyboard layout
- Type of Install: Ubuntu Server
- Network: Ubuntu auto-detects the network. Note the IP if shown.
- Proxy: Leave empty
- Mirror: Leave default
- Storage: 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: Skip for now
- SSH: Check "Install OpenSSH server"
- Featured Snaps: Skip
- Wait for installation to finish (5-10 minutes)
- Select Reboot Now
First Login
At the login prompt:
- 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 (e.g., 192.168.1.120).
Step 7: Access the Dashboard
On your Mac, 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
GUI (Parallels Desktop)
| Action | Steps |
|---|---|
| Start | Double-click the VM in Parallels, or click the Play button |
| Shut Down | Actions menu > Shut Down |
| Stop (force) | Actions menu > Stop |
| Pause | Actions menu > Pause |
| Resume | Click the Play button on a paused VM |
| Delete | Right-click VM > Remove > Move to Trash |
Command Line (prlctl)
Parallels includes the prlctl command-line tool for managing VMs.
# List all VMs
prlctl list -a
# Start the VM
prlctl start "codehero"
# Graceful shutdown
prlctl stop "codehero"
# Force stop
prlctl stop "codehero" --kill
# Pause
prlctl pause "codehero"
# Resume
prlctl resume "codehero"
# Get VM info
prlctl list -i "codehero"
# Delete the VM
prlctl delete "codehero"
SSH into the VM
From your Mac terminal:
ssh claude@YOUR_VM_IP
Check Services
ssh claude@YOUR_VM_IP "sudo systemctl status codehero-web codehero-daemon"
Headless Mode
To run the VM without the Parallels window:
prlctl start "codehero" --headless
The VM runs in the background. Access it via SSH or the web dashboard.
Troubleshooting
Cannot Connect to Dashboard
- Verify the VM IP:
hostname -Iinside the VM - Check network mode is set to Bridged
- Check services:
sudo systemctl status codehero-web codehero-daemon - Restart services if needed:
sudo systemctl restart codehero-web codehero-daemon
No Network in the VM
- Check Parallels network settings: Configuration > Hardware > Network
- Try switching between Bridged and Shared Network
- Inside the VM:
sudo systemctl restart systemd-networkd ip addr show
VM Runs Slowly
- Increase memory: Configuration > Hardware > CPU & Memory > 8192 MB
- Increase CPUs: Configuration > Hardware > CPU & Memory > 4 processors
- Ensure Parallels Tools are installed (usually prompted automatically)
- Close resource-heavy applications on your Mac
Parallels Tools Not Installed
Parallels Tools improve VM performance and integration:
# Inside the VM
sudo apt install -y parallels-tools
Or from Parallels menu: Actions > Install Parallels Tools
ISO Won't Boot
- Ensure you downloaded the correct ISO for your Mac:
- Apple Silicon: ARM64 ISO
- Intel: x86_64 ISO
- Try re-downloading the ISO (may be corrupted)
- Try creating the VM with Parallels' automatic download option
"Not Enough Disk Space"
- Increase the virtual disk size in Configuration > Hardware > Hard Disk
- Inside the VM, expand the filesystem:
sudo growpart /dev/sda 2 sudo resize2fs /dev/sda2
Parallels License Expired
The VM continues to exist but cannot be started without an active license. Either:
- Renew your Parallels license
- Export the VM disk and use it with UTM (free)