How to implement file sharing in VMWARE

  
 

Use vmware (vmware workstation 5) shared folders function to achieve file transfer between host and ghost in vmware, without any network related settings, do not use any network protocol, host and ghost can be linux and windows operating system< Br>, here only introduces the host is windows, ghost is the setting under linux, if the ghost is windows, please refer to the vmware help setting up shared folders. 2. 3.1. Install vmtools for linux: 4. Select VM > install VMware tools...5 in the vmware workstation program menu. 6. Start the linux in the ghost computer and execute: 7.mkdir /mnt/cdrom8.mount -o Ro /dev/cdrom /mnt/cdrom (vmtools installation files are placed in the vmware virtual cdrom, first mount this CD-ROM drive to find the installation file) 9.cd /mnt/cdrom10.tar -zxvf VMwareTools-5.0.0- 12124.i386.tar.gz -C /tmp (Extract the installation files to /tmp) 11. 12.cd /tmp/vmware-tools-distrib13../vmware-install.pl (Execute the vwware installation script, this script Is written in perl) 14. Here, the installer will ask the installation file storage location and set the resolution and other issues, in most cases, the default configuration vmware tools can work properly, so here for each Problem Press the Enter key to select the default configuration 15. 16. After installation, vmware will add a vmhgfs module to the kernel, you can use lsmod to view 17. 18. 19.2. Set the host computer shared directory: 20. In the ghost computer Switch to windows desktop and select vmware VM > Settings > Options > Shared Folders > Properties21. Click on the “add” button at the bottom right of the dialog box, click “Next”22. 23. In the text box"name” Enter the name of the shared directory (the directory name filled in here will show the same directory name in the ghost computer's linux system), assuming fc4_iso; fill in the host computer in the "host folder", the windows system wants to share The directory is assumed to be F:\\linux-cd\\RedHat\\Fedora_Core_4\\stentz-dvd-i386, and then click Finish 24. 25. The next dialog is to choose the sharing method: Enable this share means that the share is valid for a long time. Read-only mode means that the share is valid for a long time, and the directory is read-only. The Disable after this session mode means that the share will be invalid after the next ghost computer is shut down or suspended. Under normal circumstances, select Enable this share and then click “Complete 26. 27. Since then, the shared folder has been set up 28. 29.3. Use of the shared folder directory 30. Switch to the ghost computer linux system, execute: 31.cd /Mnt/hgfs32.ls33. You can see the directory of fc3_iso, and you can use windows and other instructions to implement windows to linux, linux to windows read and write operations 34. 35.4. Note 36. Add a shared folder or pair in vmware software The version of the shared folder is valid immediately, which means that you can immediately see the newly added shared directory and experience the parameter changes in the linux system of the ghost computer. 37. Conclusion: The purpose of writing this article is to Reduce the CU linux version of the vmware host /ghost computer shared file problems and repeated questions and other brothers repeated answers, so that the layout is more brief. In addition, I think that most of the questions answered by ftp, samba or even nfs (nfs can be implemented on Windows with microsoft service for Unix), using shared folder method with vmware is better than using network protocol to achieve file transfer. It's much more convenient, and for newbies, copying files with the cp command is much simpler than using the ftp and smbmount commands

Copyright © Windows knowledge All Rights Reserved