虚拟机vmware安装tool-解决全屏问题

博主近日由于学习需要安装了vmware虚拟机,虚拟机系统为ubuntu16.04,但发现安装完ubuntu后,虚拟机界面一直全屏,用户体验很不爽,遂上网查找资料寻求解决办法,但苦于网上办法或五花八门,或不胜详细。经过半天研究小博终于把这问题解决,此贴为博主经验总结,希望能帮到大家。(此篇为博主人生第一篇“技术贴”,有错误之处希望大家指正)

1.打开虚拟机,点击要更改成全屏的那个ubuntu系统的电源,即点击【打开此虚拟机电源】


2.等虚拟机打开之后,我们点击虚拟机软件上面工具栏中的【虚拟机】,会展现出一个下拉菜单。

在下拉菜单中,我们找到并使用鼠标左键单击【install Vmware tools】,


3.点击以上选项后 我们进入到ubuntu系统里面,可能会出现两种情况:

1)找到在桌面上出现的wmware tools的光盘! 我们点击进入其中。(这是网上普遍的说的情况,不过我的没出现,我是第二种情况)

2)若桌面上没有显示wmware tools的光盘,点击桌面上

在左侧栏里面有个新出现的的磁盘vmware tools虚拟光盘

4.在vmware tools虚拟光盘里面我们双击【vmware****.tar.gz】这个文件,注意我这里的****是任意字符的意思哦,每个虚拟机的版本可能不一。

复制这个【vmware****.tar.gz】文件,到【文件】--->【home】文件夹里面

5.然后按【Ctrl+Alt+T】调出命令界面在里面输入【tar -zxvf v】后按【Tab】键,自动补全整个工具的名字。然后按enter执行。

6.然后在终端里面输入【cd V】,再按一次TAB键补全被解压后的那个工具目录名字。回车后进入到该工具解压后的目录里面!

   最后输入【sudo ./vmware-install.pl】执行,在终端中一路回车之后及出现yes或no进行回答后即可安装成功。

附网上其他大神的安装过程,终端显示的代码

[root@Fedora-W tmp]# cd vmware-tools-distrib
[root@Fedora-W vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware Tools has been detected.


The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes]

Uninstalling the tar installation of VMware Tools.

The removal of VMware Tools 8.8.0 build-471268 for Linux completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr] /bin

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

What is the directory that contains the init scripts? [/etc]

The file /etc/vmware-tools that this program was about to install already
exists. Overwrite? [yes]

Unable to copy the source file ./installer/services.sh to the destination file
/etc/vmware-tools.

Execution aborted.   //错误一次出现

[root@Fedora-W vmware-tools-distrib]# sudo ./vmware-install.pl
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes]

Uninstalling the tar installation of VMware Tools.

The removal of VMware Tools 8.8.0 build-471268 for Linux completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/bin]

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

What is the directory that contains the init scripts? [/etc]

The file /etc/vmware-tools that this program was about to install already
exists. Overwrite? [yes]

Unable to copy the source file ./installer/services.sh to the destination file
/etc/vmware-tools.

Execution aborted. //错误2次出现

[root@Fedora-W vmware-tools-distrib]# sudo ./vmware-install.pl
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes]

Uninstalling the tar installation of VMware Tools.

The removal of VMware Tools 8.8.0 build-471268 for Linux completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/bin]

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

The path "/etc/init.d" is a directory which does not contain a rc0.d directory.

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

The path "/etc/rc1.d" is a directory which does not contain a rc0.d directory.

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

The path "/rc0.d" is not an existing directory.

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

The path "rc0.d" is not an existing directory.

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

The path "/etc/vmware-tools" is a directory which does not contain a rc0.d
directory.

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


In which directory do you want to install the daemon files?
[/sbin]


In which directory do you want to install the library files?
[/lib/vmware-tools]

The path "/lib/vmware-tools" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the documentation files?
[/doc/vmware-tools]

The path "/doc/vmware-tools" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]

The installation of VMware Tools 8.8.0 build-471268 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/bin/vmware-config-tools.pl". Do you want this
program to invoke the command for you now? [yes]

Initializing...

Making sure services for VMware Tools are stopped.

Stopping vmware-tools (via systemctl):                     [确定]

[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that
creates backups of virtual machines. Please refer to the VMware Knowledge Base
for more details on this capability. Do you wish to enable this feature?
[no]

Before you can compile modules, you need to have the following installed...

make
gcc
kernel headers of the running kernel

Searching for GCC...
The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]

What is the location of the gcc program on your machine?

The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]

What is the location of the gcc program on your machine?

The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]  no

Searching for a valid kernel header path...
The path "" is not a valid path to the 2.6.40.8-4.fc15.i686.PAE kernel headers.

Would you like to change it? [yes]

Enter the path to the kernel header files for the 2.6.40.8-4.fc15.i686.PAE
kernel?

The path "" is not a valid path to the 2.6.40.8-4.fc15.i686.PAE kernel headers.

Would you like to change it? [yes]  no

WARNING: This program cannot compile any modules for the following reason(s)...

- This program could not find a valid path to the gcc binary.  Please ensure
that the gcc binary is installed on this sytem.

- This program could not find a valid path to the kernel headers of the running
kernel.  Please ensure that the header files for the running kernel are
installed on this sytem.

[ Press Enter key to continue ]

The communication service is used in addition to the standard communication
between the guest and the host.  The rest of the software provided by VMware
Tools is designed to work independently of this feature.
If you wish to have the VMCI feature, you can install the driver by running
vmware-config-tools.pl again after making sure that gcc, binutils, make and the
kernel sources for your running kernel are installed on your machine. These
packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

The VM communication interface socket family is used in conjunction with the VM
communication interface to provide a new communication path among guests and
host.  The rest of this software provided by VMware Tools is designed to work
independently of this feature.  If you wish to have the VSOCK feature  you can
install the driver by running vmware-config-tools.pl again after making sure
that gcc, binutils, make and the kernel sources for your running kernel are
installed on your machine. These packages are available on your distribution's
installation CD.
[ Press the Enter key to continue.]

The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=pvscsi to override.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmmemctl to override.

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]

The fast network device driver (vmxnet module) is used only for our fast
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the fast network driver enabled, you can install the driver
by running vmware-config-tools.pl again after making sure that gcc, binutils,
make and the kernel sources for your running kernel are installed on your
machine. These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

!!! [EXPERIMENTAL] !!!
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot they are not already present.  By selecting yes,
you will be enabling this experimental feature.  You can always disable this
feature by re-running vmware-config-tools.pl.

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

Disabling timer-based audio scheduling in pulseaudio.

Detected X server version 1.10.4

Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Creating a new initrd boot image for the kernel.
Starting vmware-tools (via systemctl):                     [确定]
The configuration of VMware Tools 8.8.0 build-471268 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/bin/vmware-toolbox-cmd" from the
command line or by invoking "/bin/vmware-toolbox" from the command line during
an X server session.

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 /bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

[root@Fedora-W vmware-tools-distrib]#

当最后显示

即安装成功,此时关闭虚拟机,重启虚拟机ubuntu系统,便可按【CTRL+Alt+enter】键进行ubuntu全屏切换啦。


成功!!!!






本文引用材料来自https://blog.csdn.net/m8396017/article/details/51725303

                         https://jingyan.baidu.com/article/f7ff0bfc13d02f2e26bb13af.html

                         https://www.cnblogs.com/zhbzz2007/p/4111866.html

  • 7
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值