Share Folder (VMware 12 Pro centOS 7)
1. Required packages
Make sure that the following packages are installed:
[root@host]# yum install samba-client samba-common cifs-utils
which will also pull in any needed dependencies. Note that cifs-utils is for CentOS-6 (or later) only.
2. Basic method
Create a local mount point. For example:
[root@host]# mkdir /mnt/win
Edit the /etc/fstab file and add a line like:
\\winbox\getme /mnt/win cifs user,uid=500,rw,suid,username=sushi,password=yummy 0 0
The Windows share gets mounted on boot. Add the noauto option if you wish to manually mount it by the command mount /mnt/win . In this example, local user (uid=500) will become the owner of the mounted files. Use of the uid flag is optional. However, it may be required for certain applications (for example, Acrobat) to work because they are picky about the permissions.
You may want to use different options for cifs. For example, nocase allows case insensitive path name matching. Do a man mount.cifs to see more options.
[Note: if you used smbfs in earlier versions of CentOS, you must replace it with cifs in CentOS 5 because smbfs has been deprecated.]
VMware Workstation 12 + Centos 7 共享文件夾
Share Folder - VMware Workstation 12 pro and centOS 7
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
Waht is the directory that contains the init scripts?
[/etc/rc.d/init.d]
In which directory do you want to install the daemon files?
[/usr/sbin]
In which directtory do you want to install the library files?
[/usr/lib/vmware-tools]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
VMware tools 10.0.6 build-3595377
uninstall vmware tool
/usr/bin/vmware-uninstall-tools.pl/usr
Searching for a valid kernel header path.....
The path "" is not a valid path to the 3.10.0-327.el7.x86_64 kernel headers.
Would you like to changeit ? [yes]
This program could not find a vaild path to the kernel headers of the running kernel. Please ensure that the header files for the running kernel are installed on this system.
config vmware tools
vmware-config-tools.pl
pre-install pakages
make
gcc
kernel header
/usr/bin/vmware-config-tools.pl
今天在vmware上安装了centOS7,安装完后更新vmware-tools。
在安装vmware-tools-10.0的过程中,提示
“The path "" is not a valid path to the 3.10.0.-327.el7.x86_64 kernel headers.
Woluld you like th change it?[yes]"
之前报过一个错是关于gcc错误,我安装了gcc后提示的是这个。后来由执行了yum install kernel-devel-$(uname -r)命令安装了一个kernel-devel.x86_64 0:3.10.0-327.el7包后vmware-tools安装成功。
因此,在安装vmware-tools之前需要先执行:
yum install gcc
yum install kernel-devel-$(uname -r)
这个2个命令更新的组件都是vmware-tools需要的,提前执行完安装就不会出错了!!
补充一下:安装成功后vmware共享的目录可在/mnt/hgfs下看到
沒有留言:
張貼留言