Problem description: When we use vmware to install a new linux operating system (Popular, Fedora8 is one of them) on a local machine, how can we make the screen resolution higher than 800*600? How can we move the mouse smoothly between the host and the client? How can we smoothly share files between them? Answer: Why do many people say that even if vmwaretools is installed, the resolution and file sharing problems still cannot be solved? Principle Analysis: the reason is that vmwaret
Problem description: When we use vmware to install a new linux operating system (Popular, Fedora8 is one of them) on a local machine, how can we make the screen resolution higher than 800*600? How can we move the mouse smoothly between the host and the client? How can we smoothly share files between them?
Case: Install vmware tools
Secondary problem: Why do many people say that even if vmware tools is installed, the resolution and file sharing problems still cannot be solved?
Principle Analysis: the reason is that vmware tools has not been installed successfully.
1. I do not recommend using rpm format packages for direct installation, or command line, rpm-ivh vmware-tools.xxxx.rpm installation. The reason is that no error message is prompted during installation.
2. We recommend that you use the source code installation package for installation. Even if an error occurs, we can modify the source code for recompilation.
Source code installation steps:
1. decompress the vmware tools Package to a directory, for example,/opt/. The final directory is/opt/vmware-tools-distrib.
2. Go to the lib/modules/source directory to decompress the vmblock.tar and vmhgfs.tar packages. decompress the files and obtain two folders: vmblock-only and vmhgfs-only.
3. First modify the vmblock package source file, go to vmblock-only/linux, and modify the two files:
A. OS. h file, line 3. Find the kmem_cache_create () function definition, remove the last parameter, and leave only five parameters (for its definition, see linux/slab. h)
In the B. filesystem. c file, Row 3 removes the last parameter of the kmem_cache_create function and the comma after the previous parameter.
4. Modify the vmhgfs package source file, go to vmhgfs-only, and modify the following two files:
A. file. c file. comment out the. sendfile definition starting from line 1 and # ifdef VMW_SENDFILE_NODE to Line 2. Comment out the 1,011st rows, and call the result = generic_file_sendfile () function.
B. In the filesystem. c file, remove the last parameter of the kmem_cache_create function in row 693,704, and delete the comma after the previous parameter.
5. save the files modified in the preceding two packages. If they cannot be saved, you can save as first, delete the original file, and rename it back to the original file name. In addition, the two folders are repackaged into vmblock.tar and vmhgfs.tar.
6. Open a terminal window and enter./vmware_install.pl in the unzipped directory, for example,/opt/vmware-tools-distrib.
7. Press yes all the way to install, but enter the following path when the system prompts the header files file location:
/Usr/src/kernels/2.6.23.1-42. fc8-i686/include
8. Now we can see that vmblock and vmhgfs are successfully compiled. However, vmxnet cannot be installed successfully, but it does not affect our applications.
(I will briefly explain this later)
9. When you are asked whether to configure the screen resolution, you can answer yes and select the desired resolution, for example, 3: 1024*768.
10. Now you can share winXP and linux Files.
A. Choose VM> settings from the vmware menu, select options, find shared folders, select always enabled, and add the shared directory of windows.
B. Open the/mnt/hgfs directory of fedora 8 and you can see the shared directory of windows.
Subsequent problems: the reason why vmware tools fails to be installed is that many of the header files of fedora 8 have been modified, but the functions in vmware tools are still in the old format, therefore, compilation fails. The same is true for vmxnet, but the problem with vmxnet is not that simple. It is mainly because the structure of struct sk_buff in skbuff. h has changed too much and it is very troublesome to modify it.
The second unsolved problem is that the copy and drag problem between the host and the target machine has not been well solved. According to the explanation of vmware tools, you only need to install vmblock, but I do not know why it has been installed and cannot be used. This requires further research.
The third problem is that in remote desktop, if you enter the vmware client, the mouse may experience problems such as Jitter. This problem is very serious. If we log on to the company's machine through vpn at home and want to operate the fedora of vmware, there is basically no way. This issue also needs further research.
Finally, although vmware tools is known as open-source (the original code can be obtained on sourceforge), it seems that the above problem cannot be solved. Further research is required.