个人工具

UbuntuHelp:InstallingVmPlayer

来自Ubuntu中文

跳转至: 导航, 搜索

Introduction

VMware Player is free software that enables PC users to easily run any virtual machine (which could be running Windows, Linux, or most other OSs) inside their existing OS. VMware Player runs virtual machines created by VMware Workstation, GSX Server or ESX Server and also supports Microsoft virtual machines and Symantec LiveState Recovery disk formats. Note: If you don't have a VM already created for your OS, but do have the install discs (for example, if you wanted to run Windows under Ubuntu), visit EasyVMX who provide a free VM creation tool. Open the file EasyVMX provides with VMware Player, insert your OS install disk, and install your chosen OS.

Ubuntu 6.06 (Dapper Drake) installation

VMware Player is in the Multiverse repository, which must first be enabled. Then install the vmware-player' package (see InstallingSoftware) and follow the wizard. However, there could be some problems with this version because the Ubuntu kernel is sometimes upgraded to a newer version ahead of the vmware-player kernel modules. You can check your kernel version with the following command:

$ uname -r

and current vmware-player kernel modules in repositories with command:

$ sudo apt-get update
$ apt-cache search vmware | grep kernel-modules

For instance, you may have kernel 2.6.15-26-386, but the latest vmware-player kernel module is "vmware-player-kernel-modules-2.6.15-25 - vmware-player modules for Linux (kernel 2.6.15)". In that case, if you are trying to install VMware from the repositories, installation will fail. So you should go to the VMware official website (http://www.vmware.com/download/player/) and download VMware Player for Linux (.tar). Untar it:

$ tar xvfz VMware-player-*.tar.gz 

and run the install script:

$ cd vmware-player-distrib/
$ sudo ./vmware-install.pl

If you had a previous unsuccessful installation, you will get the following error:

A previous installation of VMware software has been detected.

Failure
 
Execution aborted.

In that case, type the following command:

$ sudo rm -rf /etc/vmware/

and repeat the installation process. After successful installation, you can run the VMware player by typing the following command:

$ vmware

Installation on older Ubuntu releases

For installing on Ubuntu releases prior to Dapper Drake, you have to use the manual installation. The archive will be downloaded from VMware site, modules compiled by hand. VMWare Player is available from [1]. You will want to download the latest (.tar) file for Linux. The install doesn't quite work on Ubuntu 5.10, but don't worry, it's not that hard. First you’ll need to install the following package: build-essential (see InstallingSoftware). Now you need to know what version of GCC your kernel was compiled with by entering the following command:

$ cat /proc/version

You will see something like Linux version 2.6.12-9-386 (buildd@rothera) (gcc version 3.4.5 20050809 (prerelease) (Ubuntu 3.4.4-6ubuntu8)) #1 Mon Oct 10 13:14:36 BST 2005 Get correct version of gcc available (if your kernel was compiled with 3.4.X) by installing the following packages: gcc-3.4, g++-3.4 (see InstallingSoftware). Get the C headers for compiling your kernal making sure that you use the version number from before, install the following package linux-headers-`uname -r` (see InstallingSoftware). Then export the location of gcc

$ export CC=/usr/bin/gcc-3.4

Finally extract and install

$ tar zxf VMware-player-*.tar.gz
$ cd vmware-player-distrib
$ sudo ./vmware-install.pl

Thats all.