Import/Export OVF With Hyper-V Using System Center 2012

A new extension has been released for System Center 2012 Virtual Machine Manager (VMM) that allows you to import and export virtual appliances using the Open Virtualisation Format (OVF).  OVF is a vendor neutral format for out-of-band migration of virtual appliance VMs.  This is the perfect way to get from one cloud to another, where specialisations would make direct import/export impossible.

There is more on this tool on TechNet

VMware also has an OVF tool that you can download.  I think that XenServer 5.6 has XenServer support baked in.

You can learn more about OVF on Wikipedia.

Microsoft Private Cloud Computing Book Nearing The Stores

I just saw this tweet by Damian Flynn, regarding the book Microsoft Private Cloud Computing (Sybex, 2012):

#MsftPrivateCloud And it is done, that final edits have being submitted and the printer takes ownership tomorrow!

Hans, Patrick and Damian did in incredible amount of work on this book.  In fact, Damian went the extra mile *twice* (or was it three times? Smile) to make sure the reader got the very best and latest information on this solution (it’s hard writing a book on something before it RTMs).  Gentlemen, I salute you!

image

Amazon has a date of July 3rd posted.  That’s not always accurate.  And yes, there will be ebook versions, such as Kindle.  Don’t ask me when – you’ll know before I do.

MMS2012 – SC 2012 VMM: PowerShell Is Your Friend, And Here’s Why

Speakers: Hector Linares, Senior Program Manager and Susan Hill, Senior Technical Writer, MSFT

Went from 162 cmdlets in VMM 2008 R2 to 438 in VMM 2012.  They maintained backwards compatibility through aliases.  The cmdlets got renamed so they don’t conflict with the new Windows Server 2012 Hyper-V cmdlets.

POSH is the driving force for the UI.  Cmdlets are executed as jobs in VMM so there’s an audit trail.  Other partners, e.g. TFS or XenDesktop, integrates with VMM cmdlets for deployment.

Overview of VMM 2012 system

  • Infrastructure: HA VMM Server, PowerShell, Upgrade, Custom Properties
  • Fabric: Server lifecycle management, multiple hypervisors, network management, storage management, dynamic optimisation.
  • Clouds: An abstraction of fabrics.  Application ower usage, capacity and capability, delegation and quota.
  • Services: Service templates, application deployment, customer command execution, image-based servicing.

Cmdlet groups: 46 nouns

  • get-command –module VirtualMachinemanager –commandtype cmdlet
  • get-scvirtualmachine
  • Now you run read-SCvirtualmachine to do a refresh
  • Repair-scvirtualmachine wil do the repair action.
  • Stop-scvirtualmachine takes more parameters, e.g. stop (cold), save state, or clean shutdown
  • Register-sCVMHost to register a bare metal host.
  • Restart-SCVMHost to reboot a host.
  • Test-SCVMHostCluster to run a cluster validation.

Domain Join for VM

You can use –DomainJoinOrganizationalUnit “ou=, dc=” to set where a new VM joins in a domain.

-AutolongCredential to  set autologon account and –AutoLogonCount to say how many times that will run.

These must be set at the same time.  You can clean up with disableautologon.

UnattendSettings

Looks like we can use this to customise an unattend.xml for Specialize (3) and OOBE (6) passes.  Use Add)key,value) to add settings.

  • $unattend.add
  • $unattend.remove

Your settings will override settings in GuestOSProfile or VMTemplate.  You have to commit the settings with set-scvmtemplate (I think – quick slides) to use them.

Demo

In the demo, he wants to override a template.  He gets the template.  Now he creates a new temporary template.  He sets the OU for it to join to.  He creates runas account as the account he’ll use for building the VM.  He uses that for autologon.  He get’s the unattend object.  No he adds a bunch of overrides to the template using $unattend.add().  set-scvmtemplate – vmtemplate $template –UnanntedSettings $unattend) | Out-Null commits the overrides.  They create a $vmconfig using new-scmconfiguration –vmtemplate $template –Name ($vmNamePrefix + @_config@)) | fl Name. 

VMM still doesn’t have the ability to create differencing disks so you have to use WMI to do it instead.  Apparently this has been blogged. 

He sets the disk name and location.  This can be done on a per disk basis.  In this cmdlet he’s told it to use an existing VHD he just created using WMI. 

Virtual Machine Configuration

You can create a VM config so you can deploy very specific VM configs, different from the defaults.  $VHD to get-scvirtualharddisk from the library.  Then set$storageclass viariable with get-scstorageclassification.  Now $ComputeTier with get-sccomputertier.  Then $VMconfig with new-scvmconfiguration and the $computertier variable.  $vhdconfig and get-scvirtualharddiskconfiguration and $vmconfig.  setscvirtualharddiskconfiguration and $vhdconfig and $vhd and $storageclass. 

Now $virtualnetworkadatperconfig = get-scvirtualnetworkadapterconfiguration.  Setscvirtunetworkadapterconfiguration with $virtualnetadapterconfiguration.  And then more stuff.  Download the slide deck when it comes out in a few days.

