6

Turning your HP MSS EX49x into a Virtual Server – Part 2

Introduction

This article will cover installing VMWare Virtual Server 2.0 on Windows Home Server and setting up guest operating systems.  Part 1 covered the steps in upgrading the hardware in an HP MediaSmart Server EX490 to deal with virtualization.

You will need a copy of VMWare Server 2.0.2, a License Key (given for free after a no-fee registration with VMWare.com) and Remote Desktop Access to you Windows Home Server.

Got VMWare?

In the last paragraphs of the previous article on turning your HP MSS EX49x into a Virtual Server I said it was a good idea to get hold of VMWare Server 2.0.  You can download it by following this link and going through the download steps or by navigating the huge menus at VMWare.com.  You will have to register with VMWare but you get the option to opt out of emails if you won’t be interested in the odd email about Virtualization and Cloud Computing.  The download is 507MB and I advise you go through VMWare’s Download Manager.  The version you need to get is VMWare Server 2.0.2 (10/26/2009) – it’s the first version under the Binaries heading, be careful not to download the Linux version or the API instead.  On this same page is the only time you will be given the licensing information for VMWare Server.  I suggest saving this page or making a copy of the License Key somewhere safe – keys are provided for both Linux and Windows versions.  As always I recommend you use a Client PC to do the actual download and move the file to your Windows Home Server Software Share once you have virus scanned the executable.

Unleash The Beast

Make no mistake, running VMWare and Virtual Hosts can be very demanding on your system.  That’s why I went with 4GB of memory and a Quad Core CPU in my EX490 to handle the demand.  If you are expecting to get increased computing power through software then this is not the way do it – if you find out how drop me a line and we can patent it together!

First open the downloaded installer for VMWare Server 2.0.2 and select run:

image

The VMWare Logo should come up on the screen and a dialog box will appear, disappear and reappear before finally getting to the first stage of the installer. Hit Next to proceed to the license agreement:

image

At the license agreement select “Yes, I accept the terms in the license agreement” and then select Next:

image

Accept the default installation location of “C:\Program Files\VMware Server” by selecting Next:

image

On the next screen go with the defaults by selecting next.  I don’t advise you change the port numbers unless you know exactly what you are doing.  There should be no need to map these ports to you router and they are purely for internal LAN access and to Access the VMWare Server Web Console.  One option you might decide to change is to start and stop virtual machines automatically with the system.  For me I want my Virtual Hosts running when my server is online though you can change this option later after installation if you change your mind:

image

Select your choices here but I find it handy to get to the console in a number of ways, hitting next will take you to the final step before installation commences:

image

If you are sure you want to go ahead with the installation select Install and go off and make a cup of tea while the installation takes place:

image

You’ll get the standard Windows Installer Progress Status window whilst installation is in progress:

image

When all has completed well you should be greeted with a Window saying installation is complete.  Hit Finish to complete the installation: 

image

Finally you will have to reboot the system as VMWare has installed drivers and services required for it’s successful operation:

image

During the installation VMWare will install some virtual network adapters.  You may find that some Windows Home Server processes such as the Port Forwarder or Windows Live Custom Domains detect these adapters and try to make an internet connection through them.  This will result in temporary failure in these services and an error will be generated.  Windows Home Server will recover automatically once it works out where the real connection to the outside world is again.

Get On Board

Once you have rebooted and you’ve given your Windows Home Server enough time to start all it’s processes and services you should be able to navigate to the VMWare Server Web GUI.  You can do this from any PC on your home network.  Access from a MAC of Linux machine should work but I’ve not tried it myself.  The address you need to go to is https://hpstorage:8333/ui/ – replace hpstorage with the name or IP address of your server but make sure you include the https and that the port is 8333.  As soon as you connect VMWare Server will prompt you for a Login Name and Password – though before that is may ask for a client certificate, ignore it and select cancel.  The login credentials used within VMWare Server are the same as your Windows Home Server User Accounts.  However for now only the Administrator will have access to the GUI.  Also you will note that there are some warnings about the website certificate not being trusted, we’ll fix this later.  Enter the Administrator Username and Password and select Log In:

