Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Install VMware and Run Windows XP on Ubuntu

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can install VMware Workstation Player on Ubuntu and then create a virtual machine that runs Windows XP. This lets you run old Windows-only software without rebooting. You'll need a Windows XP installation CD or ISO file, a valid product key, and a computer with enough RAM and disk space (2 GB RAM and 20 GB free disk space are comfortable minimums).

What You'll Need

  • Ubuntu installed (any recent version, 64-bit recommended)
  • Windows XP installation media: a CD/DVD or an ISO file
  • Windows XP product key (sticker on the CD case or computer)
  • At least 2 GB of RAM (4 GB or more recommended)
  • At least 20 GB of free disk space
  • Internet connection to download VMware and updates

Step-by-Step

  1. Download VMware Workstation Player. Go to the official VMware website (vmware.com) and download the Linux version of Workstation Player. Choose the .bundle file for Ubuntu (usually named something like VMware-Player-*.bundle).
  2. Make the installer executable. Open a terminal (Ctrl+Alt+T) and navigate to your Downloads folder: cd ~/Downloads. Then run chmod +x VMware-Player-*.bundle (replace the * with the actual filename).
  3. Run the installer. In the terminal, type sudo ./VMware-Player-*.bundle and enter your password. Follow the on-screen prompts. Accept the license agreement and choose the installation directory (default is fine). The installer will also ask about VMware Customer Experience Improvement Program – you can opt out.
  4. Launch VMware Workstation Player. Find it in your applications menu or run vmplayer from the terminal. The first launch may ask you to accept the license agreement and enter a free license key (you can get one from VMware's website – it's free for personal use).
  5. Create a new virtual machine. In VMware Player, click Create a New Virtual Machine (or select File > New Virtual Machine).
  6. Choose the installation media. Select Installer disc image file (ISO) and browse to your Windows XP ISO file. If you have a physical CD, insert it and select Installer disc. VMware will detect Windows XP automatically.
  7. Enter your Windows XP product key. Type the 25-character key. You can also set the full name and password for the Windows account (optional).
  8. Set the virtual machine name and location. Choose a name like "Windows XP" and a folder where the VM files will be stored (default is fine).
  9. Specify disk size. VMware will suggest a size (usually 40 GB). You can adjust it. Choose Store virtual disk as a single file for better performance, or split if you plan to move the VM between drives.
  10. Customize hardware (optional). Before starting, click Customize Hardware to adjust memory (give at least 1 GB, 2 GB is better), CPU cores, and network settings. For Windows XP, 1-2 cores and 1-2 GB RAM are enough.
  11. Finish and power on. Click Finish. The VM will start and begin the Windows XP installation from the ISO or CD.
  12. Install Windows XP normally. Follow the on-screen prompts: press Enter to set up Windows, accept the license, choose the partition (just press Enter to use the whole disk), and select the file system (NTFS is recommended). The setup will copy files and restart a few times – let it run.
  13. Complete the installation. After the final reboot, Windows XP will ask for the product key (if not pre-filled), set up network settings, and create user accounts. Once you see the desktop, Windows XP is installed.
  14. Install VMware Tools. In the VMware Player menu, click VM > Install VMware Tools. This mounts a virtual CD in Windows XP. Open the CD drive in My Computer and run setup.exe. This installs drivers for better graphics, mouse, and clipboard sharing.
  15. Reboot the VM. After VMware Tools installs, restart Windows XP. Now you have a fully functional Windows XP virtual machine on Ubuntu.

Common Mistakes

  • Not enabling virtualization in BIOS. VMware requires hardware virtualization (VT-x/AMD-V). If you get an error about it, restart your computer, enter BIOS (usually F2 or Del), find the virtualization setting (often under Advanced or Security), and enable it.
  • Using a 32-bit Ubuntu with a 64-bit Windows XP. Most Windows XP ISOs are 32-bit, so this is rarely a problem, but if you have a 64-bit ISO, you need a 64-bit host. Check your Ubuntu architecture with uname -m.
  • Not downloading the correct VMware bundle. Make sure you download the Linux version, not the Windows version. The file should end with .bundle.
  • Skipping VMware Tools. Without it, the VM runs at low resolution, the mouse is laggy, and you can't copy-paste between host and guest.
  • Choosing too little RAM. If you give Windows XP less than 512 MB, it will be extremely slow. Give at least 1 GB.

Tips

  • Use a snapshot. After installing Windows XP and VMware Tools, take a snapshot (VM > Snapshot) so you can revert to a clean state if something goes wrong later.
  • Enable 3D acceleration. In VM settings, under Display, check "Accelerate 3D graphics" if you need to run old games or graphics-heavy apps.
  • Set up shared folders. In VM settings, go to Options > Shared Folders and add a folder from Ubuntu to easily transfer files between the two OSes.
  • Keep Windows XP offline. Since Windows XP is no longer supported by Microsoft, it's risky to connect it to the internet. Use a NAT network only when necessary, and consider using a bridged connection only if you trust the network.
  • Install service pack 3. If you have a Windows XP SP2 or earlier ISO, update to SP3 during installation or right after, as it includes important fixes.

Troubleshooting

VMware won't start: "VMware Kernel Module Updater" error. This usually happens after a kernel update. Run sudo vmware-modconfig --console --install-all in the terminal to rebuild the modules. If that fails, reinstall VMware Player.

Windows XP installation freezes at "Setup is starting Windows". This is often due to ACPI issues. In the VM settings, change the firmware type to BIOS (if it's set to EFI) or try disabling ACPI in the VM's .vmx file (add acpi.present = "FALSE").

Mouse is stuck or laggy. Install VMware Tools. If it's already installed, try re-installing it. Also, in the VM menu, check if "Grab input" is enabled.

No network connection in Windows XP. In VM settings, check the network adapter type. For most cases, NAT is fine. If you have a USB Wi-Fi adapter, you may need to use bridged networking.

"This product could not be installed" error during VMware Tools setup. This often happens if you're missing the Windows XP Service Pack. Install SP3 first, then retry VMware Tools.

VMware Player won't install on Ubuntu. Make sure you have the required dependencies: sudo apt install build-essential linux-headers-$(uname -r). Then run the .bundle installer again.

Frequently Asked Questions

Is it legal to run Windows XP in a VM?

Yes, if you have a valid license and product key. Microsoft allows running Windows XP in a virtual machine, but you must own the license.

Can I use VirtualBox instead of VMware?

Yes, VirtualBox is a free alternative that also works on Ubuntu. The steps are similar, but the menus differ slightly. VMware Player is often smoother for Windows XP.

How much RAM should I give Windows XP?

Windows XP runs well with 512 MB, but 1 GB is recommended for smoother performance. Don't give more than 2 GB, as 32-bit Windows XP can't use more than 4 GB total.

Can I run 64-bit Windows XP?

Yes, but it's rare. If you have a 64-bit ISO, make sure your Ubuntu is 64-bit and your CPU supports virtualization.

Will my USB devices work in Windows XP?

Yes, you can connect USB devices by clicking the USB icon in the VMware Player toolbar and selecting the device. VMware Tools must be installed for best compatibility.

Can I move the VM to another computer?

Yes, copy the entire VM folder to the new computer and open it with VMware Player. If the new host has different hardware, you may need to re-install VMware Tools.