Welcome to MSDN Blogs Sign in | Join | Help

Virtual Varia

Verily verbose and vainglorious vicissitudes on various virtual and vibronic vagaries.

Syndication

News

XBOX Live!



These postings are provided "AS IS" with no warranties, and confer no rights.
How do I automate "Viridian" installation on Win2k8 RC0?

Sorry for the abrupt end to the posts last week, everyone.  I was out sick.  But fear not, for I am once again a healthy and strapping young man.  And as such, I hereby return to blogging Virtual Goodness!

So - automating "Viridian" installation.  I'm happy to provide some information on how to do this, with the caveat that you should not be rolling out this build of "Viridian" anywhere near your data center.  If you're doing a massive, wide-scale deployment of "Viridian" at this stage in the development process, and you're not a member of the TAP program, you should call a therapist immediately.  If, however, you're just curious about an alternate installation method, read on.

I'm assuming by automate, we're talking about doing something simple like creating a batch file specifically to run a series of tasks that will install "Viridian", so that's the level of information I'm going to provide.  Feel free to adapt this however you'd like - I promise not to copyright this.

I also won't get into how to install Windows in unattended mode - there's plenty of information on how to do that online, so I won't add yet another resource.

The first step to installing "Viridian", obviously, is to get the software onto the system.  To do this, we need to stage and install1 the two MSU packages that contain the "Viridian" server and management components.

To install the management tools from the command line, run:

start /w wusa %SystemRoot%\WSV\Windows6.0-kb939854-x64.msu /quiet

To stage the "Viridian" server components from the command line, run:

start /w wusa %SystemRoot%\WSV\Windows6.0-kb939853-x64.msu /quiet

Reboot your server before moving on to the next step using your favorite reboot technique.

To install the "Viridian" server components from the command line, run:

ServerManagerCMD.exe -install WSV

This is the command line version of the Role Management Tool that I mentioned in my original post, and will perform the installation for you.

Reboot your server again.

As for configuring the network switches or creating VMs programmatically, I'm going to simply stop here and say that yes, it will be possible in future builds.  We do not have scripts available publicly that do this now, and we are not publishing any documentation on our WMI interfaces until our Beta release.

Hope this helps!

1 "What's up with this crazy lingo you're throwing around here, Mike? What's the difference between staged and installed?"
I'm glad you asked, Billy.  Think of the last time that you needed to install an optional component on Windows XP or Windows Server 2003.  Unless you had the whole installation CD copied to a network share or the local drive (which a lot of OEMs do), you probably needed to insert your installation CD during the process so Windows could get all the files it needed.  

In Windows Vista and Windows Server 2008, we changed how that works.  There's a "package store" on every installation that contains the binaries for all of the optional components and features so that you don't need to provide the installation DVD at every install/uninstall of an optional component.  These binaries aren't loaded into memory, and aren't even in the same location they would be if the component was installed.  They're just present on the system so that optional components and feature installation is a little bit easier.

When a component is only available in the package store, and is not installed on the system, it's staged.  When a component is installed on the system, it's - you guessed it - installed.

Published Monday, October 01, 2007 12:44 PM by mikekol

Comments

# Techy News Blog » How do I automate “Viridian” installation on Win2k8 RC0? @ Monday, October 01, 2007 3:58 PM

PingBack from http://www.artofbam.com/wordpress/?p=4340

Techy News Blog » How do I automate “Viridian” installation on Win2k8 RC0?

# No WMI docs until Beta @ Wednesday, October 03, 2007 8:50 AM

So no WMI docs until February 2008 when Windows 2008 ships? That's a bit of a bummer. Is there any way to get hold of these sooner? Is this: http://download.microsoft.com/download/5/b/9/5b97017b-e28a-4bae-ba48-174cf47d23cd/VIR043_WH06.ppt

all there is available in public? It's a shame, because Mike Neil suggested here: http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1000969&SiteID=17 that docs would be available sooner (but then he also seemed to suggest that Viridian would be in Beta 3, so I guess it slipped)

and the Win2008 RC0 press release here: http://www.microsoft.com/presspass/features/2007/sep07/09-24windowserverrc0.mspx

says:  

"Windows Server virtualization offers standards-based WMI interfaces and published APIs for management – complete integration with the Windows Server management UI to meet customers’ existing skills."

I guess that should be:

"will have published APIs for management"

I don't want to come across as whiney and pedantic, but I would really, really appreciate some documentation!

Or is the beta release of WSV due some time between now and February, with an RCO shipping with Windows 2008 RTM?

Aitor Ibarra

# re: How do I automate "Viridian" installation on Win2k8 RC0? @ Wednesday, October 03, 2007 2:16 PM

Aitor - I'm not working on the documentation myself, but I very much doubt that it will be available before beta.  

We understand that people are eager to get their hands on the WMI docs, and we're working to complete that documentation, but releasing it before beta is likely not realistic.

mikekol

# re: How do I automate "Viridian" installation on Win2k8 RC0? @ Wednesday, October 03, 2007 10:44 PM

Mike,

Sorry to pollute your blog for the n'th time - I'd pm / email you but can't find contact details for you!

Anyway, even if releasing your draft docs isn't possible, it would be great if just a few examples (e.g. start/pause/shutdown/adjust cpu% ) could be posted... just to give a taste.

I had a look at the code in the ppt I linked to above, and poked around using powershell. It looks like some of the class names have changed since WinHec 2006. Anyway, I got the code to list VMs working by changing "msvm_VirtualComputerSystem" to "msvm_VirtualSystemSettingData"... so there's one example right off!

cheers,

Aitor

Aitor Ibarra

New Comments to this post are disabled
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement  
Page view tracker