
September 11, 2026
12 min read
By Kokil Thapa | Last reviewed: September 2026
You need a clean Ubuntu VM before you can run PHP 8.5, Laravel 13, or a local LEMP stack. The fastest path on Windows or Linux is to install Ubuntu on VMware Workstation with a current LTS ISO and sane VM defaults. I use this setup daily for client staging, Ubuntu server prep for PHP apps, and testing deploy scripts before they hit production. This guide walks through download, VM creation, installation, VMware Tools, and the tweaks I apply on real projects.
What do you need before you install Ubuntu on VMware Workstation?
Start with hardware that can comfortably host a guest OS. VMware Workstation Pro or Player on a 64-bit host is required. Your CPU must support hardware virtualization (Intel VT-x or AMD-V). Most laptops from the last eight years qualify, but you may need to enable virtualization in the BIOS if the VM runs slowly or fails to boot.
Disk space matters more than people expect. A minimal Ubuntu Server VM needs about 20 GB. A Desktop install with Docker, Node.js 26 LTS, and Composer 2.10 artifacts needs 40–60 GB. I allocate 80 GB on dev machines so log files and database dumps do not fill the disk mid-project.
Host and guest requirements
- Host RAM: 8 GB minimum; 16 GB or more if you run multiple VMs.
- Guest RAM: 4 GB for Desktop; 2 GB for headless Server testing.
- CPU cores: 2 vCPUs for general dev; 4 for Docker-heavy stacks.
- Network: NAT works for internet access; Bridged if the guest must appear on your LAN.
- ISO: Ubuntu 24.04 LTS Desktop or Server from the official site.
If you already use Oracle VirtualBox, compare both hypervisors before committing. Our Install Ubuntu on VirtualBox guide covers the same guest OS with different tooling. VMware tends to win on Windows hosts with mature 3D acceleration and snapshot UX.
How do you download Ubuntu and create a VMware virtual machine?
Grab the ISO from the official Ubuntu download page. Choose Ubuntu Desktop 24.04 LTS if you want a GUI for browser testing and design review. Choose Ubuntu Server 24.04 LTS if you mirror production VPS layouts. Verify the SHA256 checksum after download; corrupted ISOs cause silent install failures that waste an hour.
Download and verify the ISO
On Windows PowerShell, compare the published hash:
Get-FileHash .\ubuntu-24.04.3-desktop-amd64.iso -Algorithm SHA256 On Linux or macOS:
sha256sum ubuntu-24.04.3-desktop-amd64.iso Match the value shown on ubuntu.com/download/desktop. If hashes differ, re-download before you install Ubuntu on VMware Workstation.
Create the virtual machine in VMware Workstation
- Open VMware Workstation and choose Create a New Virtual Machine.
- Select Typical unless you need custom SCSI or legacy BIOS.
- Point the installer disc image to your downloaded
.isofile. - Pick Linux as guest OS and Ubuntu 64-bit as version.
- Name the VM (for example
ubuntu-dev-2404) and choose a folder on a fast SSD. - Set disk size to at least 40 GB and choose Store virtual disk as a single file for simplicity.
- Click Customize Hardware before finishing.
In hardware settings, assign 4096 MB RAM (8192 MB if the host allows). Set processors to 2 cores. Remove the floppy drive if present. Set network adapter to NAT. Enable Virtualize Intel VT-x/EPT or AMD-V/RVI under Processors if you plan nested virtualization for Docker or Kubernetes experiments.
For firmware, pick UEFI on modern Ubuntu releases. Secure Boot can stay enabled for Desktop installs. Server images work fine with UEFI as well. Legacy BIOS is only needed for very old guest software.
How do you install Ubuntu on VMware Workstation step by step?
Power on the VM. VMware may prompt to download VMware Tools automatically; you can defer until after the OS install. The Ubuntu installer boots from the ISO within seconds on an SSD-backed host.
Desktop installation walkthrough
- Select Try or Install Ubuntu from the boot menu.
- Choose language, keyboard layout, and connect to Wi-Fi if Bridged networking exposes your wireless (NAT uses the host connection).
- Pick Normal installation and check Download updates while installing if bandwidth allows.
- For dev VMs, enable Install third-party software so Wi-Fi and media codecs work out of the box.
- On Installation type, choose Erase disk and install Ubuntu. This only affects the virtual disk, not your host drive.
- Create your user account and hostname. Use lowercase hostnames without spaces (for example
ubuntu-dev). - Wait for file copy and package installation, then reboot when prompted.
- When Ubuntu asks to remove installation media, VMware usually ejects the ISO automatically. If not, go to VM → Settings → CD/DVD and disconnect the ISO manually.
Server installation differences
Ubuntu Server uses a text-based installer driven by arrow keys and Enter. You configure storage with guided LVM on the whole virtual disk. Enable OpenSSH server during install if you plan to SSH from the host using NAT port forwarding or Bridged IP. Server images skip the GUI, which saves RAM for MySQL 9.7 or PostgreSQL 18 testing.
After first boot, log in and run updates immediately:
sudo apt update && sudo apt upgrade -y
sudo reboot This mirrors what I do on every fresh VPS before securing a fresh Ubuntu server. Treat the VM like production early and you avoid bad habits later.
Common install errors and fixes
Black screen after boot: Power off, enable 3D acceleration under Display settings, or switch firmware between UEFI and BIOS once to test compatibility.
Install freezes at copying files: Verify ISO checksum, reduce RAM temporarily to 2048 MB, or disable hypervisor sharing on older AMD hosts.
Network unreachable: Confirm NAT is selected. On VMware Player, reset the virtual network editor defaults if DHCP inside the guest fails.
Once Ubuntu is running, snapshot the clean state. Snapshots let you roll back after breaking PHP extensions or botching Nginx configs during experiments.
How do you install VMware Tools and optimize Ubuntu on VMware?
Guest tools improve display resolution, mouse integration, clipboard sharing, and time sync. On modern Ubuntu, open-vm-tools replaces the legacy VMware Tools ISO for most tasks.
Install open-vm-tools
Desktop and Server both use the same packages:
sudo apt update
sudo apt install open-vm-tools open-vm-tools-desktop -y
sudo reboot After reboot, the guest should resize with the VMware window. Drag-and-drop may still require VMware Workstation Pro features; clipboard copy/paste usually works once tools are active.
Post-install tuning for web development
On client Laravel projects I replicate production closely inside VMware. A practical next stack looks like this:
- Install Git, PHP 8.3 or 8.5, Composer 2.10, and Node.js 26 LTS.
- Add MySQL 9.7 or MariaDB 12.3 depending on the target server.
- Configure Nginx or Apache + PHP-FPM to match deployment docs.
- Clone the project and run migrations against a local database.
Follow our dedicated guides for each layer: install PHP on Ubuntu, install MySQL on Ubuntu, install Nginx on Ubuntu, and install Docker on Ubuntu when container parity matters. For a full walkthrough, see the Ubuntu server setup guide and LEMP stack setup.
Enable SSH for headless work if you prefer terminal-only interaction from the host:
sudo apt install openssh-server -y
sudo systemctl enable --now ssh
ip a Note the guest IP. With NAT, SSH from the host may need a port-forward rule in VMware virtual network settings. Bridged mode gives a LAN IP directly.
Security basics still apply inside a VM. Configure UFW on Ubuntu before exposing ports beyond localhost. Read Ubuntu security hardening if the VM mirrors a production-facing layout.
How does VMware Workstation compare to VirtualBox for Ubuntu VMs?
Both hypervisors run Ubuntu 24.04 LTS well in 2026. Your choice depends on host OS, budget, and workflow. I keep VMware on Windows client machines and VirtualBox on occasional cross-platform tests.
| Criteria | VMware Workstation | VirtualBox |
|---|---|---|
| Windows performance | Strong 3D and USB passthrough | Good; graphics vary by host drivers |
| Cost | Pro license; Player free for non-commercial | Free and open source (GPL) |
| Snapshots | Fast, reliable tree snapshots | Available; slower on large disks |
| Guest tools | open-vm-tools in Ubuntu repos | VirtualBox Guest Additions ISO |
| Nested virtualization | Generally stable on Intel/AMD | Works; toggle explicitly in settings |
| Best for | Daily Windows dev, corporate laptops | Free labs, macOS/Linux hosts |
If you are deciding between products, install the same Ubuntu ISO on both and benchmark apt upgrade, composer install, and your test suite. Numbers beat marketing. For VirtualBox-specific steps, use our parallel guide linked above.
What should developers do after Ubuntu is running on VMware?
A VM is a sandbox, not a substitute for staging on real metal. Still, it saves hours when you test Deployer 7 releases, PHP-FPM pool tweaks, or Nginx rewrite rules before touching client servers.
Match production PHP and Laravel versions
Production stacks I maintain target PHP 8.3 or 8.5 with Laravel 12 or 13. Align the guest PHP minor version with your deployment target. Laravel 13 requires PHP 8.3 minimum; Laravel 12 runs on PHP 8.2 or higher. Mismatch locally causes composer platform requirement errors that only appear on one machine.
Shared folders and Git workflow
VMware shared folders map a host directory into the guest. They are convenient for quick edits but slow for vendor/ and node_modules/. I clone repos inside the virtual disk and use Git push/pull from the host instead. For JSON config checks during API work, the JSON formatter tool on the main site helps validate payloads without leaving the browser.
When to move from VM to VPS
Move to a cloud VPS when you need public HTTPS, webhooks from payment gateways like eSewa or Khalti, or CI runners that must match Ubuntu 22/24 production images. Follow deploy Laravel on Ubuntu VPS with Nginx when you outgrow local-only testing. Sites such as Adventure Third Pole Trek started on structured staging environments before production Deployer pipelines went live.
Need hands-on help building or hardening Ubuntu servers for client work? See Linux system administration services and web development services. More background on my stack choices is on the about page and across the portfolio.
Additional reading: Ubuntu download and installation guide, Ubuntu Desktop complete guide, install Node.js on Ubuntu, essential Ubuntu terminal commands, Ubuntu file permissions explained, server hardening for Ubuntu web servers, and Symfony deployment on Ubuntu VPS. For password rotation on dev accounts, use the password generator.
Key Takeaways
- Verify the Ubuntu ISO SHA256 hash before installation to avoid corrupted-media failures.
- Allocate at least 4 GB RAM, 2 vCPUs, and 40 GB disk; use UEFI firmware for 24.04 LTS.
- Install open-vm-tools after first boot for display resize, clipboard, and time sync.
- Snapshot the clean VM before installing PHP, Docker, or experimental packages.
- Match guest PHP and database versions to your production VPS to prevent Composer surprises.
- Move to a real VPS when you need public HTTPS, webhooks, or CI runners outside your laptop.
People Also Ask
Can I install Ubuntu on VMware Workstation for free?
Yes. Ubuntu is free to download and use. VMware Workstation Player is free for personal non-commercial use on Windows and Linux. VMware Workstation Pro requires a paid license but adds features like cloning and advanced networking. The Ubuntu guest needs no license fee regardless of hypervisor.
Which Ubuntu version should I install on VMware in 2026?
Ubuntu 24.04 LTS is the practical default in 2026. It receives security updates until 2029 and matches most current hosting images. Use Desktop for GUI workflows; use Server when you want a minimal footprint for SSH-only Laravel or Symfony development.
Do I need VMware Tools after installing Ubuntu?
Install open-vm-tools from Ubuntu repositories. The packages provide mouse integration, automatic resolution changes, and better clock sync. Without them, the guest works but feels sluggish and may keep the wrong screen size when you resize the VMware window.
Is 2 GB RAM enough for Ubuntu on VMware?
2 GB runs Ubuntu Server for light SSH and Git tasks. Desktop GNOME needs 4 GB for a comfortable experience. Docker, MySQL, and browser testing together need 8 GB assigned to the guest when the host has 16 GB or more physical RAM.
Build your Ubuntu dev environment with confidence
You now have a repeatable path to install Ubuntu on VMware Workstation, validate the ISO, configure sane VM hardware, complete the installer, and tune the guest for PHP and Laravel work. Snapshot early, update aggressively, and treat the VM like a small VPS. When you want help moving from local VMs to production Ubuntu servers—or deploying client apps with Deployer and GitLab CI—contact us to discuss your environment. Explore more guides on the blog or return to the homepage for tools and services.
Frequently Asked Questions
0 Comments
Leave a comment
Your email is not published. Comments appear once they have been read. Sign in to have your details filled in.

