当前位置:网站首页>VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
2022-07-06 09:28:00 【萌褚】
镜像下载、域名解析、时间同步请点击 阿里云开源镜像站
在VMware Workstation上新建了一个虚拟机,安装了Ubuntu 10.04版本的iso,创建好后发现了两个问题:
(1) 虚拟机界面并不能填充满整个屏幕,使用起来十分反人类。

(2) 主机和虚拟机不能随意相互复制粘贴,无论是文件还是剪贴板。
一、安装VMware Tools
首先我们安装一下官方的工具VMware Tools,但是软件中VMware Tools的安装图标是灰色的。这是因为VMware会自动检测CD镜像文件中的VMware Tools安装包,检测不到时就会显现灰色无法安装。

关闭虚拟机,打开虚拟机设置。

将虚拟机设置中的CD/DVD、CD/DVD2和软盘三个选项均设置为自动检测。

重启虚拟机,灰色的字就被点亮。
如果上述方法不行,那就参考这篇文章再配置吧。
点击安装VMware Tools。

VMware会自动虚拟一个光盘出来,里面是Vmware tools的软件。同时底部会弹出一个提示,告诉用户VMware Tools怎么安装。看到这个提示说明光盘加载成功。

打开VMware Tools的路径,将里面的内容复制到别的目录下。

将tar包解压缩,使用下面的指令安装vmware-install.pl。
sudo perl vmware-install.pl安装时会可以根据提示进行自定义配置,这里我都直接回车default了。
安装成功后,首先可以看到虚拟机全屏显示了!

二、解决主机与虚拟机数据互传的问题
本来以为安装了VMware Tools后就可以随意实现拖拽文件互传了,结果还是不行。于是打开虚拟机设置。

在“选项”选项卡中,找到“客户机隔离”选项,确保两个勾都是勾上的。

如果还是不行,那就不用VMware Tools,改用open-vm-tools工具。在一些版本的Linux中(例如Kali),VMware Tools有时候并不能成功完成相关功能。
open-vm-tools简单来说就是开源的VMware Tools,已经被官方认可。开源代码官网。
如果想装open-vm-tools,一定要先删除VMware Tools,否则两者会冲突。卸载程序是tar包解压缩后的/bin目录下的vmware-uninstall-tools.pl。
sudo vmware-uninstall-tools.pl安装新的open-vm-tools-desktop。这里注意,有图形化界面的ubuntu装open-vm-tools-desktop,没有图形化界面的ubuntu装open-vm-tools。
sudo apt-get open-vm-tools-desktop如果出现了这样的error。

这样解决。首先换一个源,打开ubuntu的一个应用software & Updates,这个应用找不到的话可以在系统里搜一下能搜到。

选Ubuntu Software选项卡,在Download from中选择others。

找到China,选择其中一个源,这里我选了阿里云,点Choose Server。

更新源地址。
sudo apt-get update
更新完成后,再安装open-vm-tools工具。
sudo ap-get install open-vm-tools-desktopreboot
终于成功了!!!
原文链接:https://blog.csdn.net/baidu_38797690/article/details/124191747
边栏推荐
- 2078. Two houses with different colors and the farthest distance
- [exercise-8] (UVA 246) 10-20-30== simulation
- 图图的学习笔记-进程
- 807. Maintain the urban skyline
- Pyside6 signal, slot
- [exercise-9] Zombie's Treasury test
- Data storage in memory & loading into memory to make the program run
- useEffect,函数组件挂载和卸载时触发
- 409. Longest palindrome
- QT有关QCobobox控件的样式设置(圆角、下拉框,向上展开、可编辑、内部布局等)
猜你喜欢

It is forbidden to trigger onchange in antd upload beforeupload

Pytorch extract skeleton (differentiable)

QT实现圆角窗口

Sword finger offer II 019 Delete at most one character to get a palindrome

Data storage in memory & loading into memory to make the program run

渗透测试 2 --- XSS、CSRF、文件上传、文件包含、反序列化漏洞

1529. Minimum number of suffix flips

力扣:第81场双周赛
![[exercise-7] crossover answers](/img/66/3dcba2e70a4cd899fbd78ce4d5bea2.png)
[exercise-7] crossover answers
快速转 TypeScript 指南
随机推荐
Classic application of stack -- bracket matching problem
1689. Ten - the minimum number of binary numbers
Hdu-6025-prime sequence (girls' competition)
Penetration test (7) -- vulnerability scanning tool Nessus
Radar equipment (greedy)
Auto. Getting started with JS
QT按钮点击切换QLineEdit焦点(含代码)
[teacher Gao UML software modeling foundation] collection of exercises and answers for level 20 cloud class
Penetration testing (5) -- a collection of practical skills of scanning King nmap and penetration testing tools
Openwrt source code generation image
JS call camera
Luogu P1102 A-B number pair (dichotomy, map, double pointer)
875. 爱吃香蕉的珂珂 - 力扣(LeetCode)
Socket communication
(POJ - 3685) matrix (two sets and two parts)
滲透測試 ( 1 ) --- 必備 工具、導航
socket通讯
B - Code Party (girls' competition)
Codeforces Round #801 (Div. 2)A~C
Effet d'utilisation, déclenché lorsque les composants de la fonction sont montés et déchargés