解决Linux安装 VMware tools 工具的方法
一:启动linux服务器,并用远程登录工具访问linux服务器
1:启动系统
2:用服务器控制台 :查看点ip地址
3:用客户端 连接服务器
二:挂起 vm虚拟机的 tools 安装光盘
三:开始进行tools工具的安装步骤
1:挂载 光盘
1 [root@oracleServerFrist ~]# cd /mnt/cdrom 2 -bash: cd: /mnt/cdrom: No such file or directory 3 [root@oracleServerFrist ~]# mkdir /mnt/cdrom 4 [root@oracleServerFrist ~]# mount /dev/cdrom /mnt/cdrom 5 mount: block device /dev/cdrom is write-protected, mounting read-only 6 [root@oracleServerFrist ~]# 7
2:进入光盘,并把安装包拷贝出来放到 /home/temp 目录下
1:进入光盘
1 [root@oracleServerFrist ~]# cd /mnt/cdrom 2 [root@oracleServerFrist cdrom]# pwd 3 /mnt/cdrom 4 [root@oracleServerFrist cdrom]# ls 5 manifest.txt VMwareTools-10.1.6-5214329.tar.gz vmware-tools-upgrader-64 6 run_upgrader.sh vmware-tools-upgrader-32 7 [root@oracleServerFrist cdrom]#2: 进行安装包的拷贝
1 [root@oracleServerFrist home]# cd /home/ 2 [root@oracleServerFrist home]# ls 3 oracle 4 [root@oracleServerFrist home]# pwd 5 /home 6 [root@oracleServerFrist home]# mkdir /home/temp 7 [root@oracleServerFrist home]# ls 8 oracle temp 9 [root@oracleServerFrist home]# cd temp 10 [root@oracleServerFrist temp]# ls 11 [root@oracleServerFrist temp]# cp /mnt/cdrom/VMwareTools-10.1.6-5214329.tar.gz /home/temp/ 12 [root@oracleServerFrist temp]# ls 13 VMwareTools-10.1.6-5214329.tar.gz 14 [root@oracleServerFrist temp]#
3:解压安装包,并进行安装
1:进行压缩包解压
1 [root@localhost cdrom]# cd /tmp/ 2 [root@localhost tmp]# tar zxvf VMwareTools-6.5.0-118166.tar.gz //解压文件2:进行安装文件的启动
1 [root@oracleServerFrist temp]# ls 2 VMwareTools-10.1.6-5214329.tar.gz vmware-tools-distrib 3 [root@oracleServerFrist temp]# cd vmware-tools-distrib/ 4 [root@oracleServerFrist vmware-tools-distrib]# ls 5 bin caf doc etc FILES INSTALL installer lib vgauth vmware-install.pl 6 [root@oracleServerFrist vmware-tools-distrib]# ./vmware-install.pl3:以下是安装执行过程。基本是一路回车键按到北
1 [root@oracleServerFrist vmware-tools-distrib]# ./vmware-install.pl 2 A previous installation of VMware Tools has been detected. 3 4 The previous installation was made by the tar installer (version 4). 5 6 Keeping the tar4 installer database format. 7 8 You have a version of VMware Tools installed. Continuing this install will 9 first uninstall the currently installed version. Do you wish to continue? 10 (yes/no) [yes] 11 12 Uninstalling the tar installation of VMware Tools. 13 14 Stopping services for VMware Tools 15 16 Skipping VMware Tools services shutdown on the host:[ OK ] 17 18 19 The removal of VMware Tools 10.1.6 build-5214329 for Linux completed 20 successfully. 21 22 Installing VMware Tools. 23 24 In which directory do you want to install the binary files? 25 [/usr/bin] 26 27 What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 28 [/etc/rc.d] 29 30 What is the directory that contains the init scripts? 31 [/etc/rc.d/init.d] 32 33 In which directory do you want to install the daemon files? 34 [/usr/sbin] 35 36 In which directory do you want to install the library files? 37 [/usr/lib/vmware-tools] 38 39 The path "/usr/lib/vmware-tools" does not exist currently. This program is 40 going to create it, including needed parent directories. Is this what you want? 41 [yes] 42 43 44 In which directory do you want to install the common agent library files? 45 [/usr/lib] 46 In which directory do you want to install the common agent transient files? 47 [/var/lib] 48 49 In which directory do you want to install the documentation files? 50 [/usr/share/doc/vmware-tools] 51 52 The path "/usr/share/doc/vmware-tools" does not exist currently. This program 53 is going to create it, including needed parent directories. Is this what you 54 want? [yes] 55 56 The installation of VMware Tools 10.1.6 build-5214329 for Linux completed 57 successfully. You can decide to remove this software from your system at any 58 time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl". 59 60 Before running VMware Tools for the first time, you need to configure it by 61 invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want 62 this program to invoke the command for you now? [yes] 63 64 Initializing... 65 66 67 Making sure services for VMware Tools are stopped. 68 69 Stopping Thinprint services in the virtual machine: 70 Stopping Virtual Printing daemon: done 71 Stopping VMware Tools services in the virtual machine: 72 Guest operating system daemon:[ OK ] 73 VGAuthService:[ OK ] 74 VMware User Agent (vmware-user):[ OK ] 75 Blocking file system:[ OK ] 76 Unmounting HGFS shares:[ OK ] 77 Guest filesystem driver:[ OK ] 78 Guest memory manager:[ OK ] 79 VM communication interface socket family:[ OK ] 80 VM communication interface:[ OK ] 81 File system sync driver:[ OK ] 82 83 84 The VMware FileSystem Sync Driver (vmsync) allows external third-party backup 85 software that is integrated with vSphere to create backups of the virtual 86 machine. Do you wish to enable this feature? [yes] 87 88 Found a compatible pre-built module for vmsync. Installing it... 89 90 91 Found a compatible pre-built module for vmci. Installing it... 92 93 94 Found a compatible pre-built module for vsock. Installing it... 95 96 97 Found a compatible pre-built module for vmxnet3. Installing it... 98 99 100 Found a compatible pre-built module for pvscsi. Installing it... 101 102 103 Found a compatible pre-built module for vmmemctl. Installing it... 104 105 106 The VMware Host-Guest Filesystem allows for shared folders between the host OS 107 and the guest OS in a Fusion or Workstation virtual environment. Do you wish 108 to enable this feature? [yes] 109 110 Found a compatible pre-built module for vmhgfs. Installing it... 111 112 113 Found a compatible pre-built module for vmxnet. Installing it... 114 115 116 The vmblock enables dragging or copying files between host and guest in a 117 Fusion or Workstation virtual environment. Do you wish to enable this feature? 118 [yes] 119 120 Found a compatible pre-built module for vmblock. Installing it... 121 122 123 VMware automatic kernel modules enables automatic building and installation of 124 VMware kernel modules at boot that are not already present. This feature can 125 be enabled/disabled by re-running vmware-config-tools.pl. 126 127 Would you like to enable VMware automatic kernel modules? 128 [yes] 129 130 Thinprint provides driver-free printing. Do you wish to enable this feature? 131 [yes] 132 133 Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed 134 if you want to enable Common Agent (caf). [yes] 135 136 137 138 Detected X version 7.1 139 140 141 142 Do you want to change the starting screen display size? (yes/no) [no] yes 143 144 145 Unable to detect guest resolution. 146 147 148 Please choose one of the following display sizes that X will start with: 149 150 [1]< 640x480 151 [2] 800x600 152 [3] 1024x768 153 [4] 1280x800 154 Please enter a number between 1 and 4: 155 156 [1] 3 157 158 159 X is running fine with the new config file. 160 161 Creating a new initrd boot image for the kernel. 162 163 NOTE: both /etc/vmware-tools/GuestProxyData/server/key.pem and 164 /etc/vmware-tools/GuestProxyData/server/cert.pem already exist. 165 They are not generated again. To regenerate them by force, 166 use the "vmware-guestproxycerttool -g -f" command. 167 168 Starting Virtual Printing daemon: done 169 Checking acpi hot plug[ OK ] 170 Starting VMware Tools services in the virtual machine: 171 Switching to guest configuration:[ OK ] 172 VMware Automatic Kmods:[ OK ] 173 Paravirtual SCSI module:[ OK ] 174 Guest memory manager:[ OK ] 175 VM communication interface:[ OK ] 176 VM communication interface socket family:[ OK ] 177 Guest filesystem driver:[ OK ] 178 Mounting HGFS shares:[FAILED] 179 Blocking file system:[ OK ] 180 VMware User Agent:[ OK ] 181 File system sync driver:[ OK ] 182 Guest operating system daemon:[ OK ] 183 VGAuthService:[ OK ] 184 The configuration of VMware Tools 10.1.6 build-5214329 for Linux for this 185 running kernel completed successfully. 186 187 You must restart your X session before any mouse or graphics changes take 188 effect. 189 190 You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the 191 command line. 192 193 To enable advanced X features (e.g., guest resolution fit, drag and drop, and 194 file and text copy/paste), you will need to do one (or more) of the following: 195 1. Manually start /usr/bin/vmware-user 196 2. Log out and log back into your desktop session 197 3. Restart your X session. 198 199 Enjoy, 200 201 --the VMware team 202 203 Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device 204 /dev/scd0 ... 205 Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/cdrom ... 206 [root@oracleServerFrist vmware-tools-distrib]#执行完毕后 系统会自动重启的。
为人:谦逊、激情、博学、审问、慎思、明辨、 笃行
学问:纸上得来终觉浅,绝知此事要躬行
为事:工欲善其事,必先利其器。
态度:道阻且长,行则将至;行而不辍,未来可期
.....................................................................
------- 桃之夭夭,灼灼其华。之子于归,宜其室家。 ---------------
------- 桃之夭夭,有蕡其实。之子于归,宜其家室。 ---------------
------- 桃之夭夭,其叶蓁蓁。之子于归,宜其家人。 ---------------
=====================================================================
* 博客文章部分截图及内容来自于学习的书本及相应培训课程以及网络其他博客,仅做学习讨论之用,不做商业用途。
* 如有侵权,马上联系我,我立马删除对应链接。 * @author Alan -liu * @Email no008@foxmail.com
转载请标注出处! ✧*꧁一品堂.技术学习笔记꧂*✧. ---> https://www.cnblogs.com/ios9/
学问:纸上得来终觉浅,绝知此事要躬行
为事:工欲善其事,必先利其器。
态度:道阻且长,行则将至;行而不辍,未来可期
.....................................................................
------- 桃之夭夭,灼灼其华。之子于归,宜其室家。 ---------------
------- 桃之夭夭,有蕡其实。之子于归,宜其家室。 ---------------
------- 桃之夭夭,其叶蓁蓁。之子于归,宜其家人。 ---------------
=====================================================================
* 博客文章部分截图及内容来自于学习的书本及相应培训课程以及网络其他博客,仅做学习讨论之用,不做商业用途。
* 如有侵权,马上联系我,我立马删除对应链接。 * @author Alan -liu * @Email no008@foxmail.com
转载请标注出处! ✧*꧁一品堂.技术学习笔记꧂*✧. ---> https://www.cnblogs.com/ios9/