个人工具

UbuntuHelp:VMware

来自Ubuntu中文

跳转至: 导航, 搜索


<<Include(Tag/StyleCleanup)>>

Introduction

VMware is well known and has a reputation for ease of use. Many of its core products are free of charge (but not open source). With an AMD x86_64 Ubuntu OS as host, it is necessary to install ia32-libs prior to using it.

  • VMware Player is the most basic version of VMware available. It's designed to play existing VM images. There are many existing, downloadable images for free Operating Systems. In addition, sites like EasyVMX allow for free creation of new VMXs, allowing Windows to be installed and run in VMware player.
  • VMware Workstation is more advanced, and includes a built-in VM creator, as well as the ability to capture an OS snapshot at any point in time. With VMWare Workstation you can also use an existing physical partition as a virtual machine. VMware workstation requires a paid license to use.
  • VMware Server is aimed at hosting virtual servers. It includes a configuration console and web based configuration access. This is also free from VMware. AMD64 users should see VMware/Server/AMD64

Installing Ubuntu in a Virtual Machine

  • Download an Ubuntu .iso image.
  • Create a new VM with WMware Server or Workstation

(* Directions to create image for vmware-player using qemu-img should be linked here)

Installing VMware Tools

VMware Tools allows you to sync your virtual machine, run scripts on stopping, and does a few other things. What's missing is the ability to use the mouse without capturing focus first. There is currently no .deb available. Run the following commands:

 
sudo apt-get install build-essential
sudo apt-get install linux-headers-`uname -r` 

The vmtools package relies on the config.h header file (which does not exist anymore in recent kernels). As a workaround, you'll have to create a dummy file:

sudo touch /usr/src/linux-headers-`uname -r`/include/linux/config.h

Now you’ll want to navigate to the VM \ Install VMware Tools menu within your virtual machine. This will mount the vmware tools in Ubuntu so that you can begin the install. To install the tools, copy the .tar.gz to your desktop. Right-click it and "extract here". Now open a terminal and type

sudo ./Desktop/vmware<tab>/vmware-install.pl -d
  • (please note the <tab> means to actually hit the tab key to enable autocomplete to finish the foldername).

Reboot your virtual machine when finished. After rebooting, you can run vmware tools config

vmware-toolbox
  • Also note that vmware-toolbox must be running for the mouse to be able to jump back and forth between the guest os and the host os without hitting ctrl+alt. This is not ideal, but it is also possible to use 'alltray' to get the vmware-toolbox onto the tray instead of the taskbar. It's also GTK1... bleh!

Support