Ubuntu22.04系统如何实现跨虚拟机拷贝
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">为方便进行数据分析,先后安装了Ubuntu16和22.04,总体感觉这个系统非常的简洁、漂亮,而且效率高,占用资源少。装在虚拟机中,只占用了4G内存,20G硬盘空间。安装中出现的问题总结如下:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">1.windows11家庭版的兼容问题</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">由于windows11家庭版缺少一些支持,因此,在不加补丁的情况下,是安装不了虚拟机VMware5及以下版本的,网上给出了许多的方法进行弥补,我都进行了试验,方法非常复杂,消耗大量时间,但效率不佳。最有效且快速的解决方法,只要安装VMware6即可,因为该版本针对windows10、和windows11家庭版的问题进行了升级,因此,只需要花十几分钟进行下载和重新安装,再安装Ubuntu22.04即可。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">2.关于重新安装VMware Tools</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">这个功能是必备项,非常方便进行虚拟机与外在系统的交互。但如果第一次安装了一个版本如Ubuntu16,第二次又安装Ubuntu22.04时,该菜单栏会呈现灰色,无法点击安装。这个问题,对于高手只是小CASE,但对于小白来讲,可能也很难克服,现在简单介绍如下:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">(1)<span style="color: green;">先卸载</span>ubuntu<span style="color: green;">中的vmware tools工具</span></p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">直接点击“在终端中打开”,输出以下指令,然后点击回车:</p>sudo apt <span style="color: green;">purge</span> <span style="color: green;">open</span>-vm-tools-desktop<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><span style="color: green;">卸载完成后,先关闭虚拟机,然后再重新启动。此时,“重新安装VMware tools”选项已经可以点击了。</span></p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">(2)安装VMware tools</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">这一步比较简单,只要按流程提示操作即可。点击虚拟机的”虚拟机“按键,然后点击“重新安装VMware Tools(T)"选项,按其提示,将</p>VMwareTools-10.3.22-15902021.tar.gz放置到桌面上,鼠标右键“提取到此处”,释放到桌面后,打开该文件夹,直接在该文件夹中点击右键“在终端中打开”,然后输入以下指令:
./vmware-install.pl<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">输入完成后,点击回车,即可开始安装。安装开始后,有许多的交互提问,大多数直接回车,取默认值即可。但在问是否要覆盖原来的文件时,这时的默认值是"NO",此时,需要重新输入YES,然后继续。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">(3)重新启动</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">安装完成后,先关闭虚拟机,然后再重新启动。但此时,很可能会遇到,仍然无法实现在虚拟机与原机系统间无法直接复制粘贴的问题。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">(4)解决无法复制粘贴的问题</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">右键点击“在终端打开”,直接输入并逐条执行以下:</p><span style="color: green;">sudo</span> <span style="color: green;">apt-get upgrade</span>
<span style="color: green;">sudo</span> <span style="color: green;">apt-get update</span>
<span style="color: green;">sodu</span> <span style="color: green;">reboot</span>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">如果提示输入用户密码时,直接输入即可,如果以上指令输入了仍无法实现复制粘贴,则可再次输入并执行以下指令:</p><span style="color: green;">sudo</span> nano /etc/gdm3/custom.conf<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><span style="color: green;">指令执行后,找到"#</span><strong style="color: blue;"><span style="color: green;">WaylandEnable=false"行,</span></strong><span style="color: green;">将#号去掉,同时,将值设为false。如下图所示:</span></p>
<div style="text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/f5b48f845b914460acabbdd34bf04f70~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1704568556&x-signature=4Kw4KjKGrye7XLPx5YslsWQHUy8%3D" style="width: 100%; margin-bottom: 20px;"></div>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">保存后,输入以下指令,重新启动gdm3</p><span style="color: green;">sudo</span> systemctl restart gdm3<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">(5)再次启动虚拟机</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">再次启动虚拟机,即可实现跨虚拟机复制粘贴功能。需要注意,在上述操作中,需要用管理员操作。恭喜你,至此,已经大功告成!</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">截几张图供大家欣赏。欢迎同在学习研究的朋友交流。</p>
<div style="text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/69c1860d01f343fdba6f0801ff7443c3~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1704568556&x-signature=yqlXAX9lJ5hT4ic%2Fa6KP%2Fyv2YPY%3D" style="width: 100%; margin-bottom: 20px;"></div>
<div style="text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/b6542d35907945329ff62b03ac3a21fd~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1704568556&x-signature=DTNhtv05zaPQe9g6YlsSGd%2BwsgU%3D" style="width: 100%; margin-bottom: 20px;"></div>
<div style="text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/88c10a5dc4f94d699d1e354e6a607e62~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1704568556&x-signature=JfHpc7204BEV8amYzHvA0i5gEp8%3D" style="width: 100%; margin-bottom: 20px;"></div>
<div style="text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/a52b90cfee824a83ae0c4575a5d5345b~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1704568556&x-signature=rqQ5pgMSOvbEHhV88L%2BjLfoxHYI%3D" style="width: 100%; margin-bottom: 20px;"></div>
<div style="text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/b9cff778e0654143a5a914e7fa862f44~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1704568556&x-signature=uoJ%2BxOs4GZHxs2o3ZwZiM2AhLaM%3D" style="width: 100%; margin-bottom: 20px;"></div>
页:
[1]