image

When you first login you might be prompted by internet explorer to run the “VMWare Remote Console Plug-in” you can allow this as it will let you to see a view of your virtual machine when it is running.

image

License Key

There are a few steps we need to take before we can get started with creating a Virtual Machine.  First we need to enter our serial number.  From the “Application” Menu Item in the Top Left of the Window select “Enter Serial Number”:

image

In the Serial field enter your serial number and hit OK.  Now you are registered for unlimited use of VMware Server 2.0. 

Certificate Issues

Next lets fix the certificate warning.  Click on the “Certificate error” warning in the address bar to reveal more information about the problem and select the “View Certificates” link:

image

In the next window select “Install Certificate…” :

image

Select Next on the Certificate Import Wizard:

image

In the second stage of the wizard select the “Place all certificates in the following store” radio button and then select Browse:

image

In the pop up window select “Trusted Root Certification Authorities” and select OK:

image

Select next to move on through the wizard, finally completing the wizard by clicking Finish:

image

You will then be prompted with a security warning that a Certification Authority change is about to take place.  Select Yes to confirm as we have instigated this change:

image

You will then get confirmation that the import was a success.  Close the remaining certificate windows.  You will still get a warning about the certificate but Internet Explorer won’t inhibit you from getting to the site initially like before.  Next time you restart IE the warnings should be gone.

Adding A User

Personally I don’t like to type in my administrator user name and password unless I need to so I’ve added access to the Web GUI for my regular Windows Home Server User Account.   From the Web GUI ensure that HPSTORAGE (or the name of your server) is highlighted in Inventory and then select the Permissions tab:

image

Then you want to select the “New” link to bring up the new permissions view.  From there select your desired login user name and in the Role Drop Down List select Administrator.  When you are done select OK:

image

You should then notice that the selected user has been added to for access.  Next we will run through creating a virtual machine.

Your First Virtual Machine

Now I appreciate not everyone is going to be interested in Linux, after all this is a Windows Home Server blog but rather than go through the longer steps of installing Windows and reply to questions on why didn’t I use such and such a version of Windows over another I decided to setup Damn Small Linux.  The other neat thing is it’s only a 50MB download and installation is fast and easy for demonstration purposes.  First download the ISO to your datastore.  You will have to download to a shared folder on your Windows Home Server and then you have one of two options.

1) Add the shared folder to your available datastores within the VMWare Web GUI

2) Using a Remote Desktop session move the ISO from your download location to the existing datastore location in “D:\Virtual Machines”

I’ll go through the first step only as the later option is quite straightforward.

Adding A Datastore

The first thing to remember that this datastore is purely for installation media (ISO files).  You don’t want to be using this datastore to store anything to do with a running Virtual Machine (VM) as Drive Extender and VMWare will get quite upset and at the very least you will get file conflict issues and in some cases loss of data in your VM.

I already have an ISOs folder in my Software Share that I use to store all my Installation CD Images.  First in the VMWare Web GUI ensure that HPSTORAGE is selected in the Inventory List.  Then in the right hand tab select summary to show the Datastores section and from the Commands section choose Add:

image

Fill out the Add Datastore form with the following information.  Make sure you use the “Local Datastore” method and specify the server as localhost.  You then want to add the \\localhost\software\ISOs folder or your chosen location but make sure you don’t use the CIFS options or fields.  When you’ve got those parameters entered click OK:

image

You should now see the datastore listed and this will allow you to share installation files between Windows Home Server and VMWare.

The VM

From the same command section as in the previous step select “Create Virtual”.  A Create Virtual Machine Wizard will be presented.  The first step is to specify the Name and Location of the VM.  I called mine DSL and the location must always be in the Datastore location – never install a VM in a Windows Home Server Shared Folder.  When you’ve got it how you want click Next:

image

Next you must select the Guest Operating System and Version.  VMWare uses this to work out what settings to use and also what devices to expose to the VM.  If you were going to install Windows then you would select the Windows operating system and choose the correct version from the drop down list.  For Windows 7 choose Vista.  For this example you will need to select Linux Operating and Other Linux 32-bit:

