AmishGeek.com

The personal blog of an old-fashioned geek

You are here: Home / 2009 / Archives for January 2009

Archives for January 2009

VMWare Server on Ubuntu 8.10 – Soup to Nuts

January 12, 2009 by Aaron

I’m a pretty big fan of VMware Server, I’ve been using it for almost a year now.  It is great in a development enviromnent for testing different scenarios.  It also lets me test/play with multiple software packages without having to dedicate resources to testing.   I can also deploy production “toasters” to run specific and optimized apps.

This is a Soup to Nuts walkthrough on running VMWare Server2 on Ubuntu Server 8.10.

First, install Ubuntu Server 8.10.  Since my host machine isn’t going to be running anything except the VMware Server, I don’t want to install anything extra, including any form of xwindows or desktop which will just be overhead (even if it’s not used).  I installed Ubuntu Server with pretty much all of the defaults.  When the install gets to the Software Selection screen, select “Virtual Machine Host”.

Once the install completes and the CD ejects, the rest can be done remotely.  I prefer to work via SSH so I can copy/paste commands and have side-by-side reference from my terminal to my browser.

Now that Ubuntu Server is installed, there are a couple key components that will need to be added to the system before VMWare Server can be installed.  Before we do the next steps, let’s make sure we have an up-to-date apt repository.

sudo apt-get update

build-essential – VMware Server needs to recompile certain aspects of itself to match your systems architecture.  So you’ll need to have the appropriate tools installed to compile.  To install these essential tools, simply enter

sudo apt-get install build-essential

Next we need to make sure we have the appropriate kernel headers from which VMware will compile it’s neceesary components.  The following commands will figure out what version kernel headers your system currently has, and then install the appropriate headers.

apt-cache search linux-headers-$(uname -r)

(On my system this returned: linux-headers-2.6.27-7-server – Linux kernel headers for version 2.6.27 on x86/x86_64)

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

Now all of the necessary components are installed to install VMware server.  Download the latest version of VMware Server.  In my case, this is VMware-server-2.0.0-122956.i386.tar.gz  (You need the tar version for Ubuntu).

Once VMware Server is downloaded, extract it into your user directory.

tar -zxvf VMware-server-2.0.0-122956.i386.tar.gz

cd vmware-server-distrib

Next, run the installer.

sudo ./vmware-install.pl

Install VMware Server with all of the default options.  After it is installed, the installer will ask you if you want to run the configuration script.  Run it now.  If you choose not to run it, you can run it manually.

sudo vmware-config.pl

After agreeing to the terms and conditions of the VMware EULA, it will ask you if you have a compiler installed on the system (if you installed the build-essential packages as listed above, you’re all set).  It will then ask you the location of the C header files that match your running kernel.  It should auto-fill with the directory containing the previously installed header files.  (In my case: /lib/modules/2.6.27-7-server/build/include)

VMware will now build multiple modules to customize itself to your system.  When that is done, it will ask you if you want networking for your virtual machines.  The networking questions can be confusing the first time you run the install.  I typically set up a Bridged connection for each network interface on the host server. (This is like creating a virtual interface for each physical interface for your VM’s to use).  I then set up a NAT interface with a separate subnet, and a Host-Only interface with another separate subnet.  After configuring the network interfaces, it will then compile the networking components.

Next it will ask for the port for remote connections to access the VMware server.  The defaults are

  • 802 for remote connections
  • 8222 for http
  • 8333 for https

Ubuntu does not have a root user, and VMware server usually defaults to the root user for it’s admin user.  So when the configuration says “The current administrative user for VMware Server  is ”.  Would you like to
specify a different administrator? [no] “  Choose “YES”.  At the prompt, enter your username.

After setting the path to the directory that will store the Virtual Machines, you will enter the serial number VMware assigned to you.  Then the configuration will finish with the final VIX components.

If the configuration script exited without any errors, then congratulations!  You now have your very own Ubuntu Server 8.10 host running VMware server 2.0!

Open up your web browser and browse to https://ip.of.vmware.server:8333  If you use a new version of FireFox, you’ll have to add a security exception for the unsigned SSL certificate that VMware server uses.  Enter your username and password and you can now start configuring Virtual Machines through the web interface.

Unfortunately, in order to use the remote console to actually view the virtual machines and interact with the guest OS’s, you’ll need to be accessing it from a Windows desktop.

I hope you find this little article helpful!

Blogroll

  • Duluth DJ
  • Minneapolis Photo Booth Rental
  • Buy a Photo Booth

Categories

  • Bar/Bat Mitzvah
  • Business
  • Class Reunion
  • Client Love
  • Current Events
  • DJ Gear
  • DJ Gigs
  • DJ Training
  • Featured
  • Funny
  • Gaming
  • Gear Review
  • Geek Tech
  • General
  • Misc DJ Banter
  • News
  • Personal
  • Rants
  • Resources
  • Saab
  • School Dance
  • Signature MC
  • Uncategorized
  • Videos
  • Weddings
  • Work

Archives

  • March 2020
  • October 2019
  • January 2019
  • April 2018
  • January 2018
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • October 2014
  • August 2014
  • July 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • September 2011
  • May 2011
  • April 2011
  • October 2010
  • June 2010
  • January 2010
  • December 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • January 2009
  • December 2008
  • October 2008
  • September 2007
  • May 2007
  • February 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • September 2005
  • August 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005
  • March 2005
  • February 2005
  • August 2004
  • July 2004
  • June 2004
  • May 2004
  • April 2004
  • March 2004
  • February 2004
  • January 2004
  • December 2003
  • November 2003
  • October 2003
  • September 2003
  • July 2003
  • June 2003

Copyright © 2023 · Magazine Pro Theme on Genesis Framework · WordPress · Log in