Fedora Core 6系统上安装VMware(2)

I keep several Linux distributions running on VMware Workstation due to my work. Unfortunately, due to recent changes in the Linux kernel, you cannot properly compile the vmhgfs driver on Fedora Core 6. Fortunately, I have a workaround until VMware releases a proper fix.

First, go to /usr/lib/vmware-tools/modules/source and unpack vmhgfs.tar like this:

******************ggggggggggg************************

tar -xf vmhgfs.tar

********************************************************

Now you should have a new directory called vmhgfs-only. You need to get the following patch to make it work:

vmhgfs-i_node-fix.patch()

To apply it, simply run:

patch -p1 < /wherever/you/saved/it/vmhgfs-i_node-fix.patch

This will patch vmhgfs-only/driver.c to conform with the kernel changes. Now you will have to repack it and reconfigure the VMware Tools. Simply run the following two commands:

tar -cf vmhgfs.tar vmhgfs-only

************************ggggggggggggggg*******************

run the command:

/usr/bin/vmware-config-tools.pl

**********************************************************

If all you want is to get the module compiled, you're all set. If you actually need to access a shared folder, then you should know that this workaround will not work while SELinux is enabled. If you want to use the files, you will have to disable SELinux by going to System -> Administration -> Security Level and Firewall. You will have to reboot, but after that, everything should work fine.

One more thing. If your host is Windows, you may notice that the files on the shared folders will appear as only accessible by root (they are in fact fully modifiable by everyone, but GNOME won't see it and this can be an annoyance.) If you want, the patch below will make all files appear with proper permissions (all permissions for everyone.) Apply it using the same steps used for the patch above.

vmhgfs-perm-fix.patch ()

Now,all the ok.

下面是两个patch文件的内容:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/41317be1b26b46eff5ca7001c3cdc063.html