Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Virtualization»How To Install VMware On Linux

How To Install VMware On Linux

Anup ThapaBy Anup ThapaSeptember 15, 2022
how to install vmware on linux

Installing a hypervisor like VMware can seem intimidating if you’ve never done it before, but in truth, the process isn’t very different from installing any other application. Much like program installation, you must first ensure that certain requirements are met, both in terms of specs and compatibility. 

The rest of the process is fairly straightforward, but there are a few minor errors users often run into along the way. As such, we’ve detailed the full steps for installing VMware on various Linux distributions and troubleshooting common issues that you may encounter in the process.

Table of Contents

  • Prerequisites For Installing VMware
  • How to Install VMware on Linux
  • Troubleshooting Installation Issues
  • Install VMware Tools on Linux Guest

Prerequisites For Installing VMware

First of all, VMware support is only limited to the latest few versions of certain Linux distros. If you’re on a recent version of a popular distro like Ubuntu or Fedora, you needn’t worry about this. But on more niche distros, you should first confirm that VMware is actually compatible with them as host operating systems.

Second, you’ll want to ensure Virtualization is enabled in the BIOS. Here’s how you can do this:

  1. Power on your computer and press the BIOS key shown on the screen (Fn keys or Del).
  2. An alternative method is to bring up the GNU GRUB menu first. With BIOS, press and hold Shift. With UEFI, press Esc a few times when booting. Either way, in the GRUB menu, select the Firmware Settings option.
    gnu-grub-uefi-firmware-settings
  3. In the BIOS, go to the Advanced or CPU Configuration tabs and locate the Virtualization option. (AMD-V, SVM, Intel VT-x, VT-d, etc.)
    gigabyte-svm
  4. Enable Virtualization and press the key shown on the screen (usually F10) to save the changes and exit.

How to Install VMware on Linux

Installing a hypervisor like VMware can seem intimidating if you’ve never done it before, but in truth, the process is the same as installing any other application. Here are the full steps applicable to various distros:

  1. First, download the VMware bundle from the official site.
  2. Go to the directory where the bundle was downloaded, right-click the file, and select Properties.
  3. Copy or note down the full name.
    vmware-player-full-bundle
  4. Right-click anywhere and select Open In Terminal.
  5. Now, type sudo sh ./VMware.bundle.
  6. Replace <VMware.bundle> with the full name from Step 3 and execute the command.
    sh-install-vmware-linux
  7. After the installation is complete, enter vmware or vmplayer to run Workstation Pro and Player, respectively.
  8. Depending on the system, VMware might not open, and you might instead receive a message about missing kernel headers or a similar issue. In such cases, you can check the troubleshooting section further below. But if you don’t get any such prompts, you can just continue with the steps listed directly below.
  9. Launch VMware, accept the license agreement terms, and press Next.
    vmware-player-license-agreement
  10. Specify the update and CEIP preferences and press Next.
  11. Specify whether you’re using VMware for commercial or non-commercial use, and press Finish.
  12. If you’re new to VMware, we recommend checking out our detailed guide on using VMware at this point. It covers a number of useful topics, including how to create your first virtual machine and install a guest OS.

If you ever want to uninstall VMware, you can use the following commands for Workstation Player and Pro, respectively:
sudo vmware-installer -u vmware-player
sudo vmware-installer -u vmware-workstation

uninstall vmware linux command

In some cases, you might have to use the full path for vmware-installer as such: /usr/bin/vmware-installer

Troubleshooting Installation Issues

Users commonly face problems with the installation due to missing kernel headers, packages, or an incompatible kernel version. If you’re prompted to update the kernel headers, cancel the prompt and use the following commands as appropriate to update them:

  • On Debian-derivatives:
    sudo apt install linux-headers-$(uname -r)
    install-linux-headers
  • On Fedora-based distros:
    sudo dnf install kernel-headers kernel-devel
  • On Arch-based distros:
    sudo pacman -S linux-headers

Similarly, you may also need to install a build-essential or similar set of packages. Here’s how you can do this:

  • On Debian-derivatives:
    sudo apt install -y build-essential
    sudo-apt-install-build-essential
  • On Fedora or RHEL-based distros:
    sudo dnf group install "Development Tools"
    sudo yum groupinstall "Development tools"
  • On Arch-based distros:
    sudo pacman -Sy base-devel

Although rare, on rolling distros like Kali, the setup file may not support the latest kernels, leading to errors. In such cases, you can check if the devs have provided a patch, or you can try reverting the kernel. For instance, on Ubuntu, you can hold Shift when booting to enter GRUB, select Advanced Options for Ubuntu, and select the kernel version to use.

gnu-grub-linux-kernel-versions

Finally, there are countless distribution-specific issues that you could encounter aside from the ones we’ve already discussed. We recommend checking the distro wiki for the VMware section in such cases, as you’ll find the most common ones already resolved and documented.

