基于VM14+ Ubuntu 16.04安装VMware Tools(VM同主机file交互的工具)以及使用的骚操作

简介: 首先,给已经装好的Ubuntu 16.04换上映像文件:在安装VMware Tools时,需要修改指向VMware Tools所在(VMware Workstation\linux.iso),在这个路径下有个linux.iso文件,其中提供了linux操作系统平台需要的一些工具文件,当然包括VMware Tools安装文件。

首先,给已经装好的Ubuntu 16.04换上映像文件:

img_22f4e2dffe5b415818329ddb7d1f7963.png

在安装VMware Tools时,需要修改指向VMware Tools所在(VMware Workstation\linux.iso),在这个路径下有个linux.iso文件,其中提供了linux操作系统平台需要的一些工具文件,当然包括VMware Tools安装文件。

现在再进入系统,在VMware菜单栏找到如下红框位置,我这里安装好了所以显示重新安装,未安装的时候可以这里开始第一步,

img_bb03f4dfd9a8876a59654e0051c1a16b.png

点击之后会弹出如下虚拟驱动,里面就有VMware Tools的安装包(即 * .tar.gz)(下图截自https://blog.csdn.net/sh21_/article/details/52453493)。

img_d436daa9e2e0769f6407b87182b48acd.png

我们直接将这个压缩包拷到桌面上:

img_16aa2d675a88bee4c56339247a81e67f.png

接着打开终端解压之(-xzvf 后面的路径可以直接把压缩文件拖到终端窗口上然后放开,修整一下路径即可):

tar -xzvf  /home/.../VMwareTools-10.0.6-。。。.tar.gz

解压时终端剪影:

img_25d853f827a1ea884c8c03d045e0b192.png

解压完毕后,cd进入解压后的目录,执行:sudo ./wmware-install.pl 然后基本上一直回车就可以了(看到yes或者no的都输入yes(如果你英语自觉不错那也可以自行阅读询问后操作),其他的基本上回车就可以了,会输默认INPUT: [...] default)。

下面是我安装的剪影:

liweipeng@liweipeng-virtual-machine:~$ cd vmware-tools-distrib/
liweipeng@liweipeng-virtual-machine:~/vmware-tools-distrib$ sudo ./vmware-install.pl
[sudo] liweipeng 的密码: 
open-vm-tools packages are available from the OS vendor and VMware recommends 
using open-vm-tools packages. See http://kb.vmware.com/kb/2073803 for more 
information.
Do you still want to proceed with this installation? [no] yes

INPUT: [yes]

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] 

INPUT: [/usr/bin]  default

What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 
[/etc] 

INPUT: [/etc]  default

......

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] yes

INPUT: [yes]

Initializing...


Making sure services for VMware Tools are stopped.

Stopping Thinprint services in the virtual machine:
   Stopping Virtual Printing daemon:                                   done
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                                      done
   VMware User Agent (vmware-user):                                    done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done


The module vmci has already been installed on this system by another installer 
or package and will not be modified by this installer.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vmxnet3 has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.

The VMware Host-Guest Filesystem allows for shared folders between the host OS 
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish 
to enable this feature? [yes] yes

INPUT: [yes]

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please 
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

The vmblock enables dragging or copying files between host and guest in a 
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[yes] yes

INPUT: [yes]

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[yes] yes

INPUT: [yes]

Thinprint provides driver-free printing. Do you wish to enable this feature? 
[yes] yes

INPUT: [yes]


Disabling timer-based audio scheduling in pulseaudio.

Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed 
if you want to enable Common Agent (caf). [yes] yes

INPUT: [yes]

Do you want to enable Common Agent (caf)? [no] yes

INPUT: [yes]



Detected X server version 1.19.6



Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

......

Enjoy,

--the VMware team

Found VMware Tools CDROM mounted at /media/liweipeng/VMware Tools1. Ejecting 
device /dev/sr0 ...

直到出现下面这块就算安装成功了:

img_7c254fcf9a15fb7c8856fdc76fe50d94.png

接着关机:
img_ff0525fc7909edf583e5645fa5e70f96.png

