Kokil Thapa - Professional Web Developer in Nepal
Freelancer Web Developer in Nepal with 15+ Years of Experience

Kokil Thapa is an experienced full-stack web developer focused on building fast, secure, and scalable web applications. He helps businesses and individuals create SEO-friendly, user-focused digital platforms designed for long-term growth.

Install Ubuntu on VMware Workstation

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.

Install Ubuntu on VMware WorkstationPrerequisites overviewHost PCVT-x / 16 GB RAMVMwareWorkstation ProUbuntu ISO24.04 LTS fileFree disk40 GB plusReady to create VMAttach ISO and start installer
Prerequisites flow before you install Ubuntu on VMware Workstation: capable host, hypervisor, LTS ISO, and disk space.

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

  1. Open VMware Workstation and choose Create a New Virtual Machine.
  2. Select Typical unless you need custom SCSI or legacy BIOS.
  3. Point the installer disc image to your downloaded .iso file.
  4. Pick Linux as guest OS and Ubuntu 64-bit as version.
  5. Name the VM (for example ubuntu-dev-2404) and choose a folder on a fast SSD.
  6. Set disk size to at least 40 GB and choose Store virtual disk as a single file for simplicity.
  7. 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.

VMware VM Creation PipelineNew VMTypicalAttach ISOUbuntu 64-bitDisk 40GBSingle file4 GB RAM2 vCPUPower OnInstallRecommended hardware profileUEFI firmware, NAT network, SSD-backed VMDKOptional: Bridged adapter for LAN testing
VMware Workstation wizard flow: attach Ubuntu ISO, size disk and RAM, then power on to start installation.

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

  1. Select Try or Install Ubuntu from the boot menu.
  2. Choose language, keyboard layout, and connect to Wi-Fi if Bridged networking exposes your wireless (NAT uses the host connection).
  3. Pick Normal installation and check Download updates while installing if bandwidth allows.
  4. For dev VMs, enable Install third-party software so Wi-Fi and media codecs work out of the box.
  5. On Installation type, choose Erase disk and install Ubuntu. This only affects the virtual disk, not your host drive.
  6. Create your user account and hostname. Use lowercase hostnames without spaces (for example ubuntu-dev).
  7. Wait for file copy and package installation, then reboot when prompted.
  8. 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:

  1. Install Git, PHP 8.3 or 8.5, Composer 2.10, and Node.js 26 LTS.
  2. Add MySQL 9.7 or MariaDB 12.3 depending on the target server.
  3. Configure Nginx or Apache + PHP-FPM to match deployment docs.
  4. 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.

Post-Install Optimizationapt upgradeopen-vm-toolsSSH serverSnapshot cleanInstall PHP, Composer, Node, databaseUFW firewallsee hardening guideDeployer testGitLab CI dry runLaravel 13 applocal parity
After you install Ubuntu on VMware Workstation, update packages, add open-vm-tools, snapshot, then build your dev stack.

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.

CriteriaVMware WorkstationVirtualBox
Windows performanceStrong 3D and USB passthroughGood; graphics vary by host drivers
CostPro license; Player free for non-commercialFree and open source (GPL)
SnapshotsFast, reliable tree snapshotsAvailable; slower on large disks
Guest toolsopen-vm-tools in Ubuntu reposVirtualBox Guest Additions ISO
Nested virtualizationGenerally stable on Intel/AMDWorks; toggle explicitly in settings
Best forDaily Windows dev, corporate laptopsFree 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.

Ubuntu on VMware Decision TreeNeed GUI?Ubuntu DesktopUbuntu Server4 GB RAMDocker tests2 GB RAMGo VPSYesNoBrowser QAContainersSSH onlyWebhooks
Choose Desktop or Server Ubuntu on VMware based on GUI needs, then scale RAM or move to VPS for public integrations.

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

You need a 64-bit host with VMware Workstation Pro or Player, a CPU that supports Intel VT-x or AMD-V (often enabled in BIOS), and enough resources to host a guest comfortably. Plan for 8 GB host RAM minimum, 16 GB if you run multiple VMs, and 20 GB disk for a minimal Server VM or 40–60 GB for Desktop with dev tools. Download Ubuntu 24.04 LTS Desktop or Server ISO from ubuntu.com and verify its SHA256 checksum before starting. If virtualization is disabled, the VM may boot slowly or fail entirely.

Yes. Ubuntu is free, and VMware Workstation Player is free for personal non-commercial use on Windows and Linux.

Ubuntu 24.04 LTS. It receives security updates until 2029 and matches most current hosting images.

Assign 4 GB RAM for Ubuntu Desktop and 2 GB for headless Server testing; bump Desktop to 8 GB when running Docker, MySQL, and browser testing together on a 16 GB host. Give the VM at least 40 GB virtual disk for a Desktop dev environment, or 20 GB for a minimal Server. I allocate 80 GB on dev machines so logs and database dumps do not fill the disk mid-project. Pair RAM with 2 vCPUs for general work, or 4 vCPUs for Docker-heavy stacks.