image

Next choose memory and processor count.  Don’t go crazy here, you are sharing resources with your Windows Home Server so 256MB and a single core processor is fine:

image

Next we are going to create a Virtual Disk.  Remember only create a big enough disk for what you need.  With Thick Provisioning of Virtual Disks any free space left on the drive is only free to the Guest Virtual Machine – the free space is considered as used by Windows Home Server and too much overhead is simply a waste.  Select “Create a New Virtual Disk” and on the next screen stick with the default options and select next:

image

At the next screen ensure you are going to add a network adapter and select next.  Leave the connection as bridged and check the box for “Connect at Power On”:

image

At the next step of the Wizard check that “Use” an ISO” is selected and hit next.  On the next windows hit browse, navigate to the ISOs and select the DSL install ISO we downloaded earlier and then select OK:

image

Ensure that the ISO is connected at power on and select next. Select “Don’t Add a Floppy”, then select “Don’t Add a USB” and finally you should be presented with a final summary of what will be created.  When you are ready select Finish for the VM to be created:

image

Whilst the VM is being created a summary will be presented in the bottom of the GUI keeping you up to date on the progress of the VM creation.  When it has been completed you can move on to the next stage.

Power Up

From the VMWare Web GUI there are a number of ways to start the VM.  You can click on HPSTORAGE and view the VM in the Virtual VM list or you can select the VM in the Inventory List.  Both will then enable the transport control buttons in the top of the GUI or you can use the commands provided in the section on the right.  However, selecting the VM in the Inventory view will allow you to select the console option.  If you select the console option and click the big ‘play’ icon the VM will power on.  After a few moments you will then be given the option to open the console in a new window – simply click again.  You can then see your VM starting up:

image

That’s it – you are now in the world of virtualization.  There are quite a few things that remain but I will leave that to the many resources out there on the internet.  One very important item is the installation of the VMWare Tools.  As far as you VM is concerned it thinks it is a real computer but it will need to know that it is in fact running within another system for the purpose of shutting down and rebooting cleaning if the server is ever rebooted.  From the VM summary in the Web GUI there is a link in the Status Section allowing you to install the VMWare Tools.  Non-standard Linux installations can be tricky to get the tools running as you need to crack open a compiler but setting up the Tools on Windows VMs are straightforward.  If you get stuck drop a line in the forums and we’ll be glad to help out.

I hope you enjoyed these two articles on getting virtualization running on your Windows Home Server.

Share this WHS Article with Others:

| |

About the Author

Comments (6)

Trackback URL | Comments RSS Feed

  1. Magnus says:

    Very interesting! 🙂
    I do have one simple question:
    Why, other than “it’s possible”, are you virtualizing?

    I mean, I’m planning to virtualize my home automation server, but what else is there?

  2. Magnus says:

    Ah, thanks!

    How do you move “tweaks” from one OS to another?

  3. Anon says:

    Thanks for the Guide, was able to Virtualize a Copy of Windows XP Retail lying around.

    I am a recent Mac Convert, but once in a while need to run legacy Dos / Windows applications.

    I use Remote Desktop Connection for Mac to Remote Desktop into the HomeServer and use the legacy applications.

    This way I save about 50 GB on the MacBook Pro and cost of purchasing Parallels.

  4. Anon says:

    I meant I Remote Desktop into the Virtualized WinXP on the HomeServer and use the legacy applications.

  5. Warrentheo says:

    I attempted something like this on my, put in a new OS drive, installed Ubuntu Server x64 (so that my 4gb ram could be used at least by the host) installed VMware server on it in a similar fashion, but when trying to install my first guest, found out the hard way that the stock E5200 doesn’t support the virtualization extensions (should have checked before all that trouble 😛 ), so now am looking into a Q9550s, but before I buy buy that, i noticed that there is nothing (at least that I can see…) for setting the bios VT-x settings, do the EX49x’s just support this if you get a CPU that does?

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.