vmvare 虚拟机和windows 共享文件夹

Step One:  Enable a host file in Windows by VMware settings.

  1. 在VMware客户机的选项栏中选择 "Virtual Machine" -> "Virtual Machine Settings..."

  2. 在弹出的窗口中,选择"options" -> "Shared Folders", 在右边选择“Always Enabled", 并增加主机的目录为共享目录,需指定路径与共享目录名。
Step Two: Install or update vmware tools.
These steps are performed on the host, within Workstation menus:
1. Power on the virtual machine.
2. After the guest operating system has started, prepare your virtual machine to install VMware Tools.
Choose VM > Install VMware Tools.
The remaining steps take place inside the virtual machine.
3. As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working directory (for example, /tmp), uncompress the installer, then unmount the CD-ROM image.
Note: Some Linux distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.
Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, you must modify the following commands to reflect the conventions used by your distribution.
mount /dev/cdrom /mnt/cdrom
cd /tmp
Note: If you have a previous installation, delete the previous vmware-distrib directory before installing. The default location of this directory is
/tmp/vmware-tools-distrib.
4. Untar the VMware Tools tar file:
tar zxf /mnt/cdrom/VMwareTools-5.0.0-<xxxx>.tar.gz
umount /dev/cdrom
Where <xxxx> is the build/revision number of the VMware Workstation release.
Note: If you attempt to install a tar installation over an rpm installation — or the reverse — the installer detects the previous installation and must convert the installer database format before continuing.
5. Run the .tar VMware Tools installer:
cd vmware-tools-distrib
./vmware-install.pl
Respond to the configuration questions on the screen. Press Enter to accept the default value.

 

 

Step three: create a shortcut in Desktop of ubuntu
ln -s /mnt/hgfs/shared-directory ~/Desktop/Name-of-the-folder 
 
 
 
Reference webs:
1. http://theholmesoffice.com/how-to-share-folders-between-windows-and-ubuntu-using-vmware-player/
2. https://pubs.vmware.com/workstation-9/index.jsp#com.vmware.ws.using.doc/GUID-08BB9465-D40A-4E16-9E15-8C016CC8166F.html
posted @ 2017-12-08 13:19  YWU  阅读(198)  评论(0)    收藏  举报