Saturday, March 12, 2011

Installing Virtual Server VM Additions on Windows Server 2008 & Windows Vista

Virtual Machine Additions are a very important component of Virtual Server 2005 (and Virtual PC 2007). Running VM Additions on a VM is not a must, but you'd better do it as soon as possible, even as the first thing to do right after finishing the installation phase of the OS itself.
Note: if for some reason, you're using VMware products to virtualize Windows Server 2008 Server Core, you might be interested in reading my Installing VMware Tools on Windows Server 2008 Server Core Installations article.
Virtual Machine Additions adds the following enhancements to a guest operating system:

  • Improved mouse cursor tracking and control
  • Greatly improved overall performance
  • Virtual machine heartbeat generator
  • Optional time synchronization with the clock of the physical computer
You can use several methods to install the VM Additions:
  • Through the Virtual Server administrative website
  • Through VMRC Plus
  • Unattended installation
  • Through scripting
Additionally, if you've got Microsoft System Center Virtual Machine Manager (SCVMM) installed, you can also:
  • Install the VM Additions from the VMM console
  • Use PowerShell
Let's see how each method is carried on:

Using VMRC Plus to Install the VM Additions

If you've got VMRC Plus installed you can easily install VM Additions by performing these steps:

  1. In the VMRC Plus console, point to the virtual machine you want to install the VM Additions on, and then double-click it to turn it on.
  2. Once the virtual machine has started, point to the virtual machine name, and then double-click it to remote control it.
  3. Log on to the virtual machine as an administrator or member of the Administrators group.
  4. Once the guest operating system is loaded, in the Console Manager window click Media > Install Current VM Additions.
  5. Inside the VM, follow the prompts and perform the installation.
  6. You must reboot the guest virtual machine in order for the VM Additions to function properly.

Using the Virtual Server administrative website to Install the VM Additions

To install Virtual Machine Additions through the Virtual Server administrative website please follow these steps:
  1. Open the Virtual Server Administration website.
  2. In the navigation pane, under Virtual Machines, point to Configure and then click the appropriate virtual machine.
  3. In Status, point to the virtual machine name, and then click Turn On.
  4. Once the virtual machine has started, point to the virtual machine name, and then click Remote Control.
  5. Log on to the virtual machine as an administrator or member of the Administrators group.
  6. Once the guest operating system is loaded, press the HOST KEY to release the mouse pointer, and then in the lower-left corner under Navigation, click Configure virtual_machine_name, where virtual_machine_name is the name of the VM you wish to install the VM Additions on.
  7. In Configuration, click Virtual Machine Additions, click Install Virtual Machine Additions, and then click OK.
  8. Under Status, point to the virtual machine name, and then click Remote Control.
  9. Click in the Remote Control window to return to the guest operating system. The Virtual Machine Additions installation wizard will start. Proceed through the wizard.
  10. Once the wizard is complete, you will be prompted to restart the virtual machine to complete the installation.

Using Unattended Installation to Install the VM Additions

To perform an unattended installation, place the Virtual Machine Additions image file (.ISO) to a location where it can be accessed by the virtual machines. Logon to the VM and in a command prompt window from within the VM type the following command:



Using Scripted Installation to Install the VM Additions

The script to install Virtual Machine Additions in a running guest OS is fairly straightforward, but for a good scripting guide I suggest you look at Desmond Lee's excellent article:

Using the SCVMM Administrator Console to Install the VM Additions

First, it is recommended that you add the Virtual Machine Additions to your VMM Library. This will allow you to use the same ISO image for all of your virtual machines.
To add Virtual Machine Additions to your VMM Library:
  1. Copy the VMAdditions.iso file to a share in the Virtual Machine Manager library and then refresh the library server. The default location is C:'Program Files'Microsoft Virtual Server'Virtual Machine Additions.
  2. If you do not see the VMAdditions ISO file in Library view or when you browse for a known image file, disable any filters and manually refresh the library.
To install Virtual Machine Additions on an existing virtual machine:
  1. In Virtual Machines view, right-click the virtual machine on which you want to install Virtual Machine Additions, and then click Properties
  2. In the Virtual Machine Properties dialog box, display the Hardware Configuration tab.
  3. If there is no DVD drive, add a DVD drive to the IDE device by clicking DVD on the New menu bar to add one.
  4. Click Known image file, click Browse to open the Select ISO dialog box, click the VMAdditions.iso file, and then click OK.
  5. Start the virtual machine. Virtual Machine Additions will install from within the running virtual machine.

