{"id":2789,"date":"2012-04-05T11:19:51","date_gmt":"2012-04-05T03:19:51","guid":{"rendered":"http:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/?p=2789"},"modified":"2012-04-05T11:19:51","modified_gmt":"2012-04-05T03:19:51","slug":"installing-vmware-tools-on-centos-6-via-yum","status":"publish","type":"post","link":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/?p=2789","title":{"rendered":"Installing VMware tools on Centos 6 via yum"},"content":{"rendered":"<p>create the file <strong>\/etc\/yum.repos.d\/vmware.repo<\/strong>and we place this text in it:<\/p>\n<pre>[vmware-tools]\r\nname=VMware Tools for Red Hat Enterprise Linux $releasever \u2013 $basearch\r\nbaseurl=http:\/\/packages.vmware.com\/tools\/esx\/latest\/rhel6\/$basearch\r\nenabled=1\r\ngpgcheck=1\r\ngpgkey=http:\/\/packages.vmware.com\/tools\/VMWARE-PACKAGING-GPG-KEY.pub<\/pre>\n<p>If we installed previously VMware tools via the local vSphere, we will need to remove them using\u00a0<strong>\/usr\/bin\/vmware\/vmware-uninstall-tools.pl<\/strong><\/p>\n<p>We can now install VMware tools via yum:<\/p>\n<pre>yum install vmware-tools-esx-nox<\/pre>\n<p>In the first run, we will be asked to import the public key, and we have to answer <strong>y<\/strong><\/p>\n<p>After the install, it can happen the installer does not configure the daemon for automatic start. If we execute:<\/p>\n<pre>chkconfig --list<\/pre>\n<p>and we do not see vmware-tools in the list, we need to configure the auto-start. First of all we check if the startup script is present:<\/p>\n<pre>ll \/etc\/init.d\/vmware-tools<\/pre>\n<p>If the script is there, we add it to the autostart list using these two commands, one after the other:<\/p>\n<pre>chkconfig --add vmware-tools\r\nchkconfig vmware-tools on<\/pre>\n<p>We can finally start the daemon:<\/p>\n<pre>\/etc\/init.d\/vmware-tools start<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>create the file \/etc\/yum.repos.d\/vmware.repoand we place this text in it:<\/p>\n<p> [vmware-tools] name=VMware Tools for Red Hat Enterprise Linux $releasever \u2013 $basearch baseurl=http:\/\/packages.vmware.com\/tools\/esx\/latest\/rhel6\/$basearch enabled=1 gpgcheck=1 gpgkey=http:\/\/packages.vmware.com\/tools\/VMWARE-PACKAGING-GPG-KEY.pub <\/p>\n<p>If we installed previously VMware tools via the local vSphere, we will need to remove them using \/usr\/bin\/vmware\/vmware-uninstall-tools.pl<\/p>\n<p>We can now install VMware tools via yum:<\/p>\n<p> yum install vmware-tools-esx-nox <\/p>\n<p>In [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[3],"tags":[18],"class_list":["post-2789","post","type-post","status-publish","format-standard","hentry","category-computer","tag-vmware","odd"],"_links":{"self":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2789"}],"version-history":[{"count":1,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2789\/revisions"}],"predecessor-version":[{"id":2790,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2789\/revisions\/2790"}],"wp:attachment":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}