Basically you build up a VM config and then you create a VM from that config.

There is a script on the net that will automatically sign the scripts in your VMM library.  It was written for 2008 R2.

We’re shown a demo where a script checks for expired (by date) VMs and stores them in the VMM library.

Hyper-V Data Exchange

Can read and set the KVPs in the VM.  Can read data from a VM without using the network via read.  Can pass in string values to a VM regardless of power state with Set.  A Key is a registry VALUE create to store DATA.  The value is the DATA.  And a KVPMAP is a hash table is one ore more VALUEs or DATA.

Cool demo where Hector writes to the registry of the VM in different power states (on, off, paused, save state).

VDI

Jobs submitted to VMM using –RunAsynchronously from one or more runspaces.  Hundreds of parallel jobs.  Typically used in the morning bootstorm in VDI.

VMM 2012 has a concept of threadpools.  By default it handles 25 threads per core in the VMM server with a max of 150 (requires a monster VMM server).  High number of context switches can slow performance of the VMM server.  The WCF timeout is configurable (default of 120 seconds).  Monitor the performance of jobs if you increase threadpools.

If you run asynchronously then query the job object for status.  For higher throughput, use multiple threads with multiple runspaces.

Make sure you tune the VMM refreshers in VDI, and also in very large static environments.  4000 VMs doing a light refresh every 2 minutes and a ful refresh every 30 minutes will hammer the VMM server. 

 

System Center 2012 Technical Documentation Downloads

Smell that?  We’re getting close to release!  Microsoft has released a bunch of technical documentation downloads for System Center 2012:

And there’s a lot of related downloads available too:

  • Microsoft Security Compliance Manager: Take advantage of the experience of Microsoft security professionals, and reduce the time and money required to harden your environment. This end-to-end Solution Accelerator will help you plan, deploy, operate, and manage your security baselines for Windows client and server operating systems, and Microsoft applications. Access the complete database of Microsoft recommended security settings, customize your baselines, and then choose from multiple formats—including XLS, Group Policy objects (GPOs), Desired Configuration Management (DCM) packs, or Security Content Automation Protocol (SCAP)—to export the baselines to your environment to automate the security baseline deployment and compliance verification process. Use the Security Compliance Manager to achieve a secure, reliable, and centralized IT environment that will help you better balance your organization’s needs for security and functionality.
  • System Center 2012 – Service Manager Component Add-ons and Extensions: Download and install add-ons and extensions for the System Center 2012 – Service Manager component.
  • System Center 2012 – Orchestrator Component Add-ons and Extensions: Download and install add-ons and extensions for the System Center 2012 – Orchestrator component.

And there are some new management packs too!  Check the catalog, read the documentation, prep, download, import, and configure as specified in that documentation you made sure to read first, rather than lazily importing the management packs via the import GUI and hoping for the best Smile

CTP of SP1 for System Center 2012

Following my post on information for VMM 2012 SP1 CTP, Microsoft released the CTP downloads.  This includes the VMM download and a download for DPM 2012 SP1 CTP. 

The CTP enables the Data Protection Manager component’s repository and agents to run on Windows Server ‘8” as well as providing protection in Windows Server “8” environments. The CTP also adds protection for new features in Windows Server “8”:

  • Hyper-V Virtual Machines on Cluster Shared Volumes 2.0 (CSV2.0)
  • Hyper-V Virtual Machines on remote SMB share
  • Files on De-Duplicated Volumes

The supported operating systems for DPM 2012 SP1 CTP are:

  • Windows 2008
  • Windows 2008 R2
  • Windows "8" Beta

VMM CTP of System Center 2012 Service Pack 1 (SP1) Documentation

This document just appeared on MS Downloads. 

This download provides a step-by-step guide that walks you through the new Virtual Machine Manager (VMM) features in the CTP of System Center 2012 SP1.

New Features In The CTP Release

The VMM CTP of System Center 2012 SP1 provides the following new features of Windows Server 8:

  • Network virtualization: the multitenant network abstraction mechanism.  Not all the capabilities of network virtualization in Windows Server "8" Beta are supported in this CTP.
  • VHDX support: the new virtual hard disk that support 64 TB.  For the CTP release, the library server must be a Hyper-V host to automatically index .vhdx files.
  • Support for file shares that use the Server Message Block (SMB) 2.2 protocol: the new storage alternative.
  • Live migration enhancements: how Windows Server 8 moves VMs

System Requirements

Item

Requirements

Operating system

· All computers that are used for the following roles must be running Windows Server "8" Beta:

· VMM management server

· VMM console

· VMM library server

· Virtual machine hosts

· The VMM database server can be running on either Windows Server "8" Beta or Windows Server 2008 R2.

· The only supported guest operating system for virtual machines in this CTP is Windows Server "8" Beta.

Hypervisor

Hyper-V only (on Windows Server "8" Beta)

SQL Server

