VmWare

Differences between revisions 8 and 9
Revision 8 as of 2005-10-27 13:06:47
Size: 3903
Editor: faui06
Comment: updated for breezy
Revision 9 as of 2005-11-19 00:57:57
Size: 3885
Editor: ip68-5-71-42
Comment: Updated to reflect latest installation on 5.10 and using update95.
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
 * Run the following command. It will install the required compiler and kernel headers required to compile the vmware kernel module:
{{{
 0. Install the required compiler and kernel headers needed to compile the vmware kernel module. {{{
Line 9: Line 8:
}}}

 0. Download VMWare Workstation 5.0 from [http://www.vmware.com/ VMware] and upack. {{{
tar xzf VMware-workstation-5.0.0-13124.tar.gz
Line 11: Line 14:
 * Download the VMWare Workstation 5.0 gzipped tar file from vmware
   {{{
$ pwd
/home/you/downloads
$ ls -l VM*
-rw-r--r-- 1 you you 68451550 2005-07-13 20:05 VMware-workstation-5.0.0-13124.tar.gz
 0. Run the VMware install script, but ""DO NOT run vmware-config.pl"" (as offered by the install script). {{{
( cd vmware-distrib && sudo ./vmware-install.pl )
}}}
  * You should be able to accept the default answers.
  * You want to use the ""vmware-any-any-update"" (below) in place of running ""vmware-config.pl"".

 0. Download the current ""vmware-any-any-update"" package from http://ftp.cvut.cz/vmware/ and unpack. {{{
tar xzf vmware-any-any-update95.tar.gz
Line 19: Line 24:
 * Extract the archive
{{{
$ tar xzf VMware-workstation-5.0.0-13124.tar.gz
 0. Run the ""vmware-any-any-update"" script, with the environment variable CC set to the version of gcc used to compile the Linux kernel. {{{
export CC=/usr/bin/gcc-3.4
( cd vmware-any-any-update95 && sudo ./runme.pl )
Line 24: Line 29:
 * Become root, cd into the installer and run it
{{{
$ sudo -i
# cd /home/you/downloads/vmware-distrib
# ./vmware-install.pl
With any luck, the modules should be compiled and tested, and vmware should be installed and ready to run at this point: {{{
$ /usr/local/bin/vmware
Line 31: Line 33:
 * You should be able to accept most of the default answers.

 * If the compiling of modules fails, then try installing the latest "any-any" patch from this ftp site: http://ftp.cvut.cz/vmware/. At time of writing this is: http://ftp.cvut.cz/vmware/vmware-any-any-update94.tar.gz
  * To install it, just extract the tarball and run the runme.pl as root. See below for detailed instructions


 * With any luck, the modules should be compiled and tested, and vmware should be installed and ready to run at this point:
{{{
$ /usr/local/bin/vmware
}}}
Line 51: Line 43:
 wget http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-any-any-update94.tar.gz }}} wget http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-any-any-update95.tar.gz
}}}
Line 55: Line 48:
 tar xzvf vmware-any-any-update94.tar.gz }}}

 0. Change into the directory where the patch was extracted {{{
 cd vmware-any-any-update94 }}}

 0. Apply the patch
{{{
 # sudo ./runme.pl
 tar xzvf vmware-any-any-update95.tar.gz
Line 65: Line 51:
 After the patch is applied it will prompt to run '''vmware-config.pl'''. Choose Yes and accept the defaults.  0. Change into the directory where the patch was extracted. {{{
 cd vmware-any-any-update95
}}}
Line 67: Line 55:
 0. Apply the patch. {{{
 # sudo ./runme.pl
}}} After the patch is applied it will prompt to run '''vmware-config.pl'''. Choose Yes and accept the defaults.

UBUNTU as a VMware host

Here are the steps I took to get VMWare Workstation 5.0 running on an Ubuntu 5.10 system on an amd64 based computer.

  1. Install the required compiler and kernel headers needed to compile the vmware kernel module.

    sudo apt-get install linux-headers-$(uname -r) build-essential g++-3.4
  2. Download VMWare Workstation 5.0 from [http://www.vmware.com/ VMware] and upack.

    tar xzf VMware-workstation-5.0.0-13124.tar.gz
  3. Run the VMware install script, but ""DO NOT run vmware-config.pl"" (as offered by the install script).

    ( cd vmware-distrib && sudo ./vmware-install.pl )
    • You should be able to accept the default answers.
    • You want to use the ""vmware-any-any-update"" (below) in place of running ""vmware-config.pl"".
  4. Download the current ""vmware-any-any-update"" package from http://ftp.cvut.cz/vmware/ and unpack.

    tar xzf vmware-any-any-update95.tar.gz
  5. Run the ""vmware-any-any-update"" script, with the environment variable CC set to the version of gcc used to compile the Linux kernel.

    export CC=/usr/bin/gcc-3.4 
    ( cd vmware-any-any-update95 && sudo ./runme.pl )

With any luck, the modules should be compiled and tested, and vmware should be installed and ready to run at this point:

$ /usr/local/bin/vmware

UBUNTU as a VMware guest

VMware version 5 is reported to work with Ubuntu out-of-the-box. Try using NAT rather than bridging when using VMware 5 with Ubuntu as a guest OS.

VMware Workstation 4, VMware Workstation 4.5, or VMware GSX 3.1 under Ubuntu causes some problems because of Ubuntu's use of udev. Fortunately there is a patch for VMware that solves this and many other problems. Follow the instructions below after you have installed VMware.

  1. Open a terminal and change into a temporary directory.
  2. Download the patch by running

    wget http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-any-any-update95.tar.gz 
    • (check the directory for new versions if that wget fails).
  3. Extract the patch by running

     tar xzvf vmware-any-any-update95.tar.gz 
  4. Change into the directory where the patch was extracted.

     cd vmware-any-any-update95 
  5. Apply the patch.

     # sudo ./runme.pl 

    After the patch is applied it will prompt to run vmware-config.pl. Choose Yes and accept the defaults.

Installation tips

  1. The install script asks for the path of gcc. If it isn't automatically found find the path on your system by running

     which gcc 

    . Set the full path to the binary in the variable CC:

     export CC=/usr/bin/gcc-3.4 
  2. When you run vmware-config.pl, if the script can't find your kernel's C headers you must install the appropriate headers package. Do this by running

    sudo apt-get install linux-headers-$(uname -r) 

    You must then point vmware-config.pl to the appropriate directory, such as

     /usr/src/linux-headers-2.6.10-5-686/include 
  3. If the VMware Management Interface (MUI) for GSX complains about a lack of libdb.so.3 and instruct you to get compat-db-3.3.<##>-<#>.i386.rpm. You want the ubuntu package libdb2 for this.

Enabling Parallel Port Access

VMware allows direct access to parallel ports, which is handy if you've got a scanner that only has Windows drivers. You may need to make the following minor change to VMware's startup script.

  1. Open /etc/iniit.d/vmware in an editor by running

     sudo gedit /etc/init.d/vmware 
  2. Find the case statement that looks like this (around line 814)

      # See how we were called.
      case "$1" in
       start) 
  3. Add the following text at the end of the case statement

     rmmod lp
     chgrp lpadmin /dev/parport0
     chmod g+rw /dev/parport0 

VmWare (last edited 2008-08-06 16:15:49 by localhost)