Virtualization - Step 3 Install VMware Server

The next step is to install and configure VMware server so that I can configure virtual machines to run various other operating systems concurrently with Slackware. There is an excellent, although a bit outdated, article about configuring VMware for Slackware here:

http://www.cs.ucr.edu/~jbyrne/vmware.htm

An updated version of the installation instructions for Slackware 12 follows:

  • Download the VMware packages from http://www.vmware.com/download/server/ . Because of a patch that needs to be applied to support the 2.6.21.5 kernel used by Slackware 12 you need to download VMware 1.0.2 because the patch doesn’t seem to work for 1.0.3. You will need VMware Server for Linux, the Management interface and the VMware Linux Server Client.
  • You need to set up some ‘missing’ SysV directories. In /etc create init.d and rc0.d, rc1.d, …, rc6.d if they don’t already exist.
  • Extract the VMware server archive to a temporary directory then cd to ./vmware-server-distrib and execute ./vmware-install.pl
  • When it asks for the location of the startup scripts tell it to use /etc/init.d and /etc.
  • Respond to the prompts according to your preferences (I installed everything into /usr/local/vmware).
  • When it asks if you want to run vmware-config.pl answer NO. You need to apply a patch to support the 2.6.21.5 kernel before you can proceed.
  • Download the patch from:
    http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update110.tar.gz
  • Extract the archive to a temporary directory then cd to ./vmware-any-any-update110 and execute ./runme.pl.
  • After patching the VMware source this will ask if you want to run vmware-config.pl. Answer YES. This is going to recompile the VMware Server and ask you some configuration questions along the way. Answer YES when asked if you want to use bridge networking and host only networking. Answer YES when asked if you want to automatically detect an unused local subnet. WRITE DOWN the subnet addresses detected. NOTE: For reasons that escape me I had to manually run /usr/local/vmware/bin/vmware-config.pl –compile after this procedure beause VMware refused to start a virtual machine with an error stating the there was a version mismatch. NOTE: Before compiling VMware make certain that the last kernel build in /usr/linux/src matches the kernel that you are running. I lost most of a day because the last kernel that I built had PAE enabled but the one that I was running didn’t. VMware refused to start a virtual machine and gave no clue as to why until I rebuilt a kernel with PAE disabled.
  • Now you need to set up VMware to start when the system boots. To do this copy /etc/init.d/vmware to /etc/rc.d/rc.vmware and make sure that it is executable. Then add these lines to /etc/rc.d/rc.local:
    if [ -x /etc/rc.d/rc.vmware ]; then
    /etc/rc.d/rc.vmware start
    fi

Leave a Reply