Ubuntu安装VMware tools,以及虚拟机安装的Ubuntu如何实现全屏

来源:互联网 发布:微店淘宝快速搬家 编辑:程序博客网 时间:2024/05/21 18:47

一、Ubuntu安装VMware tools

1、启动并进入Linux系统。
2、然后选择虚拟机菜单中的“虚拟机/安装VMware-Tools”,此时就会有把VMware-tools文件映像到DVD中。
3、把“VMwareTools-*****.tar.gz”(这里的******是虚拟机的版本号,每个虚拟机的版本可能不一样)文件复制 到自己的需要的位置中,一般为home文件夹中。在此我安装的是VMwareTools-10.0.6-3595377.tar.gz版本。
4、解压
   # tar -zxvf VmwareTools-10.0.6-3595377.tar.gz
5、进入解压后的目录中
   cd /home/wwf/vmware-tools-distrib
6、输入sudo ./vmware-install.pl进行安装,在安装过程中根据提示进行选择,在此我一路选择回车即可,详细安 装过程如下:

root@wwf-virtual-machine:/home/wwf/vmware-tools-distrib# ./vmware-install.pl
open-vm-tools are available from the OS vendor and VMware recommends using 
open-vm-tools. See http://kb.vmware.com/kb/2073803 for more information.
Do you still want to proceed with this legacy installer? [yes] 

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.
Stopping services for vmware-tools
vmware-tools stop/waiting
Stopping services for vmware-tools-thinprint
vmware-tools-thinprint stop/waiting
File /etc/vmware-caf/pme/config/CommAmqpListener-context-common.xml is backed 
up to /etc/vmware-caf/pme/config/CommAmqpListener-context-common.xml.old.2.
File /etc/vmware-caf/pme/config/ma-context.xml is backed up to 
/etc/vmware-caf/pme/config/ma-context.xml.old.2.
File /etc/vmware-caf/pme/config/CommAmqpListener-appconfig is backed up to 
/etc/vmware-caf/pme/config/CommAmqpListener-appconfig.old.2.
File /etc/vmware-caf/pme/config/IntBeanConfigFile.xml is backed up to 
/etc/vmware-caf/pme/config/IntBeanConfigFile.xml.old.2.
File /etc/vmware-caf/pme/config/ma-log4cpp_config is backed up to 
/etc/vmware-caf/pme/config/ma-log4cpp_config.old.2.
File /etc/vmware-caf/pme/config/ma-appconfig is backed up to 
/etc/vmware-caf/pme/config/ma-appconfig.old.2.
File /etc/vmware-caf/pme/config/CommAmqpListener-context-tunnel.xml is backed 
up to /etc/vmware-caf/pme/config/CommAmqpListener-context-tunnel.xml.old.2.
File /etc/vmware-caf/pme/config/cafenv.config is backed up to 
/etc/vmware-caf/pme/config/cafenv.config.old.2.
File /etc/vmware-caf/pme/config/vgauth.conf is backed up to 
/etc/vmware-caf/pme/config/vgauth.conf.old.2.
File /etc/vmware-caf/pme/config/CommAmqpListener-log4cpp_config is backed up to
/etc/vmware-caf/pme/config/CommAmqpListener-log4cpp_config.old.2.
File /etc/vmware-caf/pme/config/CommAmqpListener-context-amqp.xml is backed up 
to /etc/vmware-caf/pme/config/CommAmqpListener-context-amqp.xml.old.2.
File /etc/pulse/default.pa is backed up to /etc/pulse/default.pa.old.3.
The removal of VMware Tools 10.0.6 build-3595377 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/init] 

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

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

The path "/usr/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 common agent library files? 
[/usr/lib]

In which directory do you want to install the common agent transient files? 
[/var/lib] 

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

The path "/usr/share/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 10.0.6 build-3595377 for Linux completed 
successfully. You can decide to remove this software from your system at any 
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
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] 

Initializing...

Making sure services for VMware Tools are stopped.
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] 

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

make
gcc
kernel headers of the running kernel

Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] 

Searching for a valid kernel header path...
Detected the kernel headers at "/lib/modules/3.13.0-24-generic/build/include".
The path "/lib/modules/3.13.0-24-generic/build/include" appears to be a valid 
path to the 3.13.0-24-generic kernel headers.
Would you like to change it? [no] 

Using kernel build system.
make:进入目录'/tmp/modconfig-HP5CR5/vmhgfs-only'
/usr/bin/make -C /lib/modules/3.13.0-24-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
 MODULEBUILDDIR= modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.13.0-24-generic'

  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/backdoorGcc64.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/fsutil.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/inode.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/module.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/page.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/stubs.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/super.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/transport.o
  CC [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/kernelStubsLinux.o
  LD [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-HP5CR5/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/modconfig-HP5CR5/vmhgfs-only/vmhgfs.ko
make[1]:正在离开目录 `/usr/src/linux-headers-3.13.0-24-generic'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
 MODULEBUILDDIR= postbuild
make[1]: 正在进入目录 `/tmp/modconfig-HP5CR5/vmhgfs-only'
make[1]: “postbuild”是最新的。
make[1]:正在离开目录 `/tmp/modconfig-HP5CR5/vmhgfs-only'
cp -f vmhgfs.ko ./../vmhgfs.o
make:离开目录“/tmp/modconfig-HP5CR5/vmhgfs-only”

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] 


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?
[no] 

Thinprint provides driver-free printing. Do you wish to enable this feature? 
[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] 

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

Detected X server version 1.15.1

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.
update-initramfs: Generating /boot/initrd.img-3.13.0-24-generic

NOTE: both /etc/vmware-tools/GuestProxyData/server/key.pem and 
      /etc/vmware-tools/GuestProxyData/server/cert.pem already exist.
      They are not generated again. To regenerate them by force,
      use the "vmware-guestproxycerttool -g -f" command.

vmware-tools start/running
vmware-tools-thinprint start/running
The configuration of VMware Tools 10.0.6 build-3595377 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 "/usr/bin/vmware-toolbox-cmd" from the
command line.

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


7、一直回车到底,到最后提示成功,重新开机reboot就可以了。

二、虚拟机安装的Ubuntu如何实现全屏???

虚拟机下面安装了ubuntu系统,显示的屏幕只有那么一小块儿(如下图),如何才能全屏全屏显示??




操作过程:打开虚拟机,安装VMware tools,过程如上;安装成功后,重新开机,按【CTRL+Alt+enter】键或菜单栏上的全屏按钮就能给ubuntu全屏了。



阅读全文
1 0
原创粉丝点击