Using SCVMM and PowerShell to Install the VM Additions

Coming from this blog - VMM Beta 2: Installing VM Additions:
Here is a PowerShell script you can run on the VMM server that will do that. It assumes that you have an ISO called VMAdditions.iso in a library share managed by VMM. The VM Additions are installed with Virtual Server 2005 R2 SP1 in the <yourinstalldrive>'Program Files'Microsoft Virtual Server'Virtual Machine Additions folder. So you first either copy this ISO to the library for use on all VMs, or modify the script to use the copy local to the host your VM is on.
Copy the following text and save it as Install-VMAdditions.ps1:

 To use this script:




The VM Additions installer will launch automatically inside the guest OS.
Notes:
  • The VM does not need to be running order to attach an ISO to a Virtual DVD drive, but the VM does need to be running in order to install VM Additions.
  • On the Set-VirtualDVDDrive lines, the –Link¬ parameter means: Point to the ISO inside the library instead of copying it to the host.

Reinstalling Virtual Machine Additions for use with Virtual PC

If you move a virtual machine that was created with Microsoft Virtual PC to Virtual Server, we recommend that you reinstall Virtual Machine Additions, even if it was installed in Virtual PC. This is because the version of Virtual Machine Additions included with Virtual Server has been updated.
Current VM Addition versions are:
  • VM Additions in VS 2005 R2 SP1 = 13.813
  • VM Additions in VPC 2007= 13.803
Links:
VMM Beta 2: Installing VM Additions
Microsoft Certified Professional Magazine Online | Feature Article: Scripting Basics for Virtual Server 2005 R2, Part 2

12 comments:

Anonymous said...

Fantastic beat ! I would like to apprentice even as you amend your website,
how can i subscribe for a weblog site? The account helped
me a appropriate deal. I had been tiny bit familiar of this your broadcast offered
vivid transparent idea
My website ... melbourne university australia

Anonymous said...

Hi there! This is my 1st comment here so I just wanted to give a
quick shout out and tell you I truly enjoy reading your posts.
Can you suggest any other blogs/websites/forums that
cover the same topics? Thank you!
My blog ; web24

Anonymous said...

I just could not leave your site prior to suggesting that I actually loved the standard information an individual supply on your visitors?
Is going to be again regularly in order to investigate cross-check new posts
Also visit my webpage scholarship australia

Anonymous said...

You ought to take part in a contest for one of the highest quality sites online.

I'm going to highly recommend this website!
Feel free to surf my web page Web24

Anonymous said...

Excellent post. I certainly appreciate this website. Continue the
good work!
My site livejournal.com

Anonymous said...

Hi, I do believe this is an excellent site. I stumbledupon
it ;) I'm going to return yet again since i have book marked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.
My web blog Recommended Site

Anonymous said...

For most up-to-date information you have to go to see the web and on internet I found this site as a finest site for latest updates.
my page :: Read Full Article

Anonymous said...

Greetings I am so grateful I found your blog page, I really found you
by accident, while I was browsing on Bing for something else, Regardless I am here now and would just like to say many thanks for a fantastic
post and a all round entertaining blog (I also love
the theme/design), I don't have time to look over it all at the moment but I have book-marked it and also added in your RSS feeds, so when I have time I will be back to read more, Please do keep up the awesome job.

Feel free to visit my web blog :: Recommended Site

Anonymous said...

You are so cool! I do not believe I've truly read anything like this before. So great to discover another person with original thoughts on this issue. Really.. thanks for starting this up. This web site is something that is needed on the internet, someone with a bit of originality!

Here is my blog; Additional Info

Anonymous said...

I go to see each day a few web pages and websites to read content, however this blog presents feature based articles.


my web site: wikipedia reference
My site > Useful Link

Anonymous said...

It's genuinely very complex in this full of activity life to listen news on Television, thus I simply use internet for that purpose, and obtain the most recent news.

My webpage: More Info

Anonymous said...

Hi there! This post could not be written any better!
Reading this post reminds me of my old room mate!
He always kept chatting about this. I will
forward this article to him. Pretty sure he will have a good read.
Thank you for sharing!

My weblog; Click Here

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Powered by Blogger