How to install VMware Tools on Debian, Ubuntu and CentOS with Command Line


Today we use virtualization for both development, testing and also production. One of the most popular virtualization solution is VMware. There are many products that we can use for free such as VMware Player or VMware vSphere Hypervisor (ESXi).
If you want Guest OS to be fully working in VMware products, you must install VMware Tools that will give better virtualization support such as you can move mouse better without have to press Ctrl + Alt to get out from Guest OS. Or in Linux Server that don't have GUI, Host OS can read or change some value from Guest OS such as IP Address.
Install VMware Tools on Windows OS will be very easy as install normal software. But this article will help you to install VMware Tools on Linux Server that have only CLI for you. In principle you must have compiler and linux headers so you can go smooth with installing VMware Tools.

Put VMware Tools

This step will be the same for Debian, Ubuntu and CentOS
If you use VMware Workstation go to VM > Install VMware Tools...
/system/files/vmware-tools/vmware-tools-01.png
If you use VMware vSphere Hypervisor (ESXi) go to VM > Guest > Install/Upgrade VMware Tools
/system/files/vmware-tools/vmware-tools-02.png

Install VMware Tools on Debian

We must log in with root user. It is better if we start with update all the software in system first then reboot one time.
apt-get update && apt-get dist-upgrade
shutdown -r now
Install compiler and Linux Header with command
apt-get update && apt-get install build-essential linux-headers-$(uname -r) libglib2.0-0
Mount VMware Tools disc and extract file
mount /dev/cdrom /mnt
tar xvfz /mnt/VMwareTools-*.tar.gz -C /tmp/
Start installing VMware Tools with command
perl /tmp/vmware-tools-distrib/vmware-install.pl
Then press Enter to all the questions to use all default answer. Then reboot again and it will be done.
shutdown -r now

Install VMware Tools on Ubuntu

We must log in with user that has sudo privilege. It is better if we start with update all the software in system first then reboot one time.
sudo apt-get update && sudo apt-get dist-upgrade
sudo shutdown -r now
Install compiler and Linux Header with command
sudo apt-get update && sudo apt-get install build-essential linux-headers-$(uname -r)
Mount VMware Tools disc and extract file
sudo mount /dev/cdrom /mnt
sudo tar xvfz /mnt/VMwareTools-*.tar.gz -C /tmp/
Start installing VMware Tools with command
sudo perl /tmp/vmware-tools-distrib/vmware-install.pl
Then press Enter to all the questions to use all default answer. Then reboot again and it will be done.
sudo shutdown -r now

Install VMware Tools on CentOS

We must log in with root user. It is better if we start with update all the software in system first then reboot one time.
yum update
shutdown -r now
Install compiler and Linux Header with command
yum install gcc perl
Mount VMware Tools disc and extract file
mount /dev/cdrom /mnt
tar xvfz /mnt/VMwareTools-*.tar.gz -C /tmp/
Start installing VMware Tools with command
perl /tmp/vmware-tools-distrib/vmware-install.pl
Then press Enter to all the questions to use all default answer. Then reboot again and it will be done.
shutdown -r now

Yorumlar

Bu blogdaki popüler yayınlar

Uzak Masaüstü Bağlantı Geçmişini Silmek

TERMINAL SERVICES UNLIMITED

Gpupdate Komutu