AmishGeek.com Rotating Header Image

VMware Server on Ubuntu 8.10 – Soup to Nuts

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!

11 Comments on “VMware Server on Ubuntu 8.10 – Soup to Nuts”

  1. #1 royalol
    on Jan 29th, 2009 at 10:16 pm

    I used this tutorial and ran through the install, config and setup a vm and works great!

    Thanks for posting this tutorial!

  2. #2 Michael
    on Feb 1st, 2009 at 2:29 pm

    Thanks so much for the write-up! I’m currently trying this myself.

  3. #3 MockY
    on Feb 17th, 2009 at 3:42 pm

    How do you go about ans start/restart the service once the server has been restarted or shut down?

    A sudo /etc/init.d/vmware start only results in
    VMware Server is installed, but it has not been (correctly) configured
    for the running kernel. To (re-)configure it, invoke the
    following command: /usr/bin/vmware-config.pl

    Do I have to reconfigure each and every time the server is rebooted?

  4. #4 Alex Lewis
    on Feb 17th, 2009 at 8:46 pm

    Good article. I’m glad that Ubuntu finally made it easy to install VMware Server with Server 8.10. One thing to note on your instructions: selecting “Virtual Machine Host” on the software selection screen is not advisable since it installs KVM which is another virtualization solution.

  5. #5 Amish_Geek
    on Mar 12th, 2009 at 10:38 am

    RE: MockY

    If your server rebooted due to an upgrade, which includes a new kernel, you WILL need to recompile the kernel modules for vmware to start.

    I recommend only upgrading your kernel for security patches if you don’t want to be reconfiguring the vmware modules every other week.

  6. #6 Amish_Geek
    on Mar 12th, 2009 at 10:39 am

    Re: Alex Lewis

    I was not aware that VMware installed KVM when “Virtual Machine Host” is selected. I’ll have to try a vmware server install without that to see how it’s affected.

  7. #7 Deva
    on Apr 22nd, 2009 at 8:53 pm

    Great work.

  8. #8 KrisBelucci
    on Jun 2nd, 2009 at 2:29 am

    Hi, good post. I have been wondering about this issue,so thanks for posting. I’ll definitely be coming back to your site.

  9. #9 AndrewBoldman
    on Jun 4th, 2009 at 5:57 am

    Great post! Just wanted to let you know you have a new subscriber- me!

  10. #10 Kelly Brown
    on Jun 12th, 2009 at 11:44 am

    Hi, gr8 post thanks for posting. Information is useful!

  11. #11 JaneRadriges
    on Jun 13th, 2009 at 10:38 am

    Great post! I’ll subscribe right now wth my feedreader software!