歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 14.04 中安裝 VMware10 Tools工具

Ubuntu 14.04 中安裝 VMware10 Tools工具

日期:2017/2/28 14:32:11   编辑:Linux教程

幾天一直因為裝不上vm tools而苦惱,其實有其他的替代方案,只是搞不定的話心裡一直有個疙瘩

之前使用的是VMware7裝的Ubuntu14.04 64位的,安裝vm tools時錯誤一大堆,查了很多資料無果,只能使用共享剪貼板功能,我的目標是需要開啟共享文件夾

今天上午搜了一下最新版的VMware,找到了10,而且是中文版,便裝上打算再試試,裝完後,之前VMware7報的那些錯誤倒是沒有了,反而有幾個新錯誤,而且安裝完之後連最基本的共享剪貼板功能都沒有了,繼續查資料,終於在google中找到了答案

--------------------------------------分割線 --------------------------------------

推薦更新文章:2016年4月29更新

VMware虛擬機 Ubuntu 16.04 安裝 VMware Tools http://www.linuxidc.com/Linux/2016-04/130807.htm

在安裝之前先解決這篇文章的問題,安裝 VMware Tools 時報 客戶機操作系統已將 CD-ROM 門鎖定,並且可能正在使用CD-ROM 見 http://www.linuxidc.com/Linux/2016-04/130806.htm

--------------------------------------分割線 --------------------------------------

1 - Run: apt-get install dkms linux-headers-$(uname -r) build-essential psmisc
2 - Run: git clone https://github.com/rasa/vmware-tools-patches.git
3 - Run: cd vmware-tools-patches/patches
4 - Remove every folder except "vmhgfs".
5 - Get the last version of VMwareTools clicking on VMWare Bar > VM > Install/Reinstall VMWare Tools. It will open a virtual CD containing the "tar" file.
6 - Copy VMwareTools-9.2.4-1398046.tar.gz to "vmware-tools-patches" folder.
7 - On "vmware-tools-patches" folder, run: ./untar-and-patch-and-compile.sh

重新啟動後,分辨率可自適應,剪貼板可正常使用,輸入lsmod | grep vm可看到vmhgfs,但是在共享目錄也就是/mnt/hgfs中,提示該文件夾不是目錄

在網上查說是VMware10的Bug,在10.0.2版本中修復了,正在下載,明日再試。

重新啟動後,分辨率可自適應,剪貼板可正常使用,輸入lsmod | grep vm可看到vmhgfs,但是在共享目錄也就是/mnt/hgfs中,提示該文件夾不是目錄

在網上查說是VMware10的Bug,在10.0.2版本中修復了,正在下載,明日再試。

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-24-generic
initctl:未知任務: vmware-tools-thinprint
Unable to start services for VMware Tools

Execution aborted.

一盆冷水啊,查了一些資料,跟打印有關,反正我也不用打印功能,干脆刪掉吧

root@ www.linuxidc.com:/etc/init# rm vmware-tools-thinprint.conf

重新啟動服務

root@ www.linuxidc.com:/etc/vmware-tools# ./services.sh restart
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: done
VMware User Agent (vmware-user): done
Blocking file system: done
Unmounting HGFS shares: done
Guest filesystem driver: done
VM communication interface: done
Checking acpi hot plug done
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: done
VM communication interface: done
Guest filesystem driver: done
Mounting HGFS shares: done
Blocking file system: done
VMware User Agent: done
Guest operating system daemon: done

查看共享目錄

root@ www.linuxidc.com:/etc/vmware-tools# df
文件系統 1K-blocks 已用 可用 已用% 掛載點
/dev/sda1 19478204 4487716 13978008 25% /
none 4 0 4 0% /sys/fs/cgroup
udev 1010624 4 1010620 1% /dev
tmpfs 204276 1072 203204 1% /run
none 5120 0 5120 0% /run/lock
none 1021364 152 1021212 1% /run/shm
none 102400 56 102344 1% /run/user
/dev/sr0 61542 61542 0 100% /media/yufan/VMware Tools
.host:/ 186165244 47665228 138500016 26% /mnt/hgfs
root@ www.linuxidc.com:/etc/vmware-tools# cd /mnt/hgfs
root@ www.linuxidc.com:/mnt/hgfs# ls
WindowsShare
root@ www.linuxidc.com:/mnt/hgfs# cd WindowsShare/
root@ www.linuxidc.com:/mnt/hgfs/WindowsShare# ls
abc 啦啦啦德瑪西亞.txt

終於搞定了!
-----------------------------------------------------
sudo mount -t vmhgfs .host:/ /mnt/hgfs
vmware-hgfsclient.host:/shared /home/pnuts/shared vmhgfs defaults 0 0

Ubuntu 12.04下安裝VMware Tools http://www.linuxidc.com/Linux/2012-05/60472p2.htm

更多Ubuntu相關信息見Ubuntu 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=2

Copyright © Linux教程網 All Rights Reserved