Slackware安装VMware Tools
今在Slackware13.37下试着装了一下VMWare,发现一切正常。
所使用的版本为:VMWare Workstation 7.1.4 下载地址是:http://www.linuxsight.com/blog/2084
如果在fedora opensuse你会遭遇一些问题,需要配置内核方面的东西。
之后我又在VMware里又开了个Slackware,准备试一下安装VMware Tools,提起VMware Tools,再一开始接触虚拟机经常会碰到,最早是自redhat9上,装了虚拟工具后,可以全屏,可以支持文件拖放拷贝,鼠标可以自由出入。VMware提供2种格式,一种是RPM,适合redhat、suse等,还有一种tar.gz,适合各种版本。而在VMWare Workstation 7.1.4 里,却见到的只有tar.gz。
tar.gz格式适合所有的Linux发行版,所以借此机会提一下安装虚拟工具的方法:
首先点击菜单下的 vm -- Install VMware Tools 虚拟机里就会弹出光驱,然后拷贝VMware Tools.tar.gz到某个目录解压进入目录。
bash-4.1# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
What 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 directory do you want to install the library files?
[/usr/lib/vmware-tools]
..............................
所有的版本都是按这个标准走,如果顺利的话一路回车就可以成功。不过你不一定那么顺利,如果你用的是Slackware,那你会遇到以下的情况:
The installation of VMware Tools 7.8.4 build-126130 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]
Unable to create symlink "/etc/pam.d/vmware-guestd" pointing to file
"/usr/lib/vmware-tools/configurator/pam.d/vmware-guestd".
Execution aborted.
这一步解决方法: mkdir /etc/pam.d/ 然后 /usr/bin/vmware-config-tools.pl
接下来你可能会遇到:
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.37.6-smp). Even if the module were to compile
successfully, it would not load into the running kernel.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
这个问题可能是因为vmware版本的问题,因为我用6.5的时候碰到过,而用vmware7的时候就很顺利(VMwareTools-8.4.6-385536.tar.gz)
Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no]
Searching for a valid kernel header path...
Detected the kernel headers of the running kernel at
"/lib/modules/2.6.37.6-smp/build/include".
The path "/lib/modules/2.6.37.6-smp/build/include" appears to be a valid path
to the kernel headers of the running kernel.
Would you like to change it? [no]
也许你可以参考一下去更改一下kernel header path
再一个问题:如果此过程虚拟工具还是挂载着会提示:
Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
/dev/sr0 ...
所以需要弹出虚拟工具光盘
最后一个问题:
Detected Xorg X server version 1.9.5.
Distribution provided drivers for Xorg X server are used.
Skipping X configuration because X drivers are not included.
到了这一步,就停在这里了,等了将近1个小时也没反应,最后也不知何因。
你应该还会想到用rpm2tgz来转rpm再安装吧,此方法试过了,安装很顺利,但就是不起效。
问题没解决,不过我们知道了虚拟工具是如何来安装的,所以其它版本也是这样,可能不会碰到类似问题,就像我以前装redhat的虚拟工具一样,还有之前在ubuntu10.10下也是十分顺利的。
最后一提, 虚拟工具卸载方法:/usr/bin/vmware-uninstall-tools.pl
Skipping X configuration because X drivers are not included.
的问题是不是
http://tamamichan.blog.so-net.ne.jp/2011-06-06
但是看不懂啊
Skipping X configuration because X drivers are not included.
的问题是不是
http://tamamichan.blog.so-net.ne.jp/2011-06-06
但是看不懂啊
http://tamamichan.blog.so-net.ne.jp/2011-06-06
好像关于Skipping X configuration because X drivers are not included.
问题的
但看不懂……
http://www.linuxquestions.org/questions/slackware-14/problem-configuring-vmware-tools-on-slackware-13-a-765864/