Linux-vmware Tools installation and CDROM mount

Source: Internet
Author: User

  mentioned aboveYesterday wanted to directly copy the contents of the command line in the CentOS system of the virtual machine to the host TXT document to save, found that the virtual machine and host directly between the communication, and later found that the data was originally due to my virtual machine is not installed Vwmare tools for the sake of. One afternoon, check the information. CDRom image, Mount, mount the relationship between directories, but there is a problem is obviously mounted, but open the Mount directory does not see the desired installation package.  Later asked the blog Park Friends only found that my version of the CentOS problem, presumably because my version is the LIVECD type, switch CDROM ISO image failed to cause. Come back in the morning, create a new virtual machine, and then install the LiveCD to the hard disk, and then mount it, it's done! IntroductionVMware Tools is an enhanced tool that comes with VMware virtual machines, equivalent to the enhancements in VirtualBox (Sun VirtualBox Guest additions), which VMware offers to enhance virtual graphics and hard disk performance,  And a driver that synchronizes the virtual machine with the host clock. Only VMware Tools is installed in a VMware virtual machine to enable file sharing between host and virtual machines, while supporting free-drag functionality, as well as the ability for the mouse to be free before virtual machines and hosts Moving(no more pressing ctrl+alt), and the virtual machine screen can also be fullscreen. VMware strongly recommends that you complete each virtual machine in a single Operating SystemInstall the VMware Tools Suite immediately after installation. It is important to install VMware Tools in the guest operating system. The most important thing is that you can copy and paste operations between the host and client or from one virtual machine to another after installation Linux VMware Tools installation steps: 1. Installation Environment Introduction #虚拟机版本: Vmware-workstation-full-10 #linux分发版本: CENTOS-6.4-I386-LIVECD 2. Prepare beforehand work  #安装虚拟机, installation directory: C:\Program Files (x86) \vmware #  New virtual machine: Use Centos-6.4-i386-livecd.iso image to create a new CentOS system with 2G or more memory, remember that it is 2G or more memory, otherwise the intall to hard drive will not be available later.   Note: Remember the account password that you set during the new process, which is the password required to be entered when Su Root is behind. #安装到硬盘 (Intall to HDD): Because I use the Linux image is LiveCD (it can start the computer through the CD-ROM, boot a system, the system in use and installed on the hard disk is the same, is the speed of the boot is relatively slow), Virtual machines are required to boot the system-set-cd/dvd--> to use an ISO image file, where the image file is Centos-6.4-i386-livecd.iso. When we start the system in the form of LiveCD, and then switch the ISO image file operation, the system will give a warning: the system is locked cdrom ...  Even if you press OK to switch, in fact, the switch failed, because the current ISO is used for the current system, is being occupied, certainly do not switch to you ~ write down the instructions are due to VMware tools need to use another image file ~ So we have to install the Linux system to the hard disk, so that the boot system does not need to mirror files ~ installation process is very simple, mainly set the time, language, user name and password, too complex I do not understand.  Remember user name and password Oh ~ ~ 3. With the preparation of VMware tools, we can formally start installing VMware Tools ~~o (∩_∩) O ha! Take my local installation as an example: (1) After you open the virtual machine, select Use ISO image in the CD-ROM virtual optical drive (virtual machine-Setup-cd/dvd--> using ISO image file) to locate the VMware Tools installation files, such as C:\Program files (x86  ) \VMware\VMware Workstation\linux.iso (This is linux.iso in the installation directory where the virtual machine is installed) (2) Start the VM (3) Enter Linux to create a new terminal and enter the terminal as root. (4) Exit to Windows, in the Virtual Machine menu bar, click Virtual Machine, install the VMware Tools submenu, the dialog will pop up and click "Confirm" to install. Here is a description that appears below the virtual machine: Click Help to playThe appropriate installation process documentation.  You can also refer to it.  (5) Mount Optical drive mount-t iso9660-o ro/dev/cdrom/mnt (note the space entered in the command) at this point, your Linux.iso file is equivalent to the files in the Windows CD.  Enter the DF command to see the Mount directory as follows: Gee, I obviously put/dev/cdrom on top of the/mnt, why is it shown here/dev/sr0? Input: ls-l/dev |  grep CD can see the description of the CD-ROM drive, the general/dev/cdrom Point is/dev/sr0: understand, as long as the appearance of/dev/sr0 mounted on the/mnt, that is, mounted successfully.   If the mount directory is wrong, you can enter Umout/dev/cdrom to unmount the mount. I also encountered a problem when I installed: I want to mount to/mnt/cdrom, that is, under/mnt mkdir cdrom, but the system prompts this is read-only system, cannot create a new directory. In fact, at this time you DF command will find that/MNT has actually been mounted on, after the mount is only readable ~ If the current system is not mounted, you can enter the Umout/dev/cdrom to unload the mount, then the new directory operation.
 (6) Using CD/MNT to enter the optical drive, enter the LS command you will see a *.tar.gz format file (for example, my is: vmwaretools-9.6.0-1294478.tat.gz), and then enter the command CP vmwaretools-9.6.0-1294478.tat.gz/tmp/copy it to the/tmp/directory (7) Enter command CD/TMP Enter/tmp directory (8) Enter command TAR-ZXF vmwaretools-9.6.0-1294478 . tat.gz will just copy the vmwaretools-9.6.0-1294478.tat.gz decompression, the default decompression to the current directory, this time there will be a name similar to "Vmware-tools-distrib" folder, here and Windows  The result is the same as the decompression inside. (9) Enter command Cdvmware-linux-tools Enter the extracted directory (10) Enter the command./*.pl Run install VMware Tools (my *.pl file is: vmware-install.pl) (11) During the run of the installation, it takes one step A step of the problem to ask you to respond, in this process, you just see the question after the show [Yes], [no], [yes/no] All enter Yes, and then enter, the other questions regardless of [] what is inside the direct return to the good (12) after the installation is complete,  Select the virtual machine above: Virtual machine-Settings-options-client isolation, tick "enable copy and paste", and then restart the CentOS system, you can copy between the virtual machine system and the host system, paste text, and files can be directly between the two systems dragged. The ps:mount command describes the command format: Mount [-t vfstype] [-O options] Device dir 1.-t vfstype Specifies the type of file system, usually without specifying. Mount will automatically select the correct type. Common types are: disc or disc Image: iso9660 DOS FAT16 file system: MSDOS Windows 9x FAT32 file system: VFAT Windows NT NTFS file system: NTFS Mount Windows file network share: SMB FS UNIX file network share: NFS 2.-o options are primarily used to describe the way devices or files are hooked up. Commonly used parameters are: loop: Used to attach a file as a hard disk partition on the system ro: Mount the device in a read-only way RW: Using read-write method to hangPick-Up Device Iocharset: Specifies the device that accesses the character set used by the file system to mount (Mount) 3.device. Mount point of the 4.dir device on the system.

Linux-vmware Tools installation and CDROM mount

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.