魅力博客

魅力Linux|魅力空间|魅力博客|学习Linux|ubuntu日记|电脑教程|手机软件

Linux下用命令行安装和卸载vmware tool



Installing VMware Tools in a Linux or Freebsd Virtual Machine

1. Power on the virtual machine.

2. After the guest operating system has started, prepare your virtual machine to install VMware Tools.

Choose VM > Install VMware Tools.

The remaining steps take place inside the virtual machine.

3. Be sure the guest operating system is running in text mode. You cannot install VMware Tools from a terminal in an X window session.

Some recent distributions of Linux are configured to run the X server when they boot and do not provide an easy way to stop the X server. However, you can switch to a different workspace that is still in text mode and install VMware Tools from that workspace.

To switch between Linux workspaces in a virtual machine, press Ctrl-Alt-Space, release Space without releasing Ctrl and Alt, then press the function key for the workspace you want to use — for example, F2.

Note: If you changed your hot-key combination to something other than Ctrl-Alt, use that combination with Space and the function key.

4. As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working Directory (for example, /tmp), uncompress the installer, then unmount the CD-ROM image.

Note: You do not use an actual CD-ROM to install VMware Tools, nor do you need to download the CD-ROM image or burn a physical CD-ROM of this image file. The GSX Server software contains an ISO image that looks like a CD-ROM to your guest operating system. This image contains all the files needed to install VMware Tools in your guest operating system.

Linux Guests: Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, modify the following commands to reflect the conventions used by your distribution.

Further, some Linux distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.

mount /dev/cdrom /mnt/cdrom

cd /tmp

tar zxf /mnt/cdrom/vmware-linux-tools.tar.gz

umount /mnt/cdrom

FreeBSD Guests: Some FreeBSD distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.

mount /cdrom

cd /tmp

tar zxf /cdrom/vmware-freebsd-tools.tar.gz

umount /cdrom

5. Run the VMware Tools installer.

cd vmware-tools-distrib

./vmware-install.pl

6. Answer the questions about default directories.

7. Run the configuration program.

vmware-config-tools.pl

8. To change your virtual machine's display resolution, answer yes, then enter the number that corresponds to the desired resolution.

9. Log off of the root account.

exit

10. Start X and your graphical environment.

11. In an X terminal, launch the VMware Tools background application.

vmware-toolbox &

You can run VMware Tools as root or as a normal user. To shrink virtual disks, you must run VMware Tools as root (su -).

Note: To get the greatest benefit from the features of VMware Tools, always run vmware-toolbox in the guest operating system.

Uninstalling VMware Tools

If you need to remove VMware Tools from your Linux guest operating system, log on as root (su -) and run the following command:

vmware-uninstall-tools.pl



返回顶部

发表评论:

Powered By Z-BlogPHP 1.7.3


知识共享许可协议
本作品采用知识共享署名 3.0 中国大陆许可协议进行许可。
网站备案号粤ICP备15104741号-1