求助:vmware tools装不上,编译有错

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
renever
帖子: 9
注册时间: 2008-07-28 21:44

求助:vmware tools装不上,编译有错

#1

帖子 renever » 2014-06-28 19:02

我用vmware8.0.3新安装ubuntu14.04

装好后再安装vmware自带的vmware tools 8.8.2,虽然最后告诉我“DONE”,但是过程中有一些编译错误,分别是vmnet,vmblock模块

装完后 /mnt 里没有 hgfs出现,以前装的ubuntu12都是自动出现的
另外试图启动/usr/bin/vmware-user也不成,告诉我说“could not open /proc/fs/vmblock/dev”

google,baidu查了一天都没搞定,求助,希望有人解决过类似问题
===========================================================================
对了,补充一下,文本复制粘贴,文件vmware内外拖放,都是可以用的,就是共享文件夹这个没有,很挠头
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求助:vmware tools装不上,编译有错

#2

帖子 poloshiao » 2014-06-28 20:39

從終端機
sudo vmware-config-tools.pl
sudo reboot
看看行不行
renever
帖子: 9
注册时间: 2008-07-28 21:44

Re: 求助:vmware tools装不上,编译有错

#3

帖子 renever » 2014-06-28 21:39

不行啊 vmware-config-tools.pl会试图重新编译那些模块,还是会有错误,还是会最后傻呵呵地告诉我“Done”,然后文件共享不了
poloshiao 写了:從終端機
sudo vmware-config-tools.pl
sudo reboot
看看行不行
taohunter
帖子: 1555
注册时间: 2012-03-31 3:29

Re: 求助:vmware tools装不上,编译有错

#4

帖子 taohunter » 2014-06-28 23:56

vmware不是一个版本永远支持最新的linux发行版的guest系统的,用最新的ubuntu最好也要用最新的vmware。

下载以下pdf,检查其中的vmware--ubuntu版本的支持关系,要确保正常使用ubuntu14.04,需要vmware10.0以上的版本(当然也包括对应版本的vmware-tools)。。。
http://partnerweb.vmware.com/comp_guide ... _Guide.pdf
http://kb.vmware.com/selfservice/micros ... Id=2073804
三年后终于回到16.04--稳定了!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求助:vmware tools装不上,编译有错

#5

帖子 poloshiao » 2014-06-29 7:31

还是会有错误
你可以把 錯誤訊息 複製貼上來嗎
也許 錯誤還有別的原因造成的
例如
vmware-tools 還沒正確安裝
用最新的ubuntu最好也要用最新的vmware。
目前 VMware Player 官網支援 只有寫到 Ubuntu 13.10
http://partnerweb.vmware.com/GOSIG/Ubuntu_13_10.html
但是 我安裝在 Ubuntu 14.04 還沒碰到問題

進一步參閱
http://partnerweb.vmware.com/GOSIG/home.html
Guest Operating System Installation Guide
Linux Operating Systems
Ubuntu
Ubuntu 13.10
...
renever
帖子: 9
注册时间: 2008-07-28 21:44

Re: 求助:vmware tools装不上,编译有错

#6

帖子 renever » 2014-06-29 11:27

谢谢你,我又重新安装了一遍。不知道为什么附件贴不上。就直接贴在这里吧。

代码: 全选

matt@ubuntu:~/vmware-tools-distrib$ sudo ./vmware-install.pl -d
[sudo] password for matt: 
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] 

What is the directory that contains the init scripts? 
[/etc/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] 

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] 

The path "/usr/share/doc/vmware-tools" does not exist currently. This program 
is going to create it, including needed parent directories. Is this what you 
want? [yes] 

The installation of VMware Tools 8.8.2 build-590212 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] 

Initializing...


Making sure services for VMware Tools are stopped.



