VMware Linux下拖拽补丁vmtools的安装和卸载
Linux下拖拽補丁vmtools的安裝和卸載
by:授客 QQ:1033553122
?
Vmware 8.0.4為例子
步驟1、VM->Install Vmware Tools...
?
?
步驟2、查看要安裝的Tools鏡像文件(一般為linux.iso),連接光驅
?
步驟3、查看是否掛載
[root@localhost ~]# mount
...
proc on /proc type proc (rw)
/dev/sr0 on /mnt type iso9660 (ro)
...
?
?
如上,如果輸出有...type iso9660...掛載記錄,則說明已經掛載了
[root@localhost ~]# cd /mnt/
[root@localhost mnt]# ls
ls: reading directory .: Input/output error
?
#如上,提示錯誤(估計是沒卸載之前的已經加載的光盤導致),解決方法:先power off,再power on,然后重復上述步驟1、VM->Install Vmware Tools...,接著如下
[root@localhost ~]# mkdir /mnt/cdrom
[root@localhost ~]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/sr0 is write-protected,mounting read-only
[root@localhost ~]# mount
...
/dev/sr0 on /mnt type iso9660 (ro)
?
步驟4、查找vmtools安裝文件
[root@localhost cdrom]# ls
manifest.txt ?VMwareTools-8.8.4-743747.tar.gz
?
步驟5、解壓安裝文件【建議新建一個臨時目錄,用完后可以直接刪除該臨時目錄】
[root@localhost cdrom]# mkdir /tmp/temp
[root@localhost cdrom]# cd /tmp/temp/ #先進入到要解壓到的目錄
[root@localhost temp]# tar -xzvf /mnt/cdrom/VMwareTools-8.8.4-743747.tar.gz
?
步驟6、進入工具目錄,并安裝
[root@localhost temp]# 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]
#說明:括號中的值表示缺省值,直接回車即可,接下還會遇到類似的,一路回車即可
...
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
Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/sr0 ...
No eject (or equivilant) command could be located.
Eject Failed:? If possible manually eject the Tools installer from the guest
cdrom mounted at /mnt/cdrom before canceling tools install on the host.
?
查看安裝情況:
如圖,已經顯示為Reinstall Vmware Tools...,說明已經安裝上了
?
步驟7、配置
1).手動啟動vmware-usr
[root@localhost vmware-tools-distrib]# /usr/bin/vmware-user
2).啟動Xwindow
# startx? #這一步只能在本機上執行,不能通過類似xshell之類的執行
3).退出xwindow
?
4).重啟xwindow
# startx
5).配置網絡
a.插入網線
b.log out
備注:該步驟似乎只在安裝時沒連接網線時才要。。。
?
卸載vmtools
步驟1、找到vmware-uninstall-toos.pl所在目錄,進入該目錄下,運行以下命令
[root@localhost bin]# vmware-uninstall-tools.pl
?
步驟2、查找殘余文件,刪除殘余文件
[root@localhost bin]# find / -name *vmware-tools*
...
[root@localhost bin]# rm –rf vmware-tools-distrib
[root@localhost bin]# cd /etc
[root@localhost etc]# rm –rf vmware-tools
[root@localhost etc]# rm –rf /usr/lib/vmware-toos
?
步驟3、檢查是否刪除
[root@localhost bin]# find / -name *vmware-tools*
?
轉載于:https://www.cnblogs.com/shouke/p/10157975.html
總結
以上是生活随笔為你收集整理的VMware Linux下拖拽补丁vmtools的安装和卸载的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 依赖注入及AOP简述(六)——字符串请求
- 下一篇: linux服务器没网情况下手动安装软件几