· SQL Server 2008 R2 with Service Pack 1

· Standard, Enterprise, or Datacenter edition

· 64-bit edition only

Upgrade

You cannot upgrade from a previous version of VMM to this CTP. This includes upgrading from System Center 2012 – Virtual Machine Manager.

 

Bear in mind that this is just the CTP release, wa-ay before beta.

Hyper-V.nu Event Videos

Carsten Rachfahl has done it again.  Carsten attended the Hyper-V.nu event in Amsterdam a few weeks ago and recorded the presentations.  The quality of his work is impressive IMO.  Thanks Carsten!

 

Hyper-V.nu Community Event, January 2012

If you read this blog or you follow me on Twitter then there is a very strong chance that you also read Hyper-V.nu and follow the crew from there on Twitter too.  They run a great online community that covers Hyper-V and System Center in the Netherlands.  A few months ago they asked if I would come over to speak about Windows 8 Hyper-V Networking at a day-long event they were hosting in the Microsoft offices in Amsterdam.  Well, of course I would.  They’re good guys and Hans Vredevoort was the tech reviewer on Mastering Hyper-V Deployment and is a major contributor to Microsoft Private Cloud.

The guys advertised the event, and within 2 days they’d filled all the seats.  Registrations came from the Netherlands, Belgium, Germany, and UK, and there might be other countries I don’t know about.  It was a good day with technical content, demos, and laughs.

Jaap Wesselius and Peter Noorderijk kicked things off with the keynote, touching on some of the highlights of Windows Server 8 and the history, growth and success of their community.  Then it was me. 

Hans did a good session that went into detail on a small bit of the storage story.  There’s a lot to that story!  His demo was brave and it worked.  With a mix of PowerShell and GUI, he provisioned a storage pool and some spaces, demod a active/active file server cluster, created and permissioned a share, created a VM on a share, and did a live storage migration of a running VM from one share to another. 

Ronald Beekelaar did a deep dive on disk deduplication, talking about this new storage feature, explaining along the way the different methods and technologies that have been used up to now to get more data on disks.  “Chunking” seems to be the way forward!

Maarten Wijsman wrapped up the technical side of things with VMM 2012, talking about the pillars, creating a bare metal host, and explaining some of the features of service deployment.

Robert Bakker of Microsoft Netherlands wrapped the formal side of the event up talking about System Center 2012 and the licensing that was announced on Tuesday.

For me, the best bit was meeting a lot of people I’d not met in person before but “talk” to regularly on Twitter, and spending some time with some of the European community at dinner the night before.  I also got to meet some interesting people and heard what they are doing and experiencing.  That’s the great thing about community events … it’s content and people.  All in all, an excellent event.  I’m sure the guys will do more – you should register as soon as you can!

Announcing the Microsoft Private Cloud Computing Book

Considering that Microsoft has just started their Microsoft Private Cloud/System Center 2012 campaign with their “transforming IT” production, it was thought that this was the perfect time to announce a new book, Microsoft Private Cloud Computing:

Untitled

“Written by a team of expert authors who are MVPs and leaders in their respective fields, this one-of-a-kind book is an essential resource for IT administrators who are responsible for implementing and managing a cloud infrastructure. You’ll quickly learn how cloud computing offers significant cost savings while also providing new levels of speed and agility. Serving as a how-to guide, Microsoft Private Cloud Computing walks you through building a secure, internal cloud and delivering it as a service to your company suing Microsoft Windows Server Hyper-V and Microsoft System Center Virtual Machine Manager 2012.

  • Discusses fabric management with System Center Virtual Machine Manager (VMM)2012
  • Examines how to provide network and storage with VMM 2012
  • Looks at the VMM library configuration
  • Discusses private cloud and cloud service management with Microsoft App Controller

Microsoft Private Cloud Computing is a must-have comprehensive resource that covers all aspects of implementing a private cloud”.

And just who are these “expert authors”.  Let me introduce them to you:

There’s a long story behind the book.  It started out with one concept that was talked over initially via email and a chat.  Then when we started to get to grips with the concept … well … everything took a left turn at Dundalk and went a different direction.  The size and complexity of the project literally blew up as we figured out what we really needed to write about.  That’s when we needed to add more expertise … and boy did we do that in style! 

Credit where credit’s due, after the initial concept development and planning, I stepped back a wee bit and took care of the intro chapters.  I had a l-o-n-g period of writing in 2010 and I wanted to take a break from it in 2011.  The meat of this book has been written by Patrick, Damian, and Hans.  Technical reviewing is being handled by Cloud and Datacenter Management MVP, Kristian Nese (@KristianNese), helped by the fact that he has already published a book called Cloud Computing in Norwegian.

FYI, the cover that’s available now is a preliminary artwork … hence my cloning out the author listing. It will be updated to reflect the work done by Hans, Damian, and Patrick.

It is estimated that Microsoft Private Cloud Computing will be available on May 22nd, 2012.  And yes, I would expect there to be ebook editions – just don’t ask me when.