[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that
creates backups of virtual machines. Please refer to the VMware Knowledge Base 
for more details on this capability. Do you wish to enable this feature? 
[no] 

The module vmci has already been installed on this system by another installer 
or package and will not be modified by this installer.  Use the flag 
--clobber-kernel-modules=vmci to override.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.  Use the flag 
--clobber-kernel-modules=vsock to override.

The module vmxnet3 has already been installed on this system by another 
installer or package and will not be modified by this installer.  Use the flag 
--clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another 
installer or package and will not be modified by this installer.  Use the flag 
--clobber-kernel-modules=pvscsi to override.

The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.  Use the flag 
--clobber-kernel-modules=vmmemctl to override.

The VMware Host-Guest Filesystem allows for shared folders between the host OS 
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish 
to enable this feature? [yes] 

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmxnet-only'
make -C /lib/modules/3.13.0-30-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-30-generic'
  CC [M]  /tmp/vmware-root/modules/vmxnet-only/vmxnet.o
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:525:4: error: unknown field ‘get_rx_csum’ specified in initializer
    .get_rx_csum         = vmxnet_get_rx_csum,
    ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:525:4: warning: initialization from incompatible pointer type [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:525:4: warning: (near initialization for ‘vmxnet_ethtool_ops.get_eeprom_len’) [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:526:4: error: unknown field ‘set_rx_csum’ specified in initializer
    .set_rx_csum         = vmxnet_set_rx_csum,
    ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:526:4: warning: initialization from incompatible pointer type [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:526:4: warning: (near initialization for ‘vmxnet_ethtool_ops.get_eeprom’) [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:527:4: error: unknown field ‘get_tx_csum’ specified in initializer
    .get_tx_csum         = vmxnet_get_tx_csum,
    ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:527:4: warning: initialization from incompatible pointer type [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:527:4: warning: (near initialization for ‘vmxnet_ethtool_ops.set_eeprom’) [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:528:4: error: unknown field ‘set_tx_csum’ specified in initializer
    .set_tx_csum         = vmxnet_set_tx_csum,
    ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:528:4: warning: initialization from incompatible pointer type [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:528:4: warning: (near initialization for ‘vmxnet_ethtool_ops.get_coalesce’) [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:529:4: error: unknown field ‘get_sg’ specified in initializer
    .get_sg              = ethtool_op_get_sg,
    ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:529:27: error: ‘ethtool_op_get_sg’ undeclared here (not in a function)
    .get_sg              = ethtool_op_get_sg,
                           ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:530:4: error: unknown field ‘set_sg’ specified in initializer
    .set_sg              = ethtool_op_set_sg,
    ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:530:27: error: ‘ethtool_op_set_sg’ undeclared here (not in a function)
    .set_sg              = ethtool_op_set_sg,
                           ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:532:4: error: unknown field ‘get_tso’ specified in initializer
    .get_tso             = ethtool_op_get_tso,
    ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:532:27: error: ‘ethtool_op_get_tso’ undeclared here (not in a function)
    .get_tso             = ethtool_op_get_tso,
                           ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:533:4: error: unknown field ‘set_tso’ specified in initializer
    .set_tso             = vmxnet_set_tso,
    ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:533:4: warning: initialization from incompatible pointer type [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:533:4: warning: (near initialization for ‘vmxnet_ethtool_ops.get_pauseparam’) [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:535:4: error: unknown field ‘get_ufo’ specified in initializer
    .get_ufo             = ethtool_op_get_ufo,
    ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:535:27: error: ‘ethtool_op_get_ufo’ undeclared here (not in a function)
    .get_ufo             = ethtool_op_get_ufo,
                           ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c: In function ‘vmxnet_probe_device’:
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:1008:7: error: unknown field ‘ndo_set_multicast_list’ specified in initializer
       .ndo_set_multicast_list = &vmxnet_set_multicast_list,
       ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:1008:7: warning: initialization from incompatible pointer type [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:1008:7: warning: (near initialization for ‘vmxnet_netdev_ops.ndo_vlan_rx_add_vid’) [enabled by default]
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c: In function ‘vmxnet_map_pkt’:
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:2085:32: error: incompatible type for argument 2 of ‘pci_map_page’
                                PCI_DMA_TODEVICE);
                                ^
In file included from /usr/src/linux-headers-3.13.0-30-generic/arch/x86/include/asm/pci.h:124:0,
                 from include/linux/pci.h:1501,
                 from /tmp/vmware-root/modules/vmxnet-only/./shared/compat_pci.h:27,
                 from /tmp/vmware-root/modules/vmxnet-only/vmxnet.c:31:
include/asm-generic/pci-dma-compat.h:43:1: note: expected ‘struct page *’ but argument is of type ‘struct <anonymous>’
 pci_map_page(struct pci_dev *hwdev, struct page *page,
 ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:2104:26: error: incompatible type for argument 2 of ‘pci_map_page’
                          PCI_DMA_TODEVICE);
                          ^
In file included from /usr/src/linux-headers-3.13.0-30-generic/arch/x86/include/asm/pci.h:124:0,
                 from include/linux/pci.h:1501,
                 from /tmp/vmware-root/modules/vmxnet-only/./shared/compat_pci.h:27,
                 from /tmp/vmware-root/modules/vmxnet-only/vmxnet.c:31:
include/asm-generic/pci-dma-compat.h:43:1: note: expected ‘struct page *’ but argument is of type ‘struct <anonymous>’
 pci_map_page(struct pci_dev *hwdev, struct page *page,
 ^
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c: In function ‘vmxnet_rx_frags’:
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:2599:48: error: incompatible types when assigning to type ‘struct <anonymous>’ from type ‘struct page *’
          skb_shinfo(skb)->frags[numFrags].page = lp->rxPages[dd->rxDriverNext2];
                                                ^
make[2]: *** [/tmp/vmware-root/modules/vmxnet-only/vmxnet.o] Error 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmxnet-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-30-generic'
make: *** [vmxnet.ko] Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmxnet-only'

The fast network device driver (vmxnet module) is used only for our fast 
networking interface. The rest of the software provided by VMware Tools is 
designed to work independently of this feature.
If you wish to have the fast network driver enabled, you can install the driver
by running vmware-config-tools.pl again after making sure that gcc, binutils, 
make and the kernel sources for your running kernel are installed on your 
machine. These packages are available on your distribution's installation CD.
[ Press Enter key to continue ] 

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmblock-only'
make -C /lib/modules/3.13.0-30-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-30-generic'
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/block.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/control.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/dbllnklst.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/dentry.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/file.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/filesystem.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/inode.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/module.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/stubs.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/super.o
/tmp/vmware-root/modules/vmblock-only/linux/dentry.c:38:4: warning: initialization from incompatible pointer type [enabled by default]
    .d_revalidate = DentryOpRevalidate,
    ^
/tmp/vmware-root/modules/vmblock-only/linux/dentry.c:38:4: warning: (near initialization for ‘LinkDentryOps.d_revalidate’) [enabled by default]
/tmp/vmware-root/modules/vmblock-only/linux/dentry.c: In function ‘DentryOpRevalidate’:
/tmp/vmware-root/modules/vmblock-only/linux/dentry.c:104:7: warning: passing argument 2 of ‘actualDentry->d_op->d_revalidate’ makes integer from pointer without a cast [enabled by default]
       return actualDentry->d_op->d_revalidate(actualDentry, nd);
       ^
/tmp/vmware-root/modules/vmblock-only/linux/dentry.c:104:7: note: expected ‘unsigned int’ but argument is of type ‘struct nameidata *’
/tmp/vmware-root/modules/vmblock-only/linux/control.c: In function ‘SetupProcDevice’:
/tmp/vmware-root/modules/vmblock-only/linux/control.c:211:4: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
    controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME,
    ^
/tmp/vmware-root/modules/vmblock-only/linux/control.c:211:21: warning: assignment makes pointer from integer without a cast [enabled by default]
    controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME,
                     ^
/tmp/vmware-root/modules/vmblock-only/linux/control.c:221:20: error: dereferencing pointer to incomplete type
    controlProcEntry->proc_fops = &ControlFileOps;
                    ^
/tmp/vmware-root/modules/vmblock-only/linux/control.c: In function ‘ExecuteBlockOp’:
/tmp/vmware-root/modules/vmblock-only/linux/control.c:285:9: warning: assignment from incompatible pointer type [enabled by default]
    name = getname(buf);
         ^
/tmp/vmware-root/modules/vmblock-only/linux/control.c:296:4: warning: passing argument 1 of ‘putname’ from incompatible pointer type [enabled by default]
    putname(name);
    ^
In file included from include/linux/proc_fs.h:8:0,
                 from /tmp/vmware-root/modules/vmblock-only/linux/control.c:28:
include/linux/fs.h:2121:13: note: expected ‘struct filename *’ but argument is of type ‘char *’
 extern void putname(struct filename *name);
             ^
cc1: some warnings being treated as errors
make[2]: *** [/tmp/vmware-root/modules/vmblock-only/linux/control.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/vmware-root/modules/vmblock-only/linux/inode.c:49:4: warning: initialization from incompatible pointer type [enabled by default]
    .lookup = InodeOpLookup,
    ^
/tmp/vmware-root/modules/vmblock-only/linux/inode.c:49:4: warning: (near initialization for ‘RootInodeOps.lookup’) [enabled by default]
/tmp/vmware-root/modules/vmblock-only/linux/inode.c: In function ‘InodeOpLookup’:
/tmp/vmware-root/modules/vmblock-only/linux/inode.c:138:32: error: incompatible types when assigning to type ‘kgid_t’ from type ‘int’
    inode->i_uid = inode->i_gid = 0;
                                ^
/tmp/vmware-root/modules/vmblock-only/linux/inode.c: In function ‘InodeOpFollowlink’:
/tmp/vmware-root/modules/vmblock-only/linux/inode.c:224:4: error: implicit declaration of function ‘vfs_follow_link’ [-Werror=implicit-function-declaration]
    ret = vfs_follow_link(nd, iinfo->name);
    ^
cc1: some warnings being treated as errors
make[2]: *** [/tmp/vmware-root/modules/vmblock-only/linux/inode.o] Error 1
/tmp/vmware-root/modules/vmblock-only/linux/file.c:240:4: error: unknown field ‘readdir’ specified in initializer
    .readdir = FileOpReaddir,
    ^
/tmp/vmware-root/modules/vmblock-only/linux/file.c:240:4: warning: initialization from incompatible pointer type [enabled by default]
/tmp/vmware-root/modules/vmblock-only/linux/file.c:240:4: warning: (near initialization for ‘RootFileOps.owner’) [enabled by default]
make[2]: *** [/tmp/vmware-root/modules/vmblock-only/linux/file.o] Error 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmblock-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-30-generic'
make: *** [vmblock.ko] Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmblock-only'

The vmblock module enables dragging or copying files from within a host and 
dropping or pasting them onto your guest (host to guest drag and drop and file 
copy/paste).  The rest of the software provided by VMware Tools is designed to 
work independently of this feature (including guest to host drag and drop and 
file copy/paste).

If you would like the host to guest drag and drop and file copy/paste features,
you can install the driver by running vmware-config-tools.pl again after making
sure that gcc, binutils, make and the kernel sources for your running kernel 
are installed on your machine. These packages are available on your 
distribution's installation CD.
[ Press Enter key to continue ] 

!!! [EXPERIMENTAL] !!!
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot they are not already present.  By selecting yes,
you will be enabling this experimental feature.  You can always disable this
feature by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no] 

The file /usr/lib/vmware-tools/lib/libtpvmlpd2.so/libtpvmlpd2.so that this 
program was about to install already exists.  Overwrite? [yes] 


Disabling timer-based audio scheduling in pulseaudio.



Detected X server version 1.15.1



Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-30-generic
vmware-tools start/running
The configuration of VMware Tools 8.8.2 build-590212 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take 
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line or by invoking "/usr/bin/vmware-toolbox" from the command line 
during an X server session.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and 
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team
poloshiao 写了:
还是会有错误
你可以把 錯誤訊息 複製貼上來嗎
也許 錯誤還有別的原因造成的
例如
vmware-tools 還沒正確安裝
用最新的ubuntu最好也要用最新的vmware。
目前 VMware Player 官網支援 只有寫到 Ubuntu 13.10
http://partnerweb.vmware.com/GOSIG/Ubuntu_13_10.html
但是 我安裝在 Ubuntu 14.04 還沒碰到問題

進一步參閱
http://partnerweb.vmware.com/GOSIG/home.html
Guest Operating System Installation Guide
Linux Operating Systems
Ubuntu
Ubuntu 13.10
...
renever
帖子: 9
注册时间: 2008-07-28 21:44

Re: 求助:vmware tools装不上,编译有错

#7

帖子 renever » 2014-06-29 11:35

是这样吗?我看到google上有人在vmware8上装了ubuntu14,但似乎他没碰到我的问题。

另外,如果直接重新装个vmware10的话,现有的vmx直接就可以用吗?还是说又要重新装一遍ubuntu?
taohunter 写了:vmware不是一个版本永远支持最新的linux发行版的guest系统的,用最新的ubuntu最好也要用最新的vmware。

下载以下pdf,检查其中的vmware--ubuntu版本的支持关系,要确保正常使用ubuntu14.04,需要vmware10.0以上的版本(当然也包括对应版本的vmware-tools)。。。
http://partnerweb.vmware.com/comp_guide ... _Guide.pdf
http://kb.vmware.com/selfservice/micros ... Id=2073804
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求助:vmware tools装不上,编译有错

#8

帖子 poloshiao » 2014-06-29 13:32

以下是基於 vmware player 6.0.2 及其所附的 vmware tools iso 安裝筆記整理
matt@ubuntu:~/vmware-tools-distrib$ sudo ./vmware-install.pl -d
參閱
http://kb.vmware.com/selfservice/micros ... Id=1022525
這個指令 應該在 tty2 以 root 身份安裝
1. 啟動 virtual machine (guest) 以後 直到 登入畫面 (不必登入)
按一下 左上方 virtual machine / Enter Full Screen
2. 在 virtual machine (guest) 方框 按一下 滑鼠左鍵 (確保 3. 的動作被 virtual machine (guest) 捕捉到)
3. 按一下 alt + ctrl + F2 # 登入 tty2
4. 登入 非 root 帳號及密碼 (可以使用 sudo 的 非 root 帳號)
5. sudo stop lightdm # 把 tty7 關閉
6. su # 改為 root 登入 後面不須加 sudo
7. 掛載 vmwaretools-9.6.2-1688356.tar.gz / 解壓 / cd vmware-tools-distrib # 細節省略
8. ./vmware-install.pl -d # 依預設值安裝 vmware-tools
9. reboot
10. 使用 非 root 帳號及密碼 (可以使用 sudo 的 非 root 帳號) 登入 桌面
11. 從 終端機
sudo vmware-config-tools.pl -d
sudo reboot
12. 如果你已經設定分享目錄 重登入以後
從終端機
sudo ls -al /mnt
應該就可以看到
hgfs 目錄
sudo ls -al /mnt/hgfs
應該就可以看到分享的目錄名稱
13. 參考資料來源
vmware_player601.pdf
P32
Manually Install or Upgrade VMware Tools in a Linux Virtual Machine
10. Run the installer and configure VMware Tools.
Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running.
renever
帖子: 9
注册时间: 2008-07-28 21:44

Re: 求助:vmware tools装不上,编译有错

#9

帖子 renever » 2014-06-29 14:59

谢谢你好心人。

但是我试了依旧没用,在tty2中编译还是有问题的,猜测是内核升级后,有些变量名,类型名发生变化了的缘故。

另外我用的是 vmware workstation 8.0.3,自带的vmware tools是8.8.2,你引用的文章是vmware player的,也许两者有所不同。

poloshiao 写了:以下是基於 vmware player 6.0.2 及其所附的 vmware tools iso 安裝筆記整理
matt@ubuntu:~/vmware-tools-distrib$ sudo ./vmware-install.pl -d
參閱
http://kb.vmware.com/selfservice/micros ... Id=1022525
這個指令 應該在 tty2 以 root 身份安裝
1. 啟動 virtual machine (guest) 以後 直到 登入畫面 (不必登入)
按一下 左上方 virtual machine / Enter Full Screen
2. 在 virtual machine (guest) 方框 按一下 滑鼠左鍵 (確保 3. 的動作被 virtual machine (guest) 捕捉到)
3. 按一下 alt + ctrl + F2 # 登入 tty2
4. 登入 非 root 帳號及密碼 (可以使用 sudo 的 非 root 帳號)
5. sudo stop lightdm # 把 tty7 關閉
6. su # 改為 root 登入 後面不須加 sudo
7. 掛載 vmwaretools-9.6.2-1688356.tar.gz / 解壓 / cd vmware-tools-distrib # 細節省略
8. ./vmware-install.pl -d # 依預設值安裝 vmware-tools
9. reboot
10. 使用 非 root 帳號及密碼 (可以使用 sudo 的 非 root 帳號) 登入 桌面
11. 從 終端機
sudo vmware-config-tools.pl -d
sudo reboot
12. 如果你已經設定分享目錄 重登入以後
從終端機
sudo ls -al /mnt
應該就可以看到
hgfs 目錄
sudo ls -al /mnt/hgfs
應該就可以看到分享的目錄名稱
13. 參考資料來源
vmware_player601.pdf
P32
Manually Install or Upgrade VMware Tools in a Linux Virtual Machine
10. Run the installer and configure VMware Tools.
Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running.
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求助:vmware tools装不上,编译有错

#10

帖子 poloshiao » 2014-06-29 16:25

我用的是 vmware workstation 8.0.3
https://www.vmware.com/support/ws80/doc ... n_803.html
https://www.vmware.com/pdf/vmware-tools ... ration.pdf
P22
Manually Install or Upgrade VMware Tools in a Linux Virtual Machine
./vmware-install.pl
Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running.
內容與 vmware player 一樣
renever
帖子: 9
注册时间: 2008-07-28 21:44

Re: 求助:vmware tools装不上,编译有错

#11

帖子 renever » 2014-06-29 16:31

我可恥地當了逃兵了直接裝了個vmware10.0.2,什麼問題也沒有了。 :em06

當然又是盜版,希望vmware看在八國聯軍的份上不會與我計較,阿彌陀佛。
poloshiao 写了:
我用的是 vmware workstation 8.0.3
https://www.vmware.com/support/ws80/doc ... n_803.html
https://www.vmware.com/pdf/vmware-tools ... ration.pdf
P22
Manually Install or Upgrade VMware Tools in a Linux Virtual Machine
./vmware-install.pl
Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running.
內容與 vmware player 一樣
taohunter
帖子: 1555
注册时间: 2012-03-31 3:29

Re: 求助:vmware tools装不上,编译有错

#12

帖子 taohunter » 2014-06-29 16:53

renever 写了:我可恥地當了逃兵了直接裝了個vmware10.0.2,什麼問題也沒有了。 :em06

當然又是盜版,希望vmware看在八國聯軍的份上不會與我計較,阿彌陀佛。
poloshiao 写了:
我用的是 vmware workstation 8.0.3
https://www.vmware.com/support/ws80/doc ... n_803.html
https://www.vmware.com/pdf/vmware-tools ... ration.pdf
P22
Manually Install or Upgrade VMware Tools in a Linux Virtual Machine
./vmware-install.pl
Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running.
內容與 vmware player 一樣
大型软件有一般都有兼容性列表的,版本更新时产生奇怪问题,第一条就应该考虑去看软件的release notes或support matrix。

另外,其实虚拟机装ubuntu用免费的virtualbox就足够好了。。。
三年后终于回到16.04--稳定了!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求助:vmware tools装不上,编译有错

#13

帖子 poloshiao » 2014-06-29 20:12

新安装ubuntu14.04
直接裝了個vmware10.0.2,什麼問題也沒有了。
http://www.vmware.com/resources/compati ... tConfig=16
VMware Compatibility Guide
Guest : Ubuntu 14.04

图片

Compatible : VMware Station : 10

图片
回复