Download Ubuntu 24.04 LTS Desktop or Server ISO from the official Ubuntu site, then verify the SHA256 hash with Get-FileHash on Windows PowerShell or sha256sum on Linux. Open VMware Workstation, choose Create a New Virtual Machine, select Typical, point the installer disc image to your ISO, pick Linux and Ubuntu 64-bit, name the VM, and set disk to at least 40 GB as a single file. Before finishing, customize hardware: 4096 MB RAM, 2 processor cores, NAT networking, UEFI firmware, and optionally enable nested virtualization if you plan Docker or Kubernetes experiments.

Power on the VM, select Try or Install Ubuntu from the boot menu, choose language and keyboard, pick Normal installation, and enable Download updates and Install third-party software for dev VMs. On Installation type, choose Erase disk and install Ubuntu — this only affects the virtual disk, not your host drive. Create your user account and lowercase hostname, wait for file copy to finish, then reboot. When prompted to remove installation media, disconnect the ISO under VM Settings if VMware did not eject it automatically. On Server, use the text installer, enable OpenSSH if needed, then run sudo apt update, sudo apt upgrade -y, and reboot.

Yes. Install open-vm-tools and open-vm-tools-desktop from Ubuntu repositories for display resize, mouse integration, clipboard sharing, and clock sync.

2 GB runs Ubuntu Server for light SSH and Git work. Ubuntu Desktop GNOME needs 4 GB minimum; Docker, MySQL, and browser testing together need 8 GB on the guest when your host has 16 GB or more physical RAM.

A black screen after boot usually means you should power off, enable 3D acceleration under Display settings, or switch between UEFI and Legacy BIOS once to test firmware compatibility. If the install freezes while copying files, re-verify the ISO SHA256 checksum, temporarily reduce guest RAM to 2048 MB, or disable hypervisor sharing on older AMD hosts. When the network is unreachable inside the guest, confirm NAT is selected and reset VMware Player virtual network editor defaults if DHCP fails. Snapshot the clean install state once Ubuntu boots successfully so you can roll back after experiments.

NAT is the default and works well when the guest only needs internet access through the host connection — fine for apt updates, Composer installs, and most local Laravel development. Choose Bridged if the Ubuntu VM must appear as a separate device on your LAN, which simplifies SSH from other machines and matches scenarios where you need a direct guest IP via ip a. On Desktop installs, Bridged can also expose Wi-Fi during setup if your wireless adapter is visible to the guest. For NAT-only SSH from the host, configure a port-forward rule in VMware virtual network settings.

Pick UEFI for modern Ubuntu 24.04 LTS Desktop and Server installs on VMware Workstation. Secure Boot can stay enabled for Desktop. Legacy BIOS is only needed for very old guest software that cannot boot under UEFI. If you hit a black screen after installation, switching firmware between UEFI and BIOS once is a practical compatibility test alongside enabling 3D acceleration. UEFI matches current VPS and bare-metal layouts, which helps when your VM is meant to mirror production Ubuntu 22 or 24 server images before deployment.

Choose Ubuntu Desktop 24.04 LTS when you want a GUI for browser testing, design review, and everyday windowed workflows inside VMware. Choose Ubuntu Server when you mirror production VPS layouts, want lower RAM overhead, and plan to work primarily over SSH — enable OpenSSH during install for that path. Server skips the GUI, leaving more memory for MySQL 9.7 or PostgreSQL 18 testing. Both support the same post-install stack: Git, PHP 8.3 or 8.5, Composer 2.10, Node.js 26 LTS, and Nginx or Apache with PHP-FPM.

Both run Ubuntu 24.04 LTS well in 2026, but the fit depends on host OS and workflow. VMware tends to win on Windows hosts with stronger 3D acceleration, mature USB passthrough, and fast reliable snapshot trees. VirtualBox is free under GPL, works well for cross-platform labs on macOS and Linux, but snapshots can feel slower on large disks and graphics vary by host drivers. VMware Workstation Pro requires a paid license; Player is free for non-commercial use. Guest tools on Ubuntu use open-vm-tools for VMware and VirtualBox Guest Additions for VirtualBox. Benchmark apt upgrade and composer install on both if you are undecided.

Corrupted ISO downloads cause silent install failures — the installer may freeze during file copy and waste an hour before you realise the media is bad. Ubuntu publishes the expected SHA256 on ubuntu.com/download/desktop; compare it with Get-FileHash on Windows PowerShell or sha256sum on Linux and macOS against your downloaded file. If hashes differ, re-download before creating the VM. This step costs two minutes and prevents chasing black screens, broken packages, and mysterious boot errors that look like VMware configuration problems but are actually damaged installation media.

Run sudo apt update and sudo apt upgrade -y, install open-vm-tools, reboot, then snapshot the clean state before adding PHP, Docker, or experimental packages. Match guest PHP to your production target — PHP 8.3 or 8.5 with Laravel 12 or 13 — to avoid Composer platform requirement surprises. Clone Git repos inside the virtual disk rather than relying on VMware shared folders for vendor and node_modules directories. Configure UFW before exposing ports beyond localhost. Move to a cloud VPS when you need public HTTPS, payment webhooks from gateways like eSewa or Khalti, or CI runners that must match production Ubuntu images.

Share this article

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.

Quick Contact Options
Choose how you want to connect me: