CentOS6.5 install VMwareTools

Source: Internet
Author: User
Preface we have installed minimal version CentOS6.5 on VMware before. Next we need to perform some simple configuration and install VMwareTools. After the CentOS6.5 virtual machine is started from the configuration network and yum source, ifconfig is used to find that eth0 is not started, and ifupet is directly used.

Preface

We have installed minimal version CentOS6.5 on VMware before. Next we need to perform some simple configuration and install VMwareTools.

 

  1. Configure the network and yum source

    After the CentOS6.5 virtual machine is started, use ifconfig to find that eth0 is not started. you can directly use the ifup eth0 command to start the NIC.

     

    You can see that the IP address has been obtained. Because the network used NAT when creating a VM, the address is automatically allocated to the NIC through DHCP. Now that we have obtained the IP address from the virtual machine through NAT, we can use the Xshell tool on the physical machine to check whether the IP address can be pinged and connect to the virtual machine through ssh.

    It is already connected. Here, we will talk about this Xshell as one of the terminals. we can use the tty command to check what type of terminals it is. Terminals are generally divided into the following types:

    (1) virtual terminal: indicates/dev/tty # ("#" indicates a number). you can use ctrl-alt-[1-6] to switch, virtual terminals are in virtual machines.

    (2) pseudo terminal: the representation is/dev/pts/#. ssh is used for remote connection, and command prompt opened on the graphic interface, such as Xshell, is a pseudo terminal.

    (3) physical terminal:/dev/console

    (4) serial terminal:/dev/ttyS #

    (5) graphical terminal: Ctrl-Alt-F7

    All the terminals displayed by the tty command are hardware devices, but they are all device files displayed in the file format. Therefore, everything in Linux is a file (one of the basic principles of Linux ).

    Next let's take a look at its Nic configuration file.

    In the red box, ONBOOT = no indicates that the network card is not automatically started when the system starts. Therefore, the network card eth0 is not displayed by using the ifconfig command at the beginning. The NM in NM_CONTROLLED is the abbreviation of NetworkManager, it is a network management tool provided by the system. I don't want to rely on its control, so I changed it to no; BOOTPROTO = dhcp indicates that the IP address is obtained through dhcp. (It can be set to static or none. you can manually configure IPADDR, NETMASK, GATEWAY, and so on. I will not elaborate on it here)

     

    Next, we use wget to download the 163 source, which is 163 faster in China and sohu. Here we take 163 as an example. Because many of the minimal CentOS tool kits are unavailable, the system prompts not found when using wget. you only need yum-y install wget, because the system itself comes with a yum source.

    Back up the old yum source, replace it with the 163 source, and then run yum clean all.

  2. Install VMwareTools

    The installation script of VMwareTools uses perl, while CentOS 6 does not contain perl, so you need to install it yourself. You can download the source code and compile it yourself, or use yum to install it directly.

    Then, load the VMware-tools image on the vmware interface.

    Next, create a directory (mkdir), mount Directory (mount), copy (cp), and decompress (tar), for example:

    Umount cancels the mounting. before canceling the mounting, you must exit the mounting Directory. Otherwise, the system will prompt that device is busy ). After decompression, enter the (cd) decompression Directory, execute the script (./vmware-install.pl ).

    When a problem occurs, a prompt is displayed.

Error: Unable to find the binary installation directory (answer BINDIR)

In the installer database file "/etc/vmware-tools/locations ".

Delete all files in the/etc/vmware-tools/Directory (rm) to execute the script.

By default, you can press enter and yes. However, after the installation is complete, some problems are encountered during startup, such:

Initctl: Job failed to start

Unable to start services for VMware Tools

Then try to manually start/etc/vmware-tools/services. sh start

Mounting HGFS shares: FAILED.

Blocking file system: FAILED.

The first error is that the shared folder function is not enabled in virtual machine settings.

The second error is that fuse-libs is not installed. use yum to install fuse-libs. As for what this is, I am not very clear about it. it should be a library file related to the file system.

To solve these two problems, perform the following operations:

All started successfully.

 

The specific role of VMware-Tools is not described here. you can search for it. I mainly want to record some problems and solutions I encountered during my learning process. I hope you can include more information about poor writing ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.