Uninstalling a VMWare Product on Linux

VMWare is a deep install - means it has many components that interface with the system very closely. So when it comes time to uninstall it, we find ourselves in a flux.
There is a script called vmware-uninstall that you can use which will help you get the job done.
$sudo vmware-uninstall 

After we run this script it shows that it's deprecated (in version VMWare Workstation 5.0.1) and you should use vmware-installer --uninstall-product product-name. So we try it.

$sudo vmware-installer --uninstall-product vmware-workstation

where vmware-workstation is the product I have installed here.

Hmmm, this did the job for me, but I remember another time when this failed for me. In such circumstances we can manually uninstall a VMWare Product.
Read on to see the link to the official page and this date's (June 2011) version.



http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=38


Manually uninstalling VMware Workstation from Linux hosts

Details

This article provides steps for manually removing VMware Workstation when the uninstaller script or RPM package fails to remove the product automatically.

Solution

Note: Log on to the host to the root account to execute the Terminal commands in this article. If running Ubuntu, the root account is not available by default. Prepend all commands with sudo or switch to the root using the command:
sudo su -
Warning
: This command provides unrestricted access to the operating system. It is possible to cause damage the system when using this access level.
  1. Open a command prompt. For more information, see Opening a command or shell prompt (1003892). Type the commands as indicated in the following steps.
  2. Shutdown all VMware applications and services.

    /etc/init.d/vmware stop

  3. Verify that all processes have stopped:

    lsmod | grep vm
    Note: A zero must be listed beside VMware related modules to indicate that they are no longer running.
  4. Move the VMware libraries to the /tmp directory:
    cd /lib/modules//misc
    mv vm* /tmp

    Note: If the kernel has ever been updated you must check and move the files from multiple paths. Substitute the kernel version where indicated above.

  5. Unload the kernel modules:
    rmmod vmnet.ormmod vmmon.o
    rmmod vmci.o
    rmmod vmblock.o
    rmmod vmppuser.o

  6. Remove the VMware startup scripts:
    RedHat and Most Distributions
    rm /etc/rc.d/init.d/rc2.d/*vmware
    rm /etc/rc.d/init.d/rc3.d/*vmware
    rm /etc/rc.d/init.d/rc5.d/*vmware
    rm /etc/rc.d/init.d/rc6.d/*vmware
    Ubunturm /etc/rc2.d/*vmware
    rm /etc/rc3.d/*vmware
    rm /etc/rc5.d/*vmware
    rm /etc/rc6.d/*vmware
    Note: If you are using a different Linux distribution, substitute the correct path in above commands.
  7. Remove the remaining VMware files and directories:
    rm -rf /etc/vmware*
    rm /usr/bin/vmware*rm /usr/bin/vmnet*
    rm -r /usr/lib/vmware-installer
    rm -r /usr/lib/vmware-vix
     
    rm -r /usr/lib/vmware
    rm -r /usr/share/doc/vmware
  8. If an RPM package was used to install the VMware product, complete these steps to delete the RPM database entry:
    rpm -qa | grep VMware
    A list of VMware packages is presented. Copy the exact package name for the next step and paste it into the command where indicated.
  9. Remove the VMware packages:
    rpm --erase --nodeps

Comments

Popular posts from this blog

Morning Quotes

QCalendarWidget CSS Stylesheeting

Selecting new phone plan