﻿{"id":18,"date":"2016-05-08T07:17:27","date_gmt":"2016-05-07T23:17:27","guid":{"rendered":"http:\/\/simon.conley.mobi\/?p=18"},"modified":"2016-05-08T07:17:27","modified_gmt":"2016-05-07T23:17:27","slug":"%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%9d-vmware-tools-on-debian-ubuntu-and-centos-with-command-line","status":"publish","type":"post","link":"https:\/\/old.ice.com.tw\/?p=18","title":{"rendered":"\u5982\u4f55\u5b89\u88dd VMware Tools on Debian, Ubuntu and CentOS with Command Line"},"content":{"rendered":"<p>Today we use virtualization for both development, testing and also production. One of the most popular virtualization solution is <a href=\"http:\/\/www.vmware.com\/\">VMware<\/a>. There are many products that we can use for free such as <a href=\"http:\/\/downloads.vmware.com\/d\/info\/desktop_end_user_computing\/vmware_player\/4_0\">VMware Player<\/a>or <a href=\"http:\/\/downloads.vmware.com\/d\/info\/datacenter_cloud_infrastructure\/vmware_vsphere_hypervisor_esxi\/5_0\">VMware vSphere Hypervisor (ESXi)<\/a>.<\/p>\n<p>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.<\/p>\n<p>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.<\/p>\n<h2>\u7f6e\u653e VMware Tools \u5149\u789f<\/h2>\n<p>This step will be the same for Debian, Ubuntu and CentOS<\/p>\n<p>If you use VMware Workstation go to <em>VM<\/em> &gt; <em>Install VMware Tools...<\/em><\/p>\n<p><a class=\"colorbox-load img-center init-colorbox-load-processed cboxElement\" href=\"http:\/\/www.wingfoss.com\/system\/files\/vmware-tools\/vmware-tools-01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.wingfoss.com\/system\/files\/vmware-tools\/vmware-tools-01.png\" alt=\"\/system\/files\/vmware-tools\/vmware-tools-01.png\" width=\"500\" height=\"375\" \/><\/a><\/p>\n<p>\u5982\u679c\u4f60\u4f7f\u7528 VMware vSphere Hypervisor (ESXi) go to <em>VM<\/em> &gt; <em>Guest<\/em> &gt; <em>Install\/Upgrade VMware Tools<\/em><\/p>\n<p><a class=\"colorbox-load img-center init-colorbox-load-processed cboxElement\" href=\"http:\/\/www.wingfoss.com\/system\/files\/vmware-tools\/vmware-tools-02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.wingfoss.com\/system\/files\/vmware-tools\/vmware-tools-02.png\" alt=\"\/system\/files\/vmware-tools\/vmware-tools-02.png\" width=\"500\" height=\"375\" \/><\/a><\/p>\n<h2>\u5b89\u88dd VMware Tools on Debian<\/h2>\n<p>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.<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>apt-get update &amp;&amp; apt-get dist-upgrade\r\nshutdown -r now<\/pre>\n<\/div>\n<\/div>\n<p>Install compiler and Linux Header with command<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>apt-get update &amp;&amp; apt-get install build-essential linux-headers-$(uname -r) libglib2.0-0<\/pre>\n<\/div>\n<\/div>\n<p>Mount VMware Tools disc and extract file<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>mount \/dev\/cdrom \/mnt\r\ntar xvfz \/mnt\/VMwareTools-*.tar.gz -C \/tmp\/<\/pre>\n<\/div>\n<\/div>\n<p>Start installing VMware Tools with command<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>perl \/tmp\/vmware-tools-distrib\/vmware-install.pl<\/pre>\n<\/div>\n<\/div>\n<p>Then press Enter to all the questions to use all default answer. Then reboot again and it will be done.<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>shutdown -r now<\/pre>\n<\/div>\n<\/div>\n<h2>\u5b89\u88dd VMware Tools on Ubuntu<\/h2>\n<p>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.<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>sudo apt-get update &amp;&amp; sudo apt-get dist-upgrade\r\nsudo shutdown -r now<\/pre>\n<\/div>\n<\/div>\n<p>Install compiler and Linux Header with command<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>sudo apt-get update &amp;&amp; sudo apt-get install build-essential linux-headers-$(uname -r)<\/pre>\n<\/div>\n<\/div>\n<p>Mount VMware Tools disc and extract file<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>sudo mount \/dev\/cdrom \/mnt\r\nsudo tar xvfz \/mnt\/VMwareTools-*.tar.gz -C \/tmp\/<\/pre>\n<\/div>\n<\/div>\n<p>Start installing VMware Tools with command<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>sudo perl \/tmp\/vmware-tools-distrib\/vmware-install.pl<\/pre>\n<\/div>\n<\/div>\n<p>Then press Enter to all the questions to use all default answer. Then reboot again and it will be done.<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>sudo shutdown -r now<\/pre>\n<\/div>\n<\/div>\n<h2>\u5b89\u88dd VMware Tools on CentOS<\/h2>\n<p>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.<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>yum update\r\nshutdown -r now<\/pre>\n<\/div>\n<\/div>\n<p>Install compiler and Linux Header with command<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>yum install gcc perl<\/pre>\n<\/div>\n<\/div>\n<p>Mount VMware Tools disc and extract file<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>mount \/dev\/cdrom \/mnt\r\ntar xvfz \/mnt\/VMwareTools-*.tar.gz -C \/tmp\/<\/pre>\n<\/div>\n<\/div>\n<p>Start installing VMware Tools with command<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>perl \/tmp\/vmware-tools-distrib\/vmware-install.pl<\/pre>\n<\/div>\n<\/div>\n<p>Then press Enter to all the questions to use all default answer. Then reboot again and it will be done.<\/p>\n<div class=\"geshifilter\">\n<div class=\"bash geshifilter-bash\">\n<pre>shutdown -r now<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today we use virtualization for both development, testi &hellip; <a href=\"https:\/\/old.ice.com.tw\/?p=18\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u5982\u4f55\u5b89\u88dd VMware Tools on Debian, Ubuntu and CentOS with Command Line\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"quote","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-quote","hentry","category-vmware","post_format-post-format-quote"],"_links":{"self":[{"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":1,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":19,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions\/19"}],"wp:attachment":[{"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}