linux安裝vm tools

Linux VMware Tools安裝步驟簡易版Linux VMware Tools安裝估計有點困難,我也在網上看了好多版本的Linux安裝VMware Tools,方法都同樣。可是本身在安裝過程當中,仍是遇到了點問題。可是最終仍是搞定。我運行的是VMware workstation 8.0.4 , OS: CentOS 6.0
1. 在CD-ROM虛擬光驅中選擇使用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. 掛載光驅:Mount -t iso9660 /dev/cdrom /mnt
加載CDROM設備,這是若是進入/mnt 目錄下,你會發現一個文件:
VMwareTools-8.8.4-743747.tar.gz
這個就死VMware Tools的Linux軟件包,也是咱們剛纔使用的WinISO打開的Liunx.ISO
有的虛擬機上估計執行mount /dev/cdrom /mnt/cdrom
若是提示以下錯誤,掛載點不存在。,[root@localhost /]#mount /dev/cdrom /mnt/cdrom                             mount: mount point /mnt/cdrom dose not exist
請直接執行此命令:
   mount /dev/cdrom /opt     cd /opt或者應該可使用自動掛載,直接進入     cd /misc/cd
5. copy 此文件到臨時文件夾
  cp /mnt/mVMwareTools-8.8.4-743747.tar.gz /tmp
6. 卸載CDROM,執行 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  執行安裝,
安裝過程當中他會一步一步的有問題迴應,此過程當中,你遇到後面顯示[yes],[no],[yes][no]的直接輸入yes,而後回車。其餘的問題無論[]裏面是什麼,直接回車就行了,不要輸入。
9. 大約5分鐘左右安裝完成。 執行init 6重啓ok。
Linux VMware Tools安裝步驟圖文版,你們能夠參考下
操做過程以下:
[root@localhost ~]# cd /[root@localhost /]# lsbin   dev home lost+found misc net proc sbin     srv tftpboot usrboot etc lib   media       mnt   opt root selinux sys tmp       var[root@localhost /]# cd /media[root@localhost media]# lsVMware Tools[root@localhost media]# cd VMware\ Tools/[root@localhost VMware Tools]# lsmanifest.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]# lsgconfd-root                                 scim-helper-manager-socket-rootkeyring-lbbFvv                              scim-panel-socket:0-rootmapping-root                                scim-socket-frontend-rootorbit-root                                  ssh-FmnVlj2751scim-bridge-0.3.0.lockfile-0@localhost:0.0 virtual-root.ZxmHUVscim-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]# lsgconfd-root                                 scim-panel-socket:0-rootkeyring-lbbFvv                              scim-socket-frontend-rootmapping-root                                ssh-FmnVlj2751orbit-root                                  virtual-root.ZxmHUVscim-bridge-0.3.0.lockfile-0@localhost:0.0 VMwareTools-8.1.3-203739.tar.gzscim-bridge-0.3.0.socket-0@localhost:0.0    vmware-tools-distribscim-helper-manager-socket-root[root@localhost tmp]# cd vmware-tools-distrib/[root@localhost vmware-tools-distrib]# lsbin 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 thatcreates 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.1Release Date: 12 May 2006X Protocol Version 11, Revision 0, Release 7.1.1Build 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 i686Build Date: 22 July 2009Build ID: xorg-x11-server 1.1.1-48.67.el5 Before reporting problems, check http://wiki.x.orgto make sure that you have the latest version.Module Loader presentMarkers: (--) 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 fieldsErrors from xkbcomp are not fatal to the X serverX 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 runningkernel 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-user2. 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 stoprmmod pcnet32rmmod vmxnetmodprobe vmxnet/etc/init.d/network startEnjoy,--the VMware teamFound VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device /dev/hdc ...[root@localhost vmware-tools-distrib]# 



  1、安裝VMtoolslinux

點擊VMware菜單的——虛擬機——安裝VMwareTools,在彈出的對話框中選擇「安裝」。這時,在Ubuntu下會自動加載Linux版的VMwareTools的安裝光盤鏡像。你會看到虛擬機的桌面上出現了一個名爲VMwareTools的光盤圖標,而且被自動打開。其中包括VMwareTools-5.3.3-34685-i386.rpm和VMwareTools-5.3.3-34685.tar.gz兩個文件。windows

 

.rpm文件是給Red Hat準備的,咱們只須要.tar.gz的那個,並把它拷貝到一個文件夾中(由於光驅是不可寫的)。session

 

$ tar zxf VMwareTools-5.3.3-34685.tar.gz(回車後系統會把那個.tar.gz文件解壓縮) 

$ cd vmware-tools-distrib(回車後目錄將轉換到解壓縮後的那個文件夾) 

$ sudo ./vmware-install.pl(回車後會提示輸入你的密碼,代表你將以更高級權限執行一個動做——安裝軟件;再次回車後安裝開始) 

通過一番確認回車後(至關於在Windows裏安裝軟件時所填答的諸多對話框,咱們這裏均採用缺省設置),直到最後出現「Enjoy——the VMware team」的字樣後,VMwareTools終於安裝完成了。 

若是你使用的是VMware Workstation 6.0.0,如今你應該已經能看到VMwareTools安裝後的效果了:鼠標不再須要用Ctrl+Alt切換於虛擬與現實之間,一切過渡得那麼天然;虛擬機的分辨率也能依窗口的大小來自動適應,一切顯得那樣和諧。但咱們這裏使用的是VMware Workstation 5.5.3,因此暫時你還看不到什麼,讓咱們來作一下最後的設置吧。 

在VMware Workstation 5.5.3裏,Ubuntu下的VMware Tools安裝以後是要靠手動執行/usr/bin/vmware-toolbox才能顯示出效果的。你能夠經過在終端中輸入以下命令來運行它: 

$ /usr/bin/vmware-toolbox 

但若是你嫌麻煩,咱們就須要讓vmware-toolbox實現開機自動運行。點擊Ubuntu菜單:System——首選項——會話——StartupPrograms,Add一個Name叫「vmware-toolbox」,Command是「/usr/bin/vmware-toolbox」的啓動程序。這樣每次開機後就能自動運行VMwareTools了。重啓Ubuntu看看效果吧!(注意:vmware-toolbox並非在後臺隱藏運行的,啓動後不要關閉) 

25.PNG 

VMware Tools當然是個好東西,但也有反作用,好比說:虛擬機中的鼠標的滾輪很差使了。咱們這樣解決這個問題,仍是打開終端,輸入: 

$ sudo gedit /etc/X11/xorg.conf 

這個命令使系統以root權限打開鼠標配置文件/etc/X11/xorg.conf。把文件中的 

Option 「Protocol」 「ps/2」 

改爲 

Option 「Protocol」 「IMPS/2」app

重啓Ubuntu搞定。frontend

 

 

 2、設置分辨率:dom

        一、cd /usr/binssh

        使用此命令,進入/usr/bin目錄;socket

        二、ls *.plide

        使用此命令,查找vmware-config-tools.pl文件;ui

        三、./vmware-config-tools.pl

        運行vmware-config-tools.pl文件;

        四、設置分辨率

        輸入相應的數字回車便可,感受設置的與原系統同樣就能夠了;

        五、重啓虛擬機。

 

 

3、壓縮虛擬機空間

 

虛擬機隨着使用,空間會愈來愈大,並且就算刪掉了其中的文件,空間也不會減小,能夠用vmware tools 的shrink, 執行 vmware-toolbox,而後用shrink進行壓縮就能夠了,效果挺不錯的,不過期間有點長。

相關文章
相關標籤/搜索