VMware under Fedora after installation with Windows shared folder issues

Source: Internet
Author: User
Tags function definition

Long time come here, this time write a small technical problem. Because Fedora 8 relatively new, search on the internet for a long time, also did not find good data, solve the well, leave a trace it, we share, so that when they encounter the same problem, save a few hours.
Problem Description: When we use VMware on the local machine, install a new Linux operating system (more popular, Fedora is one of them), how to make the screen
Resolution is higher than 800*600. How to make the mouse move smoothly between the host and the client. How to successfully share files between the two.
Answer: Install VMware Tools
Two questions: Why many people say that even with VMware Tools installed, the resolution and file sharing problem is not resolved.
Principle Analysis: The reason is that VMware tools do not have a real installation success.
1. I do not recommend the use of the RPM format package directly installed, or the command line, RPM-IVH vmware-tools.xxxx.rpm installation. The reason is that, at installation time,
Does not prompt for specific error messages.
2. It is recommended to install the package with the source code. Even if there is an error, we can modify the source code to recompile.
==========================================================================
Source Installation steps:
1. First extract the VMware Tools compression package to a directory, such as:/opt/, the final directory is:/opt/vmware-tools-distrib
2. Into the decompression directory under the Lib/modules/source, respectively, decompression Vmblock.tar and Vmhgfs.tar two compressed packets, after decompression to get
Two folders: Vmblock-only, vmhgfs-only
3. First modify the Vmblock package source file, enter Vmblock-only/linux, modify two files:
A. os.h file, line 79th, find the kmem_cache_create () function definition, remove its last argument, leaving only 5 arguments (whose definition
See LINUX/SLAB.H)
B. filesystem.c file, line 125th, remove the last argument of the Kmem_cache_create function and remove the comma after the previous argument.
4. Modify the Vmhgfs package source file, enter Vmhgfs-only, modify the following two files:
A. file.c file, comment out from line 99th, #ifdef Vmw_sendfile_node start to line 101th. SENDFILE definition.
Continue to comment out line 1011th, result = Generic_file_sendfile () function call.
B. filesystem.c file, remove the last argument of the Kmem_cache_create function in line 693,704 and delete the comma after the previous argument.
5. Save the modified file in both packages, save as, and then delete the original file and rename it back to the original file name.
Also, repackage two folders into Vmblock.tar and Vmhgfs.tar.
6. Open a terminal window, under the previous decompression directory such as:/opt/vmware-tools-distrib/,
Enter:./vmware_install.pl start Installation.
7. Press Yes to install, but when prompted to say the system header (header files) file location, enter the following path:
/usr/src/kernels/2.6.23.1-42.fc8-i686/include
8. You should see Vmblock and Vmhgfs successfully compiled at this time. However, Vmxnet cannot be installed successfully, but it does not affect our application.
(about this, I'll explain briefly later)
9. When prompted to ask if the screen resolution is configured, answer Yes, you can choose the resolution you want, for example: 3:1024*768
10. Now you can share WinXP and Linux files.
A. Open VMware's menu VM->settings, select options, find Shared folders, choose Always enabled,
Add Windows shared directory
B. Open the/mnt/hgfs directory for Fedora 8, where you can see the directory where Windows is shared.
Follow-up questions: The reason for the failure of VMware Tools installation is that Fedora 8 header files, many have been modified, but VMware tools
The function is still in the old form, so of course the compilation can't pass. It's the same thing about Vmxnet, but Vmxnet's problem is not that simple.
, mainly in skbuff.h struct SK_BUFF This structure changes too much, the modification is very troublesome.
The second unresolved problem is that there is no good solution to the problem of copying and dragging between the host and the target machine. As explained in VMware Tools,
As long as the installation of good vmblock can be, but I do not know why has been installed, or can not be used. This awaits further study.
The third problem is that, in a remote Desktop, if you go into VMware's client, the mouse will appear to be jittery and so on. This question is
Seriously, if we are in the home through VPN landing on the company's machine, want to operate VMware fedora, it is basically no way. This problem,
Further study is also pending.
Finally, even though VMware tools claim to have been open source (you can get the original code on the SourceForge), it seems like the above
The problem cannot be solved. This also needs to be further studied. The main purpose of installing VMware Tools is to use the Shared Folders feature. Unfortunately, because of the changes in Fedora 8 source code, it is not possible to install this feature smoothly. After one night of testing, the Shared Folders feature was installed. The main problem is in the VMware tools Distrib/lib/modules/source/vmhgfs.tar package. First unpack the installation package into a temporary folder, and then
1. Extract Vmhgfs.tar get Vmhgfs-only folder
2. Enter the folder to open the File.c file comment off from line 99th, #ifdef Vmw_sendfile_node start to 101th. Comment out line 1011th, Result=generic_file_ ... Save
3. Open FILESYSTEM.C to delete the last parameter of line 693,704 kmem_cache_create function, save.
4. Repackage the Vmhgfs-only folder as a Vmhgfs.tar.
5. Run vmware_install.pl can be installed successfully vmhgfs this package.
Note that when you ask what is the location of the directory of C header files, match your running, you need to enter the following path yourself/USR/SRC/KERNELS/2 .6.23.1-42.fc8-i686/include/linux

Other VMware tools are also problematic due to file changes. But it doesn't work, so it's not loaded.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.