回到VMware的界面,点击虚拟机->设置->选项,
img_684acbf5b3aad0a599ead4b648534875.png

对共享文件夹添加一个本机路径即可,文件夹可以用来存放共享文件:

img_2b5ba14d83aa2e42d718d9fd8e69d6ac.png

接着在Ubuntu中任意点击一个文件(文件夹可以先压缩成.tar.gz文件),Ctrl+C:

img_5e195b6eecbd8c4a9c2b6b0d717e946d.png

然后到主机随便找个地方,比如共享文件夹,Ctrl+V,就哦了,整个儿直接地便从虚拟机复制到主机上来,相当好吃:
img_a98c1f9dfb5e68f8600410883ccbafbe.png





参考博文:
https://www.linuxidc.com/Linux/2016-04/130806.htm
https://www.linuxidc.com/Linux/2016-04/130807.htm
https://blog.csdn.net/sh21_/article/details/52453493

目录
相关文章
|
4月前
|
Ubuntu 测试技术 Linux
dpdk测试环境搭建(vmware下ubuntu环境参考上文汇总流程)
dpdk测试环境搭建(vmware下ubuntu环境参考上文汇总流程)
104 0
|
5月前
|
虚拟化
VMware Tools 失效处理
VMware Tools 失效处理
49 0
|
5月前
|
Ubuntu 虚拟化
VMWare Tools没有正确安装或者版本过低导致的
VMWare Tools没有正确安装或者版本过低导致的
125 2
|
1月前
|
关系型数据库 MySQL Linux
【VMware安装+centos 7Linux系统+MySQL安装】——在Linux系统中安装MySQL步骤,以及遇见的各种问题(如:vm两个虚拟网卡消失、vm网络适配器有感叹号等等)
【VMware安装+centos 7Linux系统+MySQL安装】——在Linux系统中安装MySQL步骤,以及遇见的各种问题(如:vm两个虚拟网卡消失、vm网络适配器有感叹号等等)
185 0
|
1月前
|
Ubuntu 安全 虚拟化
vmware虚拟机运行ubuntu等卡慢的解决办法
vmware虚拟机运行ubuntu等卡慢的解决办法
152 0
|
6月前
|
Ubuntu 虚拟化
Ubuntu安装VMtools实现与主机之间复制粘贴
一、安装 VMware Tools 右键点击你创建的系统,然后出现菜单下滑找到安装 VMware Tools(T) 这个点击安装; 右键点击你创建的系统,然后出现菜单下滑找到设置; 然后弹出虚拟机设置-->点击选项-->客户机隔离-->启用复制粘贴; 二、Ubuntu命令 这些命令假设你的Ubuntu系统已连接到互联网并且已配置为使用apt软件包管理器; 如果你的网络环境有限,你可能需要提前配置好网络或更换软件源; Ubuntu上安装和配置VMtools以实现与主机之间的文本复制粘贴功能; 1、打开终端(Terminal)。 2、运行以下命令以卸载旧版本的open-vm-tools: su
351 1
|
4月前
|
存储 Ubuntu Linux
虚拟机VMware Workstation Pro中配置Linux操作系统Ubuntu的方法
虚拟机VMware Workstation Pro中配置Linux操作系统Ubuntu的方法
|
4月前
|
Ubuntu 网络安全 虚拟化
【Ubuntu】Win11 VmWare虚拟机安装Ubuntu 22.04.1-server
【Ubuntu】Win11 VmWare虚拟机安装Ubuntu 22.04.1-server
117 1
【Ubuntu】Win11 VmWare虚拟机安装Ubuntu 22.04.1-server
|
23天前
|
Ubuntu 安全 Linux
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
234 0
|
4月前
|
Ubuntu 小程序 Linux
linux虚拟机手动安装VMware Tools使屏幕自适应
电脑装了双系统,但是,linux系统的使用率不是很高,而且这玩意没有镜像,一旦手残给整废了,还得重装系统,太费劲~ 我这就装了虚拟机,有啥软件,现在虚拟机上安装,或者测试,没有问题了,要是有问题,可以回滚镜像啊,不需要重装系统 测试没有问题,再装到另一个ubuntu中,这就相当于有了双保险。
94 0