Home
How to Install and Optimize Ubuntu on VMware for Peak Performance
Running Ubuntu on VMware provides a powerful, isolated environment for developers, system administrators, and technology enthusiasts. This setup allows for testing software, learning Linux command-line tools, or hosting local servers without modifying the host operating system's partition or bootloader. By leveraging a Type-2 hypervisor like VMware Workstation Pro, Player, or Fusion, users can achieve near-native performance if the virtual machine is configured correctly.
To get the most out of this virtualization, it is not enough to simply follow the default installation prompts. Achieving a fluid desktop experience and high disk I/O requires specific post-installation steps, particularly the integration of open-source kernel drivers and strategic hardware resource allocation.
Hardware and Software Prerequisites
Before initializing the virtual machine creation wizard, specific hardware features must be active. Modern processors from both Intel and AMD include hardware-assisted virtualization (Intel VT-x or AMD-V), which allows the hypervisor to execute instructions directly on the CPU, drastically reducing overhead.
Enabling Hardware Virtualization
Most modern laptops and desktops ship with virtualization disabled in the BIOS/UEFI for security reasons. To enable it:
- Restart the host computer and enter the BIOS/UEFI menu (usually by pressing F2, F10, or Del).
- Locate the "Advanced" or "CPU Configuration" tab.
- Find "Intel Virtualization Technology" or "SVM Mode" and set it to Enabled.
- Save and exit. Without this step, 64-bit guest operating systems may fail to boot, or performance will be severely throttled.
Selecting the Right Ubuntu ISO
Ubuntu offers two primary versions: LTS (Long Term Support) and Interim Releases.
- LTS Versions (e.g., Ubuntu 24.04): These are supported for five to ten years. They prioritize stability and are the recommended choice for VMware environments where reliability is paramount.
- Interim Versions: These offer the latest kernel and GNOME desktop features but only receive nine months of support.
For the majority of users, the Ubuntu Desktop LTS ISO is the optimal choice for a virtualized environment. Ensure the architecture matches the host CPU (typically amd64 for Intel/AMD or arm64 for Apple Silicon via VMware Fusion).
Creating the Virtual Machine in VMware
The initial configuration of the virtual hardware defines the boundaries of the guest system’s performance.
The Virtual Machine Wizard
When selecting "Create a New Virtual Machine," VMware offers a "Typical" or "Custom" path. While "Typical" is faster, the "Custom" (Advanced) path allows for better control over the virtual hardware compatibility version.
- Installer Disc Image: Point the wizard to the downloaded Ubuntu ISO file. VMware’s "Easy Install" feature might detect the OS and attempt to automate user creation. While convenient, manual installation is often preferred for users who want to customize disk partitioning or language settings.
- Guest Operating System: Ensure "Linux" is selected and the version is set specifically to "Ubuntu 64-bit." This selection applies specific optimizations for the Ubuntu kernel within the VMware environment.
- Naming and Location: Store the VM files on an SSD rather than an HDD. Virtual machines involve frequent random read/write operations; running a VM on a traditional spinning drive will result in significant latency and "stuttering" in the UI.
Resource Allocation Strategy
The most common mistake is under-allocating or over-allocating resources.
- Processor Cores: Allocate at least 2 cores. For modern 8-core or 12-core CPUs, allocating 4 cores provides a noticeable boost in multitasking within Ubuntu. However, never allocate more than 50% of the host's total logical cores, as the host OS still needs resources to manage the hypervisor itself.
- Memory (RAM):
- 2GB: The absolute minimum for Ubuntu Desktop; expect frequent swapping and lag.
- 4GB: The "sweet spot" for general development and web browsing.
- 8GB+: Recommended if running resource-heavy IDEs like IntelliJ or Docker containers inside the VM.
- Graphics Memory: If 3D acceleration is enabled (highly recommended), allocate at least 768MB to 2GB of video memory to ensure the GNOME desktop animations remain smooth.
The Installation Process Inside Ubuntu
Once the VM boots from the ISO, the Ubuntu ubiquity or subiquity installer will guide the process.
Partitioning and Filesystem
For a virtual machine, the "Erase disk and install Ubuntu" option is typically the safest and most efficient choice. Since the "disk" is actually a virtual file (VMDK) on the host system, there is no risk to the host's data.
- LVM (Logical Volume Management): Enabling LVM is beneficial if you anticipate needing to expand the virtual disk size in the future. It allows for easier volume resizing compared to standard partitions.
- Filesystem Choice: EXT4 remains the standard for Ubuntu, offering a balance of performance and recovery features.
User Setup
During the setup, choosing "Log in automatically" can save time during frequent reboots, but for security-conscious environments, a strong password should always be used. If the VM is intended for server use, selecting "Minimal Installation" will exclude office suites and media players, saving roughly 1GB of disk space and reducing the attack surface.
The Essential Step: Installing open-vm-tools
In the past, users had to manually mount a "VMware Tools" ISO and run a Perl script. Today, the industry standard is open-vm-tools, an open-source implementation of VMware Tools that is integrated into the official Ubuntu repositories.
Without these tools, the VM will suffer from:
- Fixed screen resolution (cannot resize the window).
- Laggy mouse cursor movement.
- No support for shared clipboards or drag-and-drop.
- Suboptimal network and disk drivers.
Installation via Terminal
Once logged into the new Ubuntu desktop, open the terminal (Ctrl+Alt+T) and execute the following commands:
-
Topic: Mastering Ubuntu in VMware: A Comprehensive Guide — linuxvox.comhttps://linuxvox.com/blog/ubuntu-vmware/
-
Topic: How to Install Ubuntu on VMware: A Comprehensive Guide — linuxvox.comhttps://linuxvox.com/blog/how-to-install-ubuntu-vmware/
-
Topic: Setting up an Ubuntu Linux VM in VMware | dev-guideshttps://columbia-os.github.io/dev-guides/ubuntu-vm-setup.html