Install VMware Tools on Linux Guest

Most Linux guests include Open VM Tools by default, which is an open-source implementation of VMware Tools for Linux distributions. The open-vm-tools package is generally installed out-of-the-box, but you can also install it manually with either of the following commands:

  • On Debian-based distros:
    sudo apt-get install open-vm-tools-desktop
    sudo apt-get install open-vm-tools
  • On RPM-based distros:
    sudo yum install open-vm-tools-desktop
    sudo yum install open-vm-tools
  • On Arch and its derivatives, use sudo pacman -S open-vm-tools and start or enable vmtoolsd.service and vmware-vmblock-fuse.service.

You can also manually install VMware Tools if you want, but do note that every time the Linux kernel is updated, VMware tools must be reinstalled. Also, VMware Tools requires that some dependencies be available on the Linux guest before it can be installed. These include gcc, binutils, make, and kernel sources. You should refer to the distro-specific documentation for further details on this. But with all that said, here are the necessary steps:

  1. Power on the VM and ensure the guest OS is running.
  2. Select VM > Install VMware Tools or Player > Manage > Install VMware Tools.
    install-vmware-tools-workstation-linux
  3. Create a mount point with sudo mkdir /mnt/cdrom.
  4. Now mount the CD-ROM with either of the following:
    sudo mount /dev/cdrom /mnt/cdrom
    sudo mount /dev/sr0 /mnt/cdrom

    mount-dev-cdrom-mnt-cdrom
  5. Check the file name of the VMware Tools bundle with ls /mnt/cdrom.
  6. Type one of the following commands depending on which format the bundle is in:
    tar zxpf /mnt/cdrom/VMwareTools-version.tar.gz -C
    tar zxpf /mnt/cdrom/VmwareTools-version.tgz -C

    extract-vmware-tools-tar-zxpf
  7. Replace <version> with the actual version from Step 6 and execute the command.
  8. Use the following commands to cd to VMware Tools distribution and install VMware tools:
    cd /vmware-tools-distrib/
    sudo ./vmware-install.pl
  9. Alternatively, to install using RPM, copy the following command, replace <version> as done earlier, and execute the command:
    rpm -ivh /mnt/cdrom/VMwareTools-version.rpm
  10. You can press Enter to accept the default configurations or enter your own values as you prefer. You can also follow the on-screen instructions to finish the installation or use sudo reboot to take care of the final touches automatically.
  11. Also, the config file generally autoruns after the installation. But at a later point, you can also use the /usr/bin/vmware-config-tools.pl command to configure VMware Tools for your running kernel.
  12. Finally, if necessary, you can use umount /mnt/cdrom to unmount the CD-ROM and select VM > Guest > End VMware Tools Install.
how-to
Anup Thapa
  • LinkedIn

Anup Thapa is a tech writer at TechNewsToday. He mostly writes informative articles, tutorials, and troubleshooting guides related to Windows systems, networking, and computer hardware. Anup has been writing professionally for almost 5 years, and tinkering with PCs for much longer. His love for all things tech started when he got his first PC over 15 years ago. It was a Pentium IV system running Windows XP on a single 256 MB stick. He spent his formative years glued to this PC, troubleshooting any hardware or software problems he encountered by himself. Professionally, Anup has had brief forays into a variety of fields like coding, hardware installation, writing, etc. In doing so, he's worked with people of different backgrounds and skill levels, from average joes to industry leaders and experts. This has given him not just a versatile skillset, but also a unique perspective for writing that enables him to concisely communicate complex information and solve his reader's problems efficiently. You can contact him at anup@technewstoday.com

Related Posts

virtual machine disks consolidation is needed

4 Ways to Fix “Virtual Machine Disks Consolidation is Needed”

December 27, 2022
virtualbox shared folder

How to Create Shared Folder on Virtualbox

November 29, 2022
failed to open a session for the virtual machine

How to Fix “Failed to Open a Session For The Virtual Machine” Error?

September 30, 2022
how to uninstall virtualbox

How to Uninstall VirtualBox on Windows

September 28, 2022
how to use vmware

How to Use VMware (Detailed Guide)

September 23, 2022
virtualize a physical machine vmware

How To Virtualize A Physical Machine With VMware

September 17, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
firmware vs software

Firmware Vs Software – What’s the Difference?

March 8, 2023
keyboard sizes

All the Types of Keyboard Sizes Explained

March 8, 2023
Memory-Compression

What is Memory Compression in Windows? Should You Enable or Disable It

March 1, 2023
You may also like
keyboard is double typing

Keyboard is Double Typing? Here’re 6 Ways to Fix it

March 9, 2023
enlarge-hp-printer

How to Enlarge Copy on HP Printer

March 9, 2023
reset msi bios

How to Reset MSI BIOS

March 9, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.