Ubuntu安装虚拟机工具(VMware Tool)详解 您所在的位置:网站首页 安装虚拟机工具在哪 Ubuntu安装虚拟机工具(VMware Tool)详解

Ubuntu安装虚拟机工具(VMware Tool)详解

2024-07-12 06:10| 来源: 网络整理| 查看: 265



Ubuntu安装虚拟机工具(VMware Tool)详解

时间:2010-09-07 21:25 来源:雨林木风交流论坛 收藏 复制分享 共有评论(0)条

在VMware下安装Ubuntu,那么必须安装VMware-tools,才能获得更好的体验,包括屏幕分辨率、声音、和windows共享剪贴板等等。

1、点击VMware菜单的-VM-Install VMware Tools

这时,在Ubuntu下会自动加载Linux版的VMware Tools的安装光盘镜像。你会看到虚拟机的桌面上出现了一个名为VMware Tools的光盘图标,并且被自动打开。

其中包括VMwareTools-xxx-i386.rpm和VMwareTools- xxx.tar.gz两个文件。

如果你双击那个 rpm 文件,会提示说不支持的软件包,因为 rpm 是为 RedHat 准备的安装包,我们需要的是 .tar.gz 那个。

2、把 .tar.gz 文件拷贝而到桌面,右键菜单-解压缩到此处。会自动解压为一个 vmware-tools-distrib 目录。

打开终端(系统的应用程序菜单-附件-终端)

3、然后在终端里面执行以下命令行:

$ cd Desktop(要是中文的就是 $ cd 桌面)

$ cd vmware-tools-distrib

$ sudo ./vmware-install.pl

4、回车之后提示输入管理员密码,然后一路确认回车后(相当于在Windows里安装软件时所填答的诸多对话框,我们这里均采用缺省设置),直到最后出现“Enjoy——the VMware team”的字样后,VMwareTools终于安装完成了。

过程如下:

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

The path "y" is a relative path. Please enter an absolute path.

In which directory do you want to install the binary files?

[/usr/bin] y

The path "y" is a relative path. Please enter an absolute path.

In which directory do you want to install the binary files?

[/usr/bin] y

The path "y" is a relative path. Please enter an absolute path.

In which directory do you want to install the binary files?

[/usr/bin] y

The path "y" is a relative path. Please enter an absolute path.

In which directory do you want to install the binary files?

[/usr/bin] y

The path "y" is a relative path. Please enter an absolute path.

In which directory do you want to install the binary files?

[/usr/bin] y

The path "y" is a relative path. Please enter an absolute path.

In which directory do you want to install the binary files?

[/usr/bin] y

The path "y" is a relative path. Please enter an absolute path.

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/)?

操作过程如下:

[root@localhost ~]# cd / [root@localhost /]# ls bin   dev home lost+found misc net proc sbin     srv tftpboot usr boot etc lib   media       mnt   opt root selinux sys tmp       var [root@localhost /]# cd /media [root@localhost media]# ls VMware Tools [root@localhost media]# cd VMware\ Tools/ [root@localhost VMware Tools]# ls manifest.txt VMwareTools-8.1.3-203739.tar.gz [root@localhost VMware Tools]# cp VMwareTools-8.1.3-203739.tar.gz    /tmp [root@localhost VMware Tools]# cd /tmp [root@localhost tmp]# ls gconfd-root                                 scim-helper-manager-socket-root keyring-lbbFvv                              scim-panel-socket:0-root mapping-root                                scim-socket-frontend-root orbit-root                                  ssh-FmnVlj2751 scim-bridge-0.3.0.lockfile-0@localhost:0.0 virtual-root.ZxmHUV scim-bridge-0.3.0.socket-0@localhost:0.0    VMwareTools-8.1.3-203739.tar.gz [root@localhost tmp]# tar -zxf VMwareTools-8.1.3-203739.tar.gz  [root@localhost tmp]# ls gconfd-root                                 scim-panel-socket:0-root keyring-lbbFvv                              scim-socket-frontend-root mapping-root                                ssh-FmnVlj2751 orbit-root                                  virtual-root.ZxmHUV scim-bridge-0.3.0.lockfile-0@localhost:0.0 VMwareTools-8.1.3-203739.tar.gz scim-bridge-0.3.0.socket-0@localhost:0.0    vmware-tools-distrib scim-helper-manager-socket-root [root@localhost tmp]# cd vmware-tools-distrib/ [root@localhost vmware-tools-distrib]# ls bin doc etc FILES INSTALL installer lib vmware-install.pl [root@localhost vmware-tools-distrib]# ./vmware-install.pl  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] yes   

The path "yes" is a relative path. Please enter an absolute path. 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/rc.d]  What is the directory that contains the init scripts?  [/etc/rc.d/init.d]  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]  yes    In which directory do you want to install the documentation files?  [/usr/share/doc/vmware-tools]  The path "yes" is a relative path. Please enter an absolute path. 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 8.1.3 build-203739 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]  Stopping VMware Tools services in the virtual machine: Guest operating system daemon:                          [确定] Virtual Printing daemon:                                [确定] Unmounting HGFS shares:                                 [确定] Guest filesystem driver:                                [确定] Found a compatible pre-built module for vmmemctl. Installing it... Found a compatible pre-built module for vmhgfs. Installing it... Found a compatible pre-built module for vmxnet. Installing it... Found a compatible pre-built module for vmblock. Installing it... [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]  Found a compatible pre-built module for vmci. Installing it... Found a compatible pre-built module for vsock. Installing it... Found a compatible pre-built module for vmxnet3. Installing it... Found a compatible pre-built module for pvscsi. Installing it... Detected X.org version 7.1. Host resolution detected as "1440 x 900". Please choose one of the following display sizes that X will start with: [1] "320x200" [2] "320x240" [3] "400x300" [4] "512x384" [5] "640x400" [6] "640x480" [7] "720x480" [8] "800x480" [9] "854x480" [10] "720x576" [11] "800x600" [12] "1024x768" [13] "1280x720" [14] "1280x768" [15] "1152x864" [16] "1280x800" [17] Warning:          Multiple symbols for level 1/group 1 on key  >                   Using XF86Sleep, ignoring XF86Standby > Warning:          Symbol map for key  redefined >                   Using last definition for conflicting fields Errors from xkbcomp are not fatal to the X server X is running fine with the new config file. FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing. Creating a new initrd boot image for the kernel. Starting VMware Tools services in the virtual machine: Switching to guest configuration:                       [确定] Paravirtual SCSI module:                                [确定] Guest filesystem driver:                                [确定] Mounting HGFS shares:                                   [失败] Guest memory manager:                                   [确定] Guest vmxnet fast network device:                       [确定] VM communication interface:                             [确定] VM communication interface socket family:               [确定] Blocking file system:                                   [确定] File system sync driver:                                [确定] Guest operating system daemon:                          [确定] Virtual Printing daemon:                                [确定] The configuration of VMware Tools 8.1.3 build-203739 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 the following command:  "/usr/bin/vmware-toolbox" 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 /usr/bin/vmware-user 2. Log out and log back into your desktop session; and, 3. Restart your X session. To use the vmxnet driver, restart networking using the following commands:  /etc/init.d/network stop rmmod pcnet32 rmmod vmxnet modprobe vmxnet /etc/init.d/network start Enjoy, --the VMware team Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device  /dev/hdc ... [root@localhost vmware-tools-distrib]#



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有