VMware虽然能够安装成功,但是vmhgfs和vmxnet这两个模块编译的时候没有通过。vmhgfs与虚拟机自带的共享Windows文件的功能相关,所以如果不能使用的话,很是遗憾。在网上找到了解决方法。
首先确定环境(我不保证其他环境是否也能这样操作)
VMwareWorkstation6.0.0
Ubuntu7.10
Kernel2.6.22
VMwareTools已安装完毕
1、下载2.6.22-vmhgfs-55017.tar.bz2和vmxnet-2.6.22-rc1-vmws6.tar,分别解压缩为vmhgfs.tar和更名为vmxnet.tar。
2、取得root权限后,将上述两者覆盖至/usr/lib/vmware-tools/modules/source
3、执行vmware-tools-distrib/bin/vmware-config-tools.pl可以编译成功。
重启后完成。
编译信息:
class=codetop>CODE:class=codemain>StoppingVMwareToolsservicesinthevirtualmachine: Guestoperatingsystemdaemon:done Blockingfilesystem:done Guestmemorymanager:done *Deconfiguringnetworkinterfaces...[OK] Guestvmxnetfastnetworkdevice:done NewHost-Guestcommunicationspath:done Tryingtofindasuitablevmmemctlmoduleforyourrunningkernel.
Noneofthepre-builtvmmemctlmodulesforVMwareToolsissuitableforyour runningkernel.Doyouwantthisprogramtotrytobuildthevmmemctlmodule foryoursystem(youneedtohaveaCcompilerinstalledonyoursystem)? [yes]
Usingcompiler"/usr/bin/gcc".UseenvironmentvariableCCtooverride.
WhatisthelocationofthedirectoryofCheaderfilesthatmatchyourrunning kernel?[/lib/modules/2.6.22-14-generic/build/include]
Extractingthesourcesofthevmmemctlmodule.
Buildingthevmmemctlmodule.
Using2.6.xkernelbuildsystem. make:Enteringdirectory`/tmp/vmware-config0/vmmemctl-only'' make-C/lib/modules/2.6.22-14-generic/build/include/..SUBDIRS=$PWDSRCROOT=$PWD/.modules make[1]:Enteringdirectory`/usr/src/linux-headers-2.6.22-14-generic'' CC[M]/tmp/vmware-config0/vmmemctl-only/os.o SHIPPED/tmp/vmware-config0/vmmemctl-only/vmmemctl1.o LD[M]/tmp/vmware-config0/vmmemctl-only/vmmemctl.o Buildingmodules,stage2. MODPOST1modules WARNING:couldnotfind/tmp/vmware-config0/vmmemctl-only/.vmmemctl1.o.cmdfor/tmp/vmware-config0/vmmemctl-only/vmmemctl1.o CC/tmp/vmware-config0/vmmemctl-only/vmmemctl.mod.o LD[M]/tmp/vmware-config0/vmmemctl-only/vmmemctl.ko make[1]:Leavingdirectory`/usr/src/linux-headers-2.6.22-14-generic'' cp-fvmmemctl.ko./../vmmemctl.o make:Leavingdirectory`/tmp/vmware-config0/vmmemctl-only'' Themoduleloadsperfectlyintherunningkernel.
Extractingthesourcesofthevmhgfsmodule.
Buildingthevmhgfsmodule.
Using2.6.xkernelbuildsystem. make:Enteringdirectory`/tmp/vmware-config0/vmhgfs-only'' make-C/lib/modules/2.6.22-14-generic/build/include/..SUBDIRS=$PWDSRCROOT=$PWD/.modules make[1]:Enteringdirectory`/usr/src/linux-headers-2.6.22-14-generic'' CC[M]/tmp/vmware-config0/vmhgfs-only/backdoor.o CC[M]/tmp/vmware-config0/vmhgfs-only/backdoorGcc32.o CC[M]/tmp/vmware-config0/vmhgfs-only/bdhandler.o CC[M]/tmp/vmware-config0/vmhgfs-only/cpName.o CC[M]/tmp/vmware-config0/vmhgfs-only/cpNameLinux.o CC[M]/tmp/vmware-config0/vmhgfs-only/cpNameLite.o CC[M]/tmp/vmware-config0/vmhgfs-only/dbllnklst.o CC[M]/tmp/vmware-config0/vmhgfs-only/dentry.o CC[M]/tmp/vmware-config0/vmhgfs-only/dir.o CC[M]/tmp/vmware-config0/vmhgfs-only/eventManager.o CC[M]/tmp/vmware-config0/vmhgfs-only/file.o CC[M]/tmp/vmware-config0/vmhgfs-only/filesystem.o CC[M]/tmp/vmware-config0/vmhgfs-only/fsutil.o CC[M]/tmp/vmware-config0/vmhgfs-only/hgfsBd.o CC[M]/tmp/vmware-config0/vmhgfs-only/hgfsUtil.o CC[M]/tmp/vmware-config0/vmhgfs-only/inode.o CC[M]/tmp/vmware-config0/vmhgfs-only/kernelStubsLinux.o CC[M]/tmp/vmware-config0/vmhgfs-only/link.o CC[M]/tmp/vmware-config0/vmhgfs-only/message.o CC[M]/tmp/vmware-config0/vmhgfs-only/module.o CC[M]/tmp/vmware-config0/vmhgfs-only/page.o CC[M]/tmp/vmware-config0/vmhgfs-only/request.o CC[M]/tmp/vmware-config0/vmhgfs-only/rpcin.o CC[M]/tmp/vmware-config0/vmhgfs-only/rpcout.o CC[M]/tmp/vmware-config0/vmhgfs-only/staticEscape.o CC[M]/tmp/vmware-config0/vmhgfs-only/stubs.o CC[M]/tmp/vmware-config0/vmhgfs-only/super.o LD[M]/tmp/vmware-config0/vmhgfs-only/vmhgfs.o Buildingmodules,stage2. MODPOST1modules CC/tmp/vmware-config0/vmhgfs-only/vmhgfs.mod.o LD[M]/tmp/vmware-config0/vmhgfs-only/vmhgfs.ko make[1]:Leavingdirectory`/usr/src/linux-headers-2.6.22-14-generic'' cp-fvmhgfs.ko./../vmhgfs.o make:Leavingdirectory`/tmp/vmware-config0/vmhgfs-only'' Themoduleloadsperfectlyintherunningkernel.
pcnet32343080 Unloadingpcnet32module
Extractingthesourcesofthevmxnetmodule.
Buildingthevmxnetmodule.
Using2.6.xkernelbuildsystem. make:Enteringdirectory`/tmp/vmware-config0/vmxnet-only'' make-C/lib/modules/2.6.22-14-generic/build/include/..SUBDIRS=$PWDSRCROOT=$PWD/.modules make[1]:Enteringdirectory`/usr/src/linux-headers-2.6.22-14-generic'' CC[M]/tmp/vmware-config0/vmxnet-only/vmxnet.o Buildingmodules,stage2. MODPOST1modules CC/tmp/vmware-config0/vmxnet-only/vmxnet.mod.o LD[M]/tmp/vmware-config0/vmxnet-only/vmxnet.ko make[1]:Leavingdirectory`/usr/src/linux-headers-2.6.22-14-generic'' cp-fvmxnet.ko./../vmxnet.o make:Leavingdirectory`/tmp/vmware-config0/vmxnet-only'' Themoduleloadsperfectlyintherunningkernel.
Extractingthesourcesofthevmblockmodule.
Buildingthevmblockmodule.
Using2.6.xkernelbuildsystem. make:Enteringdirectory`/tmp/vmware-config0/vmblock-only'' make-C/lib/modules/2.6.22-14-generic/build/include/..SUBDIRS=$PWDSRCROOT=$PWD/.modules make[1]:Enteringdirectory`/usr/src/linux-headers-2.6.22-14-generic'' CC[M]/tmp/vmware-config0/vmblock-only/linux/block.o CC[M]/tmp/vmware-config0/vmblock-only/linux/control.o CC[M]/tmp/vmware-config0/vmblock-only/linux/dbllnklst.o CC[M]/tmp/vmware-config0/vmblock-only/linux/dentry.o CC[M]/tmp/vmware-config0/vmblock-only/linux/file.o CC[M]/tmp/vmware-config0/vmblock-only/linux/filesystem.o CC[M]/tmp/vmware-config0/vmblock-only/linux/inode.o CC[M]/tmp/vmware-config0/vmblock-only/linux/module.o CC[M]/tmp/vmware-config0/vmblock-only/linux/stubs.o CC[M]/tmp/vmware-config0/vmblock-only/linux/super.o LD[M]/tmp/vmware-config0/vmblock-only/vmblock.o Buildingmodules,stage2. MODPOST1modules CC/tmp/vmware-config0/vmblock-only/vmblock.mod.o LD[M]/tmp/vmware-config0/vmblock-only/vmblock.ko make[1]:Leavingdirectory`/usr/src/linux-headers-2.6.22-14-generic'' cp-fvmblock.ko./../vmblock.o make:Leavingdirectory`/tmp/vmware-config0/vmblock-only'' Themoduleloadsperfectlyintherunningkernel.
[EXPERIMENTAL]TheVirtualMachineCommunicationInterface(VMCI)service providesanewcommunicationcapabilitywiththeHost,primarilyfor developmentatthemoment.Wouldyouliketoenablethisfeature?[yes]
Extractingthesourcesofthevmcimodule.
Buildingthevmcimodule.
Using2.6.xkernelbuildsystem. make:Enteringdirectory`/tmp/vmware-config0/vmci-only'' make-C/lib/modules/2.6.22-14-generic/build/include/..SUBDIRS=$PWDSRCROOT=$PWD/.modules make[1]:Enteringdirectory`/usr/src/linux-headers-2.6.22-14-generic'' CC[M]/tmp/vmware-config0/vmci-only/dbllnklst.o CC[M]/tmp/vmware-config0/vmci-only/kernelStubsLinux.o CC[M]/tmp/vmware-config0/vmci-only/vmciDatagram.o CC[M]/tmp/vmware-config0/vmci-only/vmci_drv.o CC[M]/tmp/vmware-config0/vmci-only/vmciProcess.o CC[M]/tmp/vmware-config0/vmci-only/vmciResource.o CC[M]/tmp/vmware-config0/vmci-only/vmciSharedMemory.o CC[M]/tmp/vmware-config0/vmci-only/vmciTest.o CC[M]/tmp/vmware-config0/vmci-only/vmciUtil.o LD[M]/tmp/vmware-config0/vmci-only/vmci.o Buildingmodules,stage2. MODPOST1modules CC/tmp/vmware-config0/vmci-only/vmci.mod.o LD[M]/tmp/vmware-config0/vmci-only/vmci.ko make[1]:Leavingdirectory`/usr/src/linux-headers-2.6.22-14-generic'' cp-fvmci.ko./../vmci.o make:Leavingdirectory`/tmp/vmware-config0/vmci-only'' Themoduleloadsperfectlyintherunningkernel.
DetectedX.orgversion1.3.
NodriversforX.orgversion:1.3.
DoyouwanttochangethedisplaysizethatXstartswith?(yes/no)[no]yes
PleasechooseoneofthefollowingdisplaysizesthatXwillstartwith(1- 15):
[1]"640x480" [2]<"800x600" [3]"1024x768" [4]"1152x864" [5]"1280x800" [6]"1152x900" [7]"1280x1024" [8]"1376x1032" [9]"1400x900" [10]"1400x1050" [11]"1440x900" [12]"1680x1050" [13]"1600x1200" [14]"1920x1200" [15]"2364x1773" Pleaseenteranumberbetween1and15:
[3]3
StartingVMwareToolsservicesinthevirtualmachine: Switchingtoguestconfiguration:done Guestfilesystemdriver:done MountingHGFSshares:done Guestmemorymanager:done Guestvmxnetfastnetworkdevice:done NewHost-Guestcommunicationspath:done Blockingfilesystem:done DMAsetup:done Guestoperatingsystemdaemon:done
TheconfigurationofVMwareTools6.0.0build-45731forLinuxforthisrunning kernelcompletedsuccessfully.
YoumustrestartyourXsessionbeforeanymouseorgraphicschangestake effect.
YoucannowrunVMwareToolsbyinvokingthefollowingcommand: "/usr/bin/vmware-toolbox"duringanXserversession.
Tousethevmxnetdriver,restartnetworkingusingthefollowingcommands: /etc/init.d/networkingstop rmmodpcnet32 rmmodvmxnet modprobevmxnet /etc/init.d/networkingstart
Ifyouwishtoconfigureanyexperimentalfeatures,pleaserunthefollowing command:"vmware-config-tools.pl--experimental".
Enjoy,
--theVMwareteam |
由于我对Linux的比较软件还不熟悉,在Windows下做了文件对比。
下载本文示例代码
阅读(1476) | 评论(0) | 转发(0) |