虛擬機中的Linux安裝VMware Tools的方法

Linux VMware Tools安裝步驟簡易版
Linux VMware Tools安裝估計有點困難,我也在網(wǎng)上看了好多版本的Linux安裝VMware Tools,方法都一樣。但是自己在安裝過程中,還是遇到了點問題。但是最終還是搞定。我運行的是VMware workstation 8.0.4 , OS: CentOS 6.0
1. 在CD-ROM虛擬光驅(qū)中選擇使用ISO鏡像,找到VMWARE TOOLS 安裝文件,如C:\program\VMware\VMware Workstation\Programs\linux.iso
當然這個ISO是你安裝VMware workstation 的目錄下的Linux.iso,不是你的Linux OS 鏡像文件。VMware Tools一般都在這個文件里。
2. 以管理員身份進入Linux,root賬號
3. 退出到windows,在虛擬機菜單欄中點擊 虛擬機-> 安裝 VMWARE TOOLS 子菜單,會彈出對話框,點擊"確認" 安裝
4. 掛載光驅(qū):Mount -t iso9660 /dev/cdrom /mnt
加載CDROM設(shè)備,這是如果進入/mnt 目錄下,你會發(fā)現(xiàn)一個文件:
VMwareTools-8.8.4-743747.tar.gz
這個就死VMware Tools的Linux軟件包,也是我們剛才使用的WinISO打開的Liunx.ISO
有的虛擬機上估計執(zhí)行mount /dev/cdrom /mnt/cdrom
如果提示如下錯誤,掛載點不存在。,[root@localhost /]#mount /dev/cdrom /mnt/cdrom
mount: mount point /mnt/cdrom dose not exist
請直接執(zhí)行此命令:
mount /dev/cdrom /opt
cd /opt
或者應(yīng)該可以使用自動掛載,直接進入
cd /misc/cd
5. copy 此文件到臨時文件夾
cp /mnt/mVMwareTools-8.8.4-743747.tar.gz /tmp
6. 卸載CDROM,執(zhí)行 umount /dev/cdrom
7. 進入tmp文件目錄并解壓此文件包
cd /tmp
tar zxf vmware-linux-tools.tar.gz
解壓默認到vmware-tools-distrib目錄下:此時你可以使用ls -ll 查看文件夾下的文件
8. 進入vmware-tools-distrib,安裝vmware tools.
./vmware-install.pl 執(zhí)行安裝,
安裝過程中他會一步一步的有問題回應(yīng),此過程中,你遇到后面顯示[yes],[no],[yes][no]的直接輸入yes,然后回車。其他的問題不管[]里面是什么,直接回車就好了,不要輸入。
9. 大約5分鐘左右安裝完成。 執(zhí)行init 6重啟ok。
Linux VMware Tools安裝步驟圖文版,大家可以參考下
操作過程如下:
[root@localhost ~]# cd /
[root@localhost /]# ls
bin dev home lost+found misc net proc sbin srv tftpboot usr
boot etc lib media mnt opt root selinux sys tmp var
[root@localhost /]# cd /media
[root@localhost media]# ls
VMware Tools
[root@localhost media]# cd VMware\ Tools/
[root@localhost VMware Tools]# ls
manifest.txt VMwareTools-8.1.3-203739.tar.gz
[root@localhost VMware Tools]# cp VMwareTools-8.1.3-203739.tar.gz /tmp
[root@localhost VMware Tools]# cd /tmp
[root@localhost tmp]# ls
gconfd-root scim-helper-manager-socket-root
keyring-lbbFvv scim-panel-socket:0-root
mapping-root scim-socket-frontend-root
orbit-root ssh-FmnVlj2751
scim-bridge-0.3.0.lockfile-0@localhost:0.0 virtual-root.ZxmHUV
scim-bridge-0.3.0.socket-0@localhost:0.0 VMwareTools-8.1.3-203739.tar.gz
[root@localhost tmp]# tar -zxf VMwareTools-8.1.3-203739.tar.gz
[root@localhost tmp]# ls
gconfd-root scim-panel-socket:0-root
keyring-lbbFvv scim-socket-frontend-root
mapping-root ssh-FmnVlj2751
orbit-root virtual-root.ZxmHUV
scim-bridge-0.3.0.lockfile-0@localhost:0.0 VMwareTools-8.1.3-203739.tar.gz
scim-bridge-0.3.0.socket-0@localhost:0.0 vmware-tools-distrib
scim-helper-manager-socket-root
[root@localhost tmp]# cd vmware-tools-distrib/
[root@localhost vmware-tools-distrib]# ls
bin doc etc FILES INSTALL installer lib vmware-install.pl
[root@localhost vmware-tools-distrib]# ./vmware-install.pl
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] yes
The path "yes" is a relative path. Please enter an absolute path.
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/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/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]
The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]
yes
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path "yes" is a relative path. Please enter an absolute path.
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.1.3 build-203739 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]
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [確定]
Virtual Printing daemon: [確定]
Unmounting HGFS shares: [確定]
Guest filesystem driver: [確定]
Found a compatible pre-built module for vmmemctl. Installing it...
Found a compatible pre-built module for vmhgfs. Installing it...
Found a compatible pre-built module for vmxnet. Installing it...
Found a compatible pre-built module for vmblock. Installing it...
[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]
Found a compatible pre-built module for vmci. Installing it...
Found a compatible pre-built module for vsock. Installing it...
Found a compatible pre-built module for vmxnet3. Installing it...
Found a compatible pre-built module for pvscsi. Installing it...
Detected X.org version 7.1.
Host resolution detected as "1440 x 900".
Please choose one of the following display sizes that X will start with:
[1] "320x200"
[2] "320x240"
[3] "400x300"
[4] "512x384"
[5] "640x400"
[6] "640x480"
[7] "720x480"
[8] "800x480"
[9] "854x480"
[10] "720x576"
[11] "800x600"
[12] "1024x768"
[13] "1280x720"
[14] "1280x768"
[15] "1152x864"
[16] "1280x800"
[17]< "1366x768"
Please enter a number between 1 and 17:
[17] 12
X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.18-128.1.16.el5 i686 Red Hat, Inc.
Current Operating System: Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686
Build Date: 22 July 2009
Build ID: xorg-x11-server 1.1.1-48.67.el5
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.16172", Time: Thu Apr 1 02:40:28 2010
(++) Using config file: "/tmp/vmware-config0/XF86Config.16172"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Multiple symbols for level 1/group 1 on key <I5F>
> Using XF86Sleep, ignoring XF86Standby
> Warning: Symbol map for key <I5F> redefined
> Using last definition for conflicting fields
Errors from xkbcomp are not fatal to the X server
X is running fine with the new config file.
FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
Creating a new initrd boot image for the kernel.
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [確定]
Paravirtual SCSI module: [確定]
Guest filesystem driver: [確定]
Mounting HGFS shares: [失敗]
Guest memory manager: [確定]
Guest vmxnet fast network device: [確定]
VM communication interface: [確定]
VM communication interface socket family: [確定]
Blocking file system: [確定]
File system sync driver: [確定]
Guest operating system daemon: [確定]
Virtual Printing daemon: [確定]
The configuration of VMware Tools 8.1.3 build-203739 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 the following command:
"/usr/bin/vmware-toolbox" 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.
To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start
Enjoy,
--the VMware team
Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
/dev/hdc ...
[root@localhost vmware-tools-distrib]#
相關(guān)文章
VMware Workstation Pro14虛擬機破解版安裝破解教程(附破解下載)
VMware Workstation Pro 14桌面虛擬機軟件兼容win7、win8、win10等操作系統(tǒng),且支持Linux、Unix等操作系統(tǒng)的安裝測試,新版本增強了對 Windows 10 創(chuàng)意者的支持以及Ubuntu2017-09-29Vmware Player14虛擬機中文安裝+破解詳細教程(免密鑰+破解下載)
VMware Player 14是一款非常實用的虛擬機系統(tǒng),基于VMware Pro 14版本打造,完美支持最近的Windows10系統(tǒng),還提供Ubuntu 17.04以Fedora 26等Linux的支持,本文下面就帶來了2017-09-30VMware 已將該虛擬機配置為使用 64 位客戶機操作系統(tǒng)。但是,無法執(zhí)行
這篇文章主要介紹了VMware 已將該虛擬機配置為使用 64 位客戶機操作系統(tǒng)。但是,無法執(zhí)行 64 位操作的解決方法,需要的朋友可以參考下2016-09-16VMware Workstation 12永久密鑰 VMware Workstation 12下載注冊問題匯
VMware Workstation 12是一款功能最強大的虛擬機軟件,VMware v11官方開始已經(jīng)拋棄了對32位系統(tǒng)支持,安裝包體積從而大幅減小,進行開發(fā)、測試、演示和部署軟件2015-12-09- Mac平臺的虛擬機軟件VMware今天推出了最新版本VMware Fusion 8,VMware Fusion 8可以完整支持 Windows 10、OS X El Capitan 和最新的 Retina Mac 產(chǎn)品,當然還支持微軟的 C2015-08-27
Vmware虛擬機下Ubuntu上網(wǎng)設(shè)置方法圖文詳解
Vmware虛擬機下Ubuntu系統(tǒng)如何設(shè)置上網(wǎng)呢?有些朋友“虛擬機”安裝了ubuntu后無法上網(wǎng),如何解決呢?針對此問題,本文就為大家圖文詳細介紹Vmware虛擬機下Ubuntu上網(wǎng)設(shè)置方2015-03-16vmware workstation11.0虛擬機安裝win10圖文教程
vmware workstation11.0正式發(fā)布啦,而且最新版還能支持win10系統(tǒng),今天小編就教大家vmware11虛擬機安裝win10的教程2014-12-04在VMware虛擬機中安裝中文版Win7系統(tǒng)詳細教程 附虛擬機下載
虛擬機有好多種的,現(xiàn)在虛擬機的作用顯得越來越重要了,對大眾來說。在不改變原系統(tǒng)的情況下,我們還可以用虛擬機來安裝其他的操作系統(tǒng)。本篇文章介紹的就是在vmware虛擬機2015-05-12VMware Workstation 無法將網(wǎng)絡(luò)更改為橋接狀態(tài)解決方法
最近一個朋友安裝了一臺VMware Workstation,但是發(fā)現(xiàn)無法使用橋接模式,橋接模式報錯:無法將網(wǎng)絡(luò)更改為橋接狀態(tài):沒有未橋接的主機網(wǎng)絡(luò)適配器2012-12-23利用Update Manager將VMware ESXi 5.1 U2升級到ESXi 6.5 Update1詳細教
vSphere5.1不支持直接升級至ESXi 6.5,本次將先升級至5.5 U3,再從5.5.U3升級至6.5 U1,下面就詳情來看看如將vSphere5.1升級到6.5版本的具體操作方法,希望對大家有幫助2018-05-11