mentioned above
Yesterday 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!
reprint please indicate source: Blog Park-Bang Bang sauce good **************
Introduction
VMware 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 the VMware virtual machine to enable file sharing between the host and virtual machines, while supporting free drag and drop, the mouse can move freely before the virtual machine and host (no more pressing ctrl+alt), and the virtual machine screen can be full screen.
VMware strongly recommends that you install the VMware Tools Suite immediately after you complete the operating system installation in each virtual machine. 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. Introduction to Installation Environment
#虚拟机版本: vmware-workstation-full-10
#linux分发版本: CENTOS-6.4-I386-LIVECD
2. Pre-preparatory work
#安装虚拟机, installation directory: C:\Program Files (x86) \vmware
#新建虚拟机: Use Centos-6.4-i386-livecd.iso image to create a new CentOS system with 2G or more memory, remember 2G or more memory, otherwise the intall to hard drive will not work.
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, it is also failed to switch, because the current ISO is used for the current system, is being occupied, certainly not for you to switch ~
Write down the instructions above because you need to use another image file when you follow VMware Tools ~
So we have to install the Linux system on the hard drive so that it doesn't need to be mirrored when booting the system ~
The 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. Installing VMware TOOLS
With these preparations, we can formally start installing VMware Tools ~~o (∩_∩) O ha!
Take my local installation as an example:
(1) After opening the virtual machine, select the 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 the Linux.iso in the installation directory where the virtual machine is installed)
(2) Start the virtual machine
(3) Enter Linux to create a new terminal and enter 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 and the appropriate installation process documentation will pop up. 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:
Gee, I obviously put/dev/cdrom on top of/mnt, why is it shown here/dev/sr0?
Input: ls-l/dev | The grep CD can see a description of the CD drive, and the general/dev/cdrom points to/dev/sr0:
Understand, as long as the appearance of/dev/sr0 mounted on the/mnt, that is to say the success of the Mount.
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) Input command cd/tmp into/tmp directory
(8) Input command tar-zxf vmwaretools-9.6.0-1294478.tat.gz just copied vmwaretools-9.6.0-1294478.tat.gz decompression, the default decompression to the current directory, At this point there will be a folder named similar to "Vmware-tools-distrib", which is the same as the decompression results in Windows.
(9) Input command cdvmware-linux-tools into 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 process, it will be a step-by-step problem to ask you to respond, in this process, you just see the problem after the display [yes], [no], [yes/no] input Yes, and then enter, the other questions regardless of [] inside what is directly enter the good
(12) After the installation is complete, select the 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 the text, and the file can be dragged directly between the two systems.
Ps:mount Command Introduction
Command format: Mount [-t vfstype] [-O options] Device dir
1.-t vfstype Specifies the type of file system that is not normally specified. 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: SMBFS
UNIX (LINUX) file network share: NFS
The 2.-o options are primarily used to describe the way devices or files are hooked up. The commonly used parameters are:
Loop: Used to attach a file as a hard disk partition on the system
RO: Hook device with read-only method
RW: Mount device with read-write mode
Iocharset: Specifies the character set used to access the file system
3.device the device to mount (Mount).
Mount point of the 4.dir device on the system.
Linux-vmware Tools installation and CDROM mount