Quantcast
Channel: Microsoft System Center Virtual Machine Manager
Viewing all 504 articles
Browse latest View live

Expanded SysPrep Support in SQL Server 2012 SP1 CU2

$
0
0

One of the challenges with creating a completely deployable service in the past has been the lack of ability to sysprep SQL Server.  That was addressed with SQL Server 2012 so that you could sysprep a SQL Server cleanly and include a sysprep’d VM template in a service template.  Now with SQL Server 2012 SP1 CU2, we have expanded the number of features that can be sysprep’d!  Below is a blog post by Robert Hutchison who is now a PM with the SQL group, but used to be a PM on the System Center team.  Thanks for writing this up Robert!

------------

Hello everyone, my name is Robert Hutchison and I am a Program Manager on the SQL Server team. Today I wanted to let you know about some improvements we have made to the SQL SysPrep support in SQL Server 2012 SP1 CU2. These improvements will allow you to leverage business intelligence and other SQL Server features in the VHDs you create for use on-premise and Windows Azure VMs.

What’s new?

Earlier versions of SQL Server supported the preparing of images by using SQL Server SysPrep. This enabled images to be prepared with desired features and then completed later. However, there were many major features that were not supported by SQL Server SysPrep. Expanding the supported features for SQL Server SysPrep to include SQL Server Analysis Services, SQL Server Integration Services, and shared features enables SQL Server SysPrep to be used in a wider variety of image preparation scenarios.

The following screen shows the set of features supported by SQL SysPrep in SQL Server 2012:

clip_image002

As you can see from the screen shot, the set of features is limited to Instance features.

The following screen shows the updated set of features supported by SQL SysPrep in SQL Server 2012 SP1 CU2:

clip_image004

The set of features supported for SQL SysPrep scenarios has been greatly enhanced to support some of the most requested features including Analysis Services, Integration Services and shared features such as Management Studio. This should make SQL SysPrep useful in a wider set of image preparation scenarios.

How can I use these new Sysprep features?

Since this functionality is being released in a Cumulative Update, some steps must be taken prior to leveraging them. Specifically a slipstream installation must be created in order to access the new functionality. Once the slipstream package is created, it’s just a matter of running setup in order to access this functionality. The following screen shows the location for the SysPrep preparation:

clip_image006

Summary

The new SQL SysPrep functionality provides more image preparation options in cases where SQL Server is to be installed on the prepared image. This allows Windows images to be prepared that have SQL Server features prepared in advance. This provides streamlined process for on-premise as well as Azure VM image provisioning scenarios.

The following links provide more details on the topics discussed:

For details regarding SQL Server installation using SysPrep and configuration file generation, see the following site:

http://msdn.microsoft.com/en-us/library/ee210664.aspx

For more information on creating a slipstream package that includes a cumulative update, please refer to the following excellent blog post by our team member Ahmed Ibrahim:

http://blogs.msdn.com/b/ai/archive/2013/01/14/installing-sql-server-2012-service-pack-1-sp1-cumulative-update-in-one-installation-using-sql-server-2012-product-update.aspx


KB: Error 26147 while unregistering a LUN in Virtual Machine Manager

$
0
0

eWe just published a new KB article about an issue where you receive error 26147 when you try to unregister a LUN that contained a VM and checkpoints that have been deleted. You can find the article here:

KB2804293 - Error 26147 while unregistering a LUN in Virtual Machine Manager (http://support.microsoft.com/kb/2804293)

J.C. Hornbeck| Knowledge Engineer | Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

Support Tip: VMM 2008 R2 setup may crash with certain language settings

$
0
0

imageHi everyone, Mark Stanfill here with a quick heads-up on a VMM setup issue I ran into the other day. I was talking with a customer who was trying to install System Center Virtual Machine Manager 2008 R2 but the setup process was crashing with a call stack similar to the following:

Exception object: 0000000002ca1010
Exception type: System.ArgumentOutOfRangeException
Message: Count cannot be less than zero.
InnerException: <none>
StackTrace (generated):
   SP               IP               Function
   000000001E45E8D0 0000000000000001 mscorlib_ni!System.String.Remove(Int32, Int32)+0x2
   000000001E45E8D0 000007FF0043C8C6 VMSETUP!Microsoft.VirtualManager.Setup.PrerequisiteInstallation.BaseInstaller.ResetInstallSource(System.String)+0xd6
   000000001E45E930 000007FF00439562 VMSETUP!Microsoft.VirtualManager.Setup.PrerequisiteInstallation.PrerequisiteInstaller.Install()+0x5b2
   000000001E45EA30 000007FF00438DB1 VMSETUP!Microsoft.VirtualManager.Setup.PrerequisiteInstallation.PrerequisiteInstaller.InstallPrerequisites()+0xa1
   000000001E45EAA0 000007FF00438845 VMSETUP!Microsoft.VirtualManager.Setup.Wizard.ProgressPage.InstallRequiredPrerequisites()+0x65
   000000001E45EB40 000007FF00436400 VMSETUP!Microsoft.VirtualManager.Setup.Wizard.ProgressPage.InstallerThreadEntry()+0x2b0
   000000001E45EC10 000007FEF3292BBC mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)+0x9c
   000000001E45EC60 000007FEF332A91E mscorlib_ni!System.Threading.ThreadHelper.ThreadStart()+0x4e

After doing some investigating we found that the operating system language settings had been changed from English (US) to another locale. Fortunately for us there is an easy workaround which is to simply change the Language settings while doing the install, then change it back once setup is complete.

If you run into this issue, open Control Panel, select Region and Language (“Change display language” if you are in Category View), click the Administrative tab, under Language for non-Unicode programs, click Change system locale.  Select English (United States) and click OK.  You may need to reboot.

clip_image002[1]

clip_image002[3]

clip_image002[5]

Click the Administrative tab, and then, under Language for non-Unicode programs, click Change system locale.  If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

Select the language, and then click OK.

To restart your computer, click Restart now.

When done, restart VMM setup and it should complete as expected. Then when you’re all done, you can go back to Control Panel and reset your language settings to the way they were before you started and you’re good to go.

Mark Stanfill | Senior Support Escalation Engineer | Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

Fixing non-compliant virtual switches in System Center 2012 Virtual Machine Manager

$
0
0

imageHi Everyone, this is Alvin Morales, Senior Support Escalation Engineer for System Center and I wanted to take a minute to talk about a potential issue with virtual switches in System Center 2012 Virtual Machine Manager SP1.

Recently I’ve come across a few issues when performing a live migration from one cluster node to another where in the wizard you receive a warning stating that the virtual switch is not compliant.

This can be caused by creating logical switches on the nodes out of order, thus the settings in the logical switch may not be in sync. Another possibility is that changes were made to the virtual switch out of band (i.e. directly in Hyper-V), thus the settings may be different for each node. Fortunately for us, a new feature of System Center 2012 Virtual Machine Manager Service Pack1 (VMM) will warn us if settings among switches are different.

A value of “Fully compliant” indicates that the settings on the host are consistent with the configuration in VMM. For example, “Fully compliant” indicates that all IP subnets and VLANs that are included in the network site are assigned to the network adapter.

A value of “Partially compliant” indicates that there is only a partial match between the settings on the host and the configuration in VMM. In the details pane, the Logical network information section lists the assigned IP subnets and VLANs for the network adapter, so if an adapter is partially compliant you can view the reason in the Compliance errors section.

A value of “Not compliant” indicates that the settings on the host are missing from the configuration in VMM. For example, “Not compliant” indicates that none of the IP subnets and VLANs that are defined for the logical network are assigned to the physical adapter. If you find yourself in this situation we can resolve it by using the steps below:

1. Go to the fabric section and select logical switches, then from the ribbon select hosts. This will change the view and show the status of all NICs, VNICs and logical switches.

2. For the switch that shows as not complaint, highlight the switch and view the compliance warning. Right-click the switch and select remediate. This process will validate and resolve the issues on the switch.

clip_image002

You may find that fixing one network adapter for a cluster node may trigger a warning on another. If this is the case, you need to perform the remediation action to all the network adapters on all nodes.

Alvin Morales | Senior Support Escalation Engineer | Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

Managing your cluster with SCVMM 2012’s Dynamic Optimization (DO)

$
0
0

I’m Hilton Lange, Software Development Engineer on the VMM team, and I’d love to share with you my personal favorite feature in VMM 2012.  We’ve introduced the ability to constantly monitor and rebalance load on your clusters by using “Dynamic Optimization”.  I’d like to explain how DO works to help you understand its behavior and get the most out of the feature.


What does DO do?  Simply put, it searches for live migrations within a Host Cluster that will improve the overall health of the cluster.  “Health” describes two main facets - Host load and VM configuration.

Dynamic Optimization versus PRO-tips

image Users of VMM 2008 know both the benefits and the challenges of using PRO-tips to respond to load issues in their environment. Dynamic Optimization capitalizes on the brand new Intelligent Placement engine to more effectively and proactively handle changing load in your host clusters. PRO used an Operations Manager agent to monitor the host for critical thresholds being crossed, and then initiated migrations away from that host. DO improves a few aspects of the process.

  • DO monitors and acts natively in the VMM service, without the need for Operations Manager integration.
  • DO runs on the VMM server, not on each host, so decisions are centralized and plans are formulated that are best for the cluster as a whole, rather than potentially conflicting actions from each host.
  • DO is aware of all the rules and requirements of each VM, without the need for different management packs to monitor many aspects of VM health. Networking requirements, custom placement rules, host reserves - DO can respond centrally to issues with all of these considerations.

For many health monitoring requirements Operations Manager is still the right choice and custom management packs allow deep monitoring of a wide range of specific hardware or configurations. In the case of VMM’s load management however, DO is almost always the right tool for the job.

Dynamic Optimization’s logic

The dynamic optimizer is guided by a simple set of rules, given here in priority order.

DO priority #1: Never introduce a new problem into the system

Any action that DO takes is first checked to ensure that it doesn’t trigger any placement warnings or errors.  Warnings or errors will block DO from considering that action, no matter how much it might rebalance the environment.  Also, certain VMs are marked as “Exclude from Dynamic Optimization”. These VMs will never be moved by DO.

DO priority #2: Resolve VM configuration issues (warnings or errors)

As DO assesses the VMs being hosted in a cluster, the most important issue that will cause it to take action are rules being violated that are causing warnings or errors to placement. Has the VM been configured to require Network Optimization (VMQ) but the current host doesn’t have that available? Is the VM on a host that doesn’t have access to the correct logical networks that the VM needs?

DO priority #3: Resolve violated host load thresholds

When you configure DO at a HostGroup level, you will be asked to specify what your target maximums are for host load. When DO detects that one of these thresholds has been crossed, it will make it a priority to attempt to migrate VMs in such a way as to reduce the load on the affected host.

DO priority #4: Balance load across hosts

(Only applicable at aggressiveness settings High, Medium-High and Medium)
Once no issues from the first 3 priority levels can be found or corrected, DO starts to search all possible migrations within the cluster to evaluate their net effect on the star ratings of the VM being migrated.  If the net increase in star rating meets the requirements of the HostGroup’s aggressiveness setting, the migration will be planned by DO.  The star ratings necessary to trigger migrations are:

DO Aggressiveness

Star rating increase required

High

0.1 stars

Medium-High

0.2 stars

Medium

0.3 stars

Remember, these migrations will only be approved by DO if they can occur without triggering any warnings or errors on the destination host.

Dynamic Optimization Modes - Manual vs Automatic

By default, DO ships in manual mode. That means that it will take no automatic actions, but is available for you to trigger on-demand. You can run a manual DO by right-clicking your cluster and choosing “Optimize Hosts” or choosing that option from the ribbon when a Host Cluster has focus.


Running DO in manual mode will first do a calculation-only run, showing the you the proposed migrations and confirming before actually making any changes to the environment.


In the host group properties, you can elect to put DO into automatic mode, and choose a calculation interval. (Default 10 minutes)  This will cause all the clusters in that host group to automatically calculate and execute a DO plan periodically, without it being necessary for you to intervene.  Automatic DO runs are not added to the task trail unless they result in migrations.

Dynamic Optimization Performance Data

Dynamic Optimization uses the same data that drives all placement, with two minor variations.
Firstly, for most placement functions (New VM, migrate VM, new service etc), performance data is aggregated and averaged over a long period of time to get a profile of the typical usage expected from a VM under normal conditions.


Dynamic Optimization needs to take actions based only on the most recent information, so it only looks at the most recent performance information gathered from VMs and hosts.  These performance samples are, by default, captured every 9 minutes, and the data used is a rolling average of the VM performance over that sample period.


Secondly, since DO never does storage migrations, disk performance data is irrelevant and ignored when a host’s load is calculated. In VMM 2012, only CPU and Memory are considered to make up the host load metric used by DO. Remember, however, that absolutely any piece of placement information will be used to evaluate if a VM is correctly configured or operating over the reserves or levels that you define.

Investigating Dynamic Optimization issues

We have had some tremendously positive feedback on Dynamic Optimization. Customers who contact us usually have only one major question. “How can I investigate whether DO should be taking action on my cluster?”


image Your first and most important diagnostic tool is VM migration ratings. All VMM 2012 functions are powered by the same Intelligent Placement engine, and DO is no exception. The ratings and warnings that you see when considering a migration are based on the identical data and logic that drives Dynamic Optimization.  If you are expecting a VM to migrate from one host to another, just initiate that migration through the UI and take a look at the host ratings dialog. (You don’t need to actually do the migration, just get as far as ratings and then cancel.)


The primary issue that might be blocking DO’s operation is the presence of warnings or errors in the migration rating. DO will almost never make a migration that results in warnings or errors. The most common cause of DO queries are clusters where some cluster-wide warning such as VMQ, cluster overcommit or agent health are causing a warning against every host. Resolving these warnings will allow DO to run normally.


The next thing to consider is the level of overall imbalance and the aggressiveness setting. DO will not migrate unless these is a considerable difference in host health. Having 10 small idle VMs on a large host will not be enough to necessarily start migrations to an empty host. The host has to be full enough that its star ratings start to decline perceptibly from those of another host.  Increasing aggressiveness to high will cause migrations to start sooner, as will applying CPU load to the VMs.


Lastly, check that VMs that you expect to migrate are not marked as “Exclude from Dynamic Optimization”.  VMs can opt out of DO management, and if the only viable migrations are to VMs which are not available for DO, no actions will occur.

Your feedback

We are very interested in hearing your experiences with Dynamic Optimization. Are you using it in your environment? Does it behave as you’d expect? Are you happy with how well it is working? In what areas can we improve? Please let us know!

Networking in VMM 2012 SP1 – Logical Networks (Part I)

$
0
0

In this blog, the second in our series, we will take a closer look at Logical Networks and review some of the key considerations, best practice recommendations and guidance for designing, implementing and managing this component of your Virtualized Network Solution.

This posting took a lot longer and became a lot more involved than we had originally planned – so much so that we have split it into two parts. Part I looks at how Logical Networks fit into your Virtualized Network solution and how you should associate them with host computers since we know a number of you had questions around this and Part II, design and architecture – helping to answer the key question which is “how many logical networks do I need in my environment?”. We hope you enjoy Part I, the second part of this blog will be posted to TechNet a little later this month.

As you can imagine with all of the content we aim to put into each of these posts, we're little behind the schedule we had originally set for ourselves. Our plan called for two posts this month, one on Logical Networks and the other on Port Profiles and Port Classifications but given how this one has shaped up, we’re going to finish up the Logical Networking post this month and push back the next in the series until March. Look forward to reading your comments and feedback.

Nigel Cain & Damian Flynn

 

Introduction

The VMM documentation indicates that “A logical network is used to organize and simplify network assignments for hosts, virtual machines and services. As part of logical network creation, you can create network sites to define the VLANs, IP subnets, and IP subnet/VLAN pairs that are associated with the logical network in each physical location.” It goes on to state that they can be used to describe networks with different purposes, create traffic isolation and even support traffic with different types of service-level agreements.

As logical networks represent an abstraction of the underlying physical network infrastructure, they enable you to model the network based on business needs and connectivity properties. Users can assign VM networks, which use logical networks for the physical connectivity, as part of virtual machine and service creation without having to understand the network details.

 

Architecture Overview

Although simplified a little, the following illustrates the different layers that make up the overall architecture of a virtualized networking solution, with the physical network and Hyper-V hosts at the bottom of the diagram and the deployed virtual machines and services on the top. To the right are the names of each component and, on the left, how these components are connected together. A Logical Switch, for example, is connected to a Logical Network via a Logical Network Definition.

 

image

 

 

Note: Although not shown above, clouds also have a direct relationship with Logical Networks and VMM uses this relationship to scope the list of VM Networks that can be used during virtual machine placement. To be placed in a cloud, a virtual machine must be connected to a VM Network which is linked to a Logical Network associated with the selected cloud

As you can see from the above, Logical Networks are connected to a number of components in the network solution architecture and it is clearly important to understand how and where these connections are defined if you need to troubleshoot issues with connectivity and/or have to make changes to your solution to reflect updated business requirements.

 

Connectivity to Architecture components

To aid understanding, let’s take an example organization which has operations in two locations, one in Seattle and the other in Reading. In the Reading site, three physical networks are used to separate different types of network traffic and to ensure quality of service; production, development and all virtual machine related traffic is hosted on the Datacenter Network, access to the SAN and other storage devices is via the Storage Network, with physical device management performed on the Management Network. The organization uses Windows Server 2012 Hyper-V for its Virtual Machine workloads and each of these machines is connected to all three of the physical networks (as shown).

 

image

 

We recognise that this host network design tends to not be the trend today but it is useful to highlight key concepts. In Windows Server 2012 environments, individual networks are exposed to the host through Virtual Network Adapters rather than Physical Adapters, creating what is commonly referred to as a Converged Network, for more details on this, please see the link below. We will take a more detailed look at converged networks in a later blog.

http://technet.microsoft.com/en-us/library/hh831441.aspx

Returning to our example, we would expect to find a minimum of three logical networks in SC VMM 2012 SP1, one for each of one of the physical networks. In reality, however, you may find you need many more logical networks than you have physical – logical networks may be created to describe networks with different purposes; development, test or production, for example, to isolate network traffic and/or to support different types of service-level agreements (SLAs).

As the VMM documentation suggests, “logical networks represent an abstraction of the underlying physical network infrastructure, they enable you to model the network based on business needs and connectivity properties”. We will return to this theme and cover some of the key design decisions and best practice later in the blog but it would be reasonable to argue that administrators within our organization would like to isolate production traffic from development or test workloads and ensure that such traffic is provided with a higher service level, all of which represent good reasons for creating a logical network that is dedicated to production workloads.

We will use this example environment as the basis for our discussion and exploration into the connectivity between logical networks, physical hosts and VM Networks.

Network Sites (Logical Network Definitions)

As stated earlier, a logical network is used to organize and simplify network assignments for hosts, virtual machines and services. As part of logical network creation, you can create network sites (otherwise known as Logical Network Definitions) to define the VLANs and IP subnets that are to be associated with the logical network in each physical location.

In our example organization, Hyper-V hosts supporting production workloads are situated in two physical locations, Reading and Seattle, with each site using a different VLAN and IP Subnet range. Virtual Machines running production workloads on hosts in the Reading Datacenter need to use VLAN18 and have an IP address in the 192.168.99.0/24 subnet, where those in Seattle should use VLAN 100 and have IP address in the 192.168.199.0/24 subnet. To allow the “Production” Logical Network to be supported in both of these locations, two Network Sites are required as shown:

 

image

The “Reading” Network site is scoped to Hyper-V hosts deployed in Reading. It defines the VLAN and IP Subnets that will be used by virtual machines that connect to the Production Logical network when running on a Hyper-V host in this location. The other network site is scoped to the “Seattle” host group and essentially defines the VLANs and subnets that will be used by virtual machines deployed in Seattle.

Note that scoping the logical network to a host group in the network site – as shown above - does not actually make the Logical Network available on any of the hosts within that group. It essentially prevents it from being associated with hosts that are not within that target group(s). To make the logical network available on a given host, you need to associate the logical network with a physical network adapter on that host.

In our example, READING-VMH2 is one of the servers located in the Reading Datacenter. The server is a member of the host group which is authorised for the “Production” Logical Network and as this logical network has been successfully associated with one of the physical network adapters (as shown below), it can be made available to virtual machines which are running on that host.

 

image

The expected result of this configuration (once it has been deployed to hosts in both locations) is that VMM will ensure that all newly created virtual machines are configured with the network information appropriate for the location in which they have been deployed. A machine deployed in Reading, for example, will use VLAN 18 and have an IP Address in the range 192.168.99.0/24.

Moving existing virtual machines between sites using VMM should also be possible, though with a number of caveats. The main one is that fact that the IP address assigned to the virtual machine will not be changed during migration. If the physical network is a stretched LAN, meaning that the same IP subnet is present in both locations, then the virtual machine will continue to communicate on the network once it has been moved. If, as in our example, each site has its own VLAN and IP Subnet, then although you will be able to successfully move the virtual machine to new location, it will have an incorrect VLAN/IP Address for that location.

Note: A Virtual Machine connected to a VM Network (see later) which uses Network Virtualization on the “Production” Logical Network has been enabled can be moved between hosts in Reading and Seattle withoutrequiring any additional configuration.

IP / MAC Address Pools

If you associate one or more IP subnets with a network site, you can also create static IP address pools for those subnets. Static IP address pools make it possible for VMM to automatically allocate static IP addresses to Windows-based virtual machines that are running on any managed Hyper-V, VMware ESX or Citrix XenServer host. VMM can automatically assign static IP addresses from the pool to stand-alone virtual machines, to virtual machines that are deployed as part of a service, and to physical computers when you use VMM to deploy them as Hyper-V hosts. Additionally, when you create a static IP address pool, you can define a reserved range of IP addresses that can be assigned to load balancers as virtual IP (VIP) addresses. VMM automatically assigns a virtual IP address to a load balancer during the deployment of a load-balanced service tier.

Note: When using network virtualization, the Logical Network also has a relationship with deployed virtual machines, in that each machine must be allocated an IP address from one of the IP pools that have been defined for that Logical Network. The IP addresses from this pool - otherwise known as Provider Address (or PA) – must be routable between Hyper-V hosts.

If you configure a virtual machine to obtain its IP address from a static IP address pool, you must also configure the virtual machine to use a static MAC address. You can either specify the MAC address manually or have VMM automatically assign a MAC address from either a central MAC address pool or one that you have created for a specific network site.

Logical Switches and Port Profiles

The key question is how the association between the host and the logical network is established. You can clearly configure the network adapter settings by making the necessary changes on each host manually or via PowerShell when you have a large number of host machines to update. In SC VMM 2012 SP1, the recommended approach is to define the list of Logical Networks and the set of properties and capabilities you want to apply to (host) Network Adapters in Port Profiles and Logical Switches.

Port profiles and logical switches act as containers for the properties or capabilities – including Logical Networks - that you want configured on network adapters across multiple hosts. The primary benefit of using these concepts is that they allow you to consistently apply the same settings and capabilities to network adapters across multiple hosts. We will look at these concepts in much more depth in future blog posts but, for now, we will focus our attention on how they support the configuration of Logical Networks.

 

Uplink Port Profiles

An Uplink port profile is essentially a template in which you define the list of Logical Network(s) that should be associated with any (physical) network adaptors that is applied to. It also allows you to specify the protocols that should be used if a “team” of network adapters in a host computer will be configured to use the same uplink.

In the majority of cases, you will create an uplink profile for every set of hosts that have the same physical connectivity as a result, you may find it necessary to create multiple uplink profiles for a single location in your datacentre, for example Cluster A may have one uplink profile and cluster B may use another even if they are in the same room. As a rough guide, if you have custom connectivity, have multiple physical networks and/or wish to restrict logical networks to specific hosts within a given physical location, then you will need to create additional Uplink Port Profiles. You will find much more information on this in our next blog.

In our example organization, a number of hosts in Reading and Seattle need to be associated with the Production logical network and Port Profiles and Logical Switches will therefore be used to help ensure host computers in each location are configured consistently. We assume that servers in each location have the same type of physical connectivity and will therefore create two Uplink Port Profiles – one for Reading and another for Seattle. For a complete solution, we would also need to define Uplink Port Profiles for non-production workloads, the storage network and the management network since these are present in each physical location but we will ignore these for the purpose of our example.

The following screenshot shows the network sites that are configured for the Reading – Production Uplink Port Profile. When this is applied to a host computer in Reading as part of Logical Switch deployment (see later), it will associate the selected network adapters with the Production Logical network.

 

image

 

In our example we have selected only one network site and hence one logical network. You can however, specify connectivity to multiple network sites. The net result is that when the Uplink Port Profile is applied to a network adapter on a host, that network adapter will be associated with all of the selected logical networks.

Note: If you want to enable network virtualization – which is the key theme of our blog series, you need to select the “Enable Windows Network Virtualization” check box in the Uplink Port Profile (as shown). At least one of the logical networks you select in this dialog must also have been configured to “Allow new VM networks created on this logical network to use network virtualization.”

Native Port Profiles (for Virtual Network Adapters)

Native Port Profiles – like Uplink Port Profiles above – are essentially templates which allow you to define offload settings and security settings for virtual network adapters. A number of these port profiles are provided by default and we note them in the context of this blog only to record the fact that they are made available to hosts as part of Logical Switch deployment (see below) and that they may be applied to a network adapter connected to a logical network, ensuring, for example, that the traffic passing through the adapter onto the logical network has the required IEEE priority tag and/or is subject to the appropriate bandwidth controls.

 

Logical Switch

A Logical Switch brings together all of the different Uplink Port Profiles, Native Port Profiles, Port Classifications and Switch Extensions – we will look at all of these components in more detail in the next blog - that are relevant to a particular physical or logical network. It is essentially a template that contains an administrator defined set of parameters (port profiles, classifications, etc) which you can use to create Hyper-V Virtual Switches on any of the Windows Server 2012 host computers that connect to that network.

When you use a Logical Switch to create a Hyper-V Switch on a host computer, you select the most appropriate combination of Port Profiles, Classifications and Switch Extensions from the list of those defined in the Logical Switch. You can find more information on Hyper-V Virtual Switches at the link below:

http://technet.microsoft.com/en-us/library/hh831823.aspx

As a general principle, you will need a Logical Switch for each physical network that exists in your environment but if you plan to restrict some Logical Networks to a limited set of hosts, as with our example organization, and/or have custom connectivity requirements you may find it necessary to create additional Logical Switches. We will cover some of the design rationale for logical switches in a future blog.

Since our example organization has three physical networks, Datacenter, Management and Storage, we will most likely create three Logical Switches according to the guidelines outlined above. However, only a limited number of hosts in Reading and Seattle will run production workloads and should be associated with the Production Logical Network we created earlier – the key question is whether we need an additional Logical Switch to support this environment.

Technically, nothing prevents us from including both of the “Production – Reading” and “Production – Seattle” Uplink Port Profiles into the Logical Switch we create for the Datacenter Network and allowing our administrator to choose the most appropriate settings and capabilities for the host they are working with. We can even rely on VMM to actively prevent administrators from using any of the “Production” uplinks when they are using the Logical Switch to create a Hyper-V Virtual Switch on a host that should not be associated with the Production Logical Network.

The downside with this as an approach is that we cannot be sure of a consistent configuration across hosts in Production – although Uplink Port Profiles are restricted to certain hosts, administrators can choose from any of the Network Adapter Port Profiles, Port Classifications and Switch Extensions that are available within the selected Logical Switch. We may also find that capabilities we want offered only on production systems - network traffic tagged with IEEE high priority and given maximum bandwidth for example – are associated with other (non-production) systems because the administrator selected the wrong Network Adapter Port Profile during Logical Switch deployment. To avoid this issue, we will create a separate Logical Switch for Hyper-V hosts in Reading and Seattle that will support production workloads (as illustrated below).

 

image

 

The new Logical Switch will contain the “Production – Reading” and “Production – Seattle” Uplink Port Profiles and a single Network Adapter Port Profile that we will use to ensure that network traffic from these hosts and the virtual machines running on those hosts are tagged with the required IEEE priority flags and are provided with the appropriate bandwidth guarantees. The Port Classification below is simply a “friendly” name for the Network Adapter Port Profile and will be displayed to users when they connect their virtual machines to the network.

We did not include any Switch Extensions in our example above – you may wish to include these in your Logical Switch to allow you to monitor network traffic, use quality of service (QoS) to control how network bandwidth is used, enhance the level of security, or otherwise expand the capabilities of a Hyper-V virtual switch created on a host computer. If these enhanced services should be restricted / deployed only on a limited number of hosts, you may need to consider creating an additional Logical Switch. You can begin utilizing Logical Switches without any advanced switch extensions and as the environment matures and/or your requirements change, these can be added at a later time.

 

VM Networks

In terms of our overall architecture, VM Networks are the final component we need to consider in this particular blog- in the sense that they provide the (network) interface through which a virtual machine connects to a particular Logical Network. Since all virtual machines must be connected to a Virtual Machine (VM) Network to be able to use and access network resources in SC VMM 2012 SP1, it follows that you will need at least one VM Network for each Logical Network.

If, however, you enable the Network Virtualization setting on the Logical Network (see earlier), multiple VM networks may be connected to the same Logical Network, with each one of these isolated from and totally unaware of the existence of any of the others. This concept is key to support multiple tenants (clients or customers) with their own networks and we will cover this in much more detail in a later blog.

 

image

 

 

It is important to note that the relationship between a VM Network and its (host) Logical Network is established when VM network is initially created (as shown) and cannot be changed afterwards. If you wish to use a different Logical Network, you will need to delete the existing VM Network and create a new one.

Deploying a Logical Network on a Hyper-V Host

You can associate Logical Networks with each Hyper-V host manually or by using PowerShell but to ensure consistency and simplify management across multiple hosts, it is far more efficient to define the required properties and capabilities within Port Profiles and Logical Switches.

When a Logical Switch is applied to a Network Adapter in a Hyper-V Host, VMM uses the information contained in the Logical Switch and the (selected) Uplink Port Profile to create a Hyper-V Virtual Switch on the host and associate the Network Adapter with the required Logical Network(s), VLAN and IP Subnets.  If you apply the same logical switch and uplink port profile to two or more adapters the two adapters will be teamed assuming that this option has been defined in the logical switch. The option to add/remove adapters (show above) will only be available if Uplink Mode has been set to “Team”.

Note: the host must be a member of a Host Group that has been scoped to those Logical Networks. If the host is not in an appropriate Host Group – deployment of the switch will fail with an “Out of Scope” error.

Returning to our example – a number of new Hyper-V hosts have been deployed in our Reading Datacenter in response to increasing demand for computing capacity in production. We need to make sure that each one of these hosts are configured for production workloads; meaning that physical network adapters are teamed (to provide maximum bandwidth and a degree of resilience to adapter failure) and associated with the Production Logical Network.

The following screenshot shows the Logical Switch being applied on one of the new servers. The administrator has selected the “Reading” Uplink Port Profile to ensure that the selected network adapters are configured with the VLAN and IP Subnets that are appropriate for this location

 

image

 

From this information, VMM will create a Hyper-V Virtual Switch on the host and use the Logical Network(s), VLAN and IP Subnets from the Uplink Port Profile to configure these properties on the selected Network Adapter(s). Note that once the switch has been deployed, the physical Network Adapter can no longer be configured through the UI or via PowerShell. All changes to the Logical Networks, VLAN and IP Subnets configured on the network adapter need to be made in the Uplink Port Profile.

Note: Regardless of any port profiles and logical switches you are using in your network configuration, you will need to indicate whether the network adapter will be used for virtual machines, host management, neither, or both. At least one Network Adapter in your host must be configured for management.

 

Summary

To quickly summarize, Logical Networks are used to organize and simplify network assignments for hosts, virtual machines and services. Network Sites are used todefine the VLANs and IP subnets that should be associated with the logical network in each physical location and control which hosts (in that location) may be configured to support it. VM Networks provide the (network) interface through which a virtual machine will connect to a particular Logical Network.

You can associate Logical Networks with Hyper-V host manually (or via PowerShell) but to ensure consistency and simplify management across multiple hosts, it is far more efficient to define the required properties and capabilities within Port Profiles and Logical Switches.

Now we understand how Logical Networks are connected to a number of components in our virtual network solution. In part II of this blog post, we can turn our attention to Logical Network design and how Logical Networks act as the foundation for VM Networks.

Reducing your power consumption with SCVMM 2012 and Power Optimization (PO)

$
0
0

I’m Hilton Lange, Software Development Engineer in the VMM 2012 team. I’d like to continue my previous article about Dynamic Optimization (DO) by telling you about its closely related sister feature, Power Optimization (PO).  DO allows you to automatically correct certain VM health issues and continually load balance the VMs in your cluster.  PO allows you to entirely power down a section of your cluster when load is lower than peak.


When everything is configured correctly, Power Optimization will identify a host or hosts which can be powered down, evacuate all VMs to other hosts in the same cluster, and then gracefully shut down the host or hosts, pausing their cluster service.  At a specified time, or in response to an increase in VM load, PO will power on nodes again as required, resume the cluster service and rebalance all running VMs between their current hosts and the newly rejoined host.

Power Optimization benefits

Power Optimization is a key feature that helps IT organizations realize the cost savings benefits of a private cloud.  The elastic nature of a private cloud that scales up and scales down based on demand enables an IT organization to deliver just in time (JIT) computing power and only pay for the computing power that is needed.  Companies for decades now have driven down costs in supply chain management by only ordering, transporting, and storing just what is needed at a given point in time.  You can read more about “just in time” here.


Power Optimization effectively delivers “just in time” compute power when you need it to your datacenter.  Having 10 virtual machines running simultaneously consuming power and cooling all night long to do the work that one virtual machine can do just doesn’t make sense.  If you think about it, assuming an 8 hour workday, a given line of business application server really only needs to be on for 1/3 of the day.  The other 2/3 of the day it is doing nothing but consuming power and cooling (aka *money*).


By some estimations, power consumption is directly attributable to 31% of the costs of operating a data center and is trending up.  This obviously won’t work for every datacenter and situation and there are obviously plenty of VMs that simply cannot be turned off, but let’s say that you were to turn off the VMs for 2/3 of the day in your datacenter.  You could save 20% of the cost of your datacenter operations with this one feature!  That’s the power of power optimization.

Power Optimization basics

Getting Power Optimization to work requires the following steps to be taken.

A cluster with 5 or more hosts (4 if the cluster was created by VMM)

Power optimization will never violate cluster quorum. In addition, power optimization will always keep a minimum of one additional host in reserve to prevent the cluster from losing quorum in the case of unexpected node failure. A cluster of size 5 needs 3 hosts to maintain quorum. This allows PO to power down one host, and still leave the cluster with one spare node before it gets to its minimum quorum of 3.


If your cluster was created in VMM, we can use the witness disk that is automatically added to count as one additional node for these calculations.


The more nodes you have, the greater percentage of them PO can switch off.  A 16 node cluster with a witness disk can have up to 7 nodes powered down by PO.

Hosts with BMC (Baseboard Management Controller) power management

image BMCs provide us the ability to communicate with hosts even when they are not responding, and send them management instructions as if we were at the physical server rack. We can cut power, restore power, press the reset button etc.  Most importantly, this allows us to power down hosts in your environment and have a method to power them back up.


Each BMC has its own IP address independent of the host’s network or operating system. If you go to the host properties in VMM’s admin console, you’ll see the ability to configure the BMC settings by providing the BMC address, port, authentication details and protocol. VMM 2012 supports the two leading industry protocols, IPMI/DCMI and SMASH.  When you configure the BMC values on a host, VMM will validate a connection to the BMC and update the host information accordingly. You will be able to see in your task trail if the settings were accepted or failed validation.

Power Optimization needs to be enabled in the cluster’s parent Host Group

The Power Optimization settings are available in the host group properties under the Dynamic Optimization tab. Once Dynamic Optimization is enabled for a host group you will be able to access and enable the Power Optimization option, the hours of operation and the thresholds which govern its behavior.

image

The cluster needs to be experiencing low load during the PO window

Once you’ve configured and enabled Power Optimization, if your cluster experiences a time of low load and you have set up PO to be allowed during the current hour and day of the week, VMM will start to automatically power down hosts and consolidate the VMs onto the remaining hosts in your cluster.

Power Optimization’s logic

Power Optimization has fairly straightforward logic compared to Dynamic Optimization. PO simply scans each host and asks the question: “If this host were powered down, could all of its hosted VMs be placed onto the other hosts without negatively impacting their load.”


Power Optimization uses a configurable conservative load level to ensure this objective. A host will only be powered off if doing so causes no other host’s load to rise above the “PO levels”, configured on the Power Optimization configuration screen.  Additionally, when any host crosses the next level (the “Warning Level” or the “DO level”), PO will power one of the power managed hosts back on to redistribute the load.

Investigating Power Optimization issues

If you’ve configured Power Optimization, but you’re not seeing any hosts get powered down, the most common causes are listed here.

  • You don’t have enough healthy nodes, you need at least quorum plus 2.
  • The host that you are expecting to evacuate does not have BMC successfully configured. You can test this through the UI, if you right-click the host and don’t see “Power Down” as an option, it’s not working.
  • The host that you are expecting to evacuate has non-HA VMs, stopped VMs or VMs with the “Exclude from Dynamic Optimization” property selected. None of these VMs can be live migrated, and we won’t power down a host we can’t fully evacuate.
  • The cluster’s local timezone is not in the configured PO window.
  • The VMs you are expecting to evacuate are experiencing warnings or errors on their target host. Like with DO, use the VM migration option in the admin console to check this.
  • Powering down a node would cause the cluster to become overcommitted, as per your configured cluster reserve value. Set the cluster reserve to 0 to temporarily disable this.
  • The node was already powered down by VMM, and has been brought online by the user during this power optimization window.

When will hosts power back on?

Each time a DO/PO run executes (by default every 10 minutes), hosts will be powered on if one of the following two conditions are met:

  • The power optimization time window has expired or is expiring before the next DO/PO run.
  • A VM in the cluster is experiencing a warning condition that can only be resolved by migrating it to a powered off node.

Experimenting with Power Optimization

If you want a bit more control as you are testing, you can enable hypothetical power optimizations from Powershell. Enable DO and put it on a very long period (999 minutes). Enable PO and make all times enabled.  Then you can run the following commands in Powershell to see what PO would have done to your environment had it been enabled and ran at this moment.
> $clus = Get-SCVMHostCluster -Name “MyClusterName”
> $plan = Start-SCDynamicOptimization -VMHostCluster $clus -WhatIf
> $plan

image This will do a hypothetical calculation of DO and PO’s plan, and show you the list of hosts that would be powered off as part of the returned plan.  This allows you to move VMs around, tweak settings and see what effect it would have had on a fully PO-enabled environment. Just remember to disable DO and PO when you’re done!

Your feedback

As with Dynamic Optimization, your feedback is invaluable to us. Please let us know what your experiences are, how much power PO has allowed you to save, and any improvements we can make in future VMM releases.

Support Tip: Migrating a VM from Windows Server 2008 R2 to Windows Server 2012 fails with “Unable to migrate or clone the Virtual machine”

$
0
0

toolsignHi, Donovan Vanhaltren here with a tip on an issue you might see when migrating VMs from Windows Server 2008 R2 in System Center 2012 Virtual Machine Manager Service Pack 1.  When trying to migrate virtual machines created on Windows Server 2008R2 hosts to Windows Server 2012 hosts using VMM 2012 SP1, you may see the following error:

Unable to migrate or clone the Virtual machine <VMName> because the version of the virtualization software does not match the virtual machine’s virtualization software on source (<ip_addr>). To be migrated or cloned, the virtual machine must be stopped and should not contain any saved data.

image

As the error message indicates, the virtualization software on the source host does not match the virtualization software on the destination: One is Windows Server 2008 R2 and the other one is Windows Server 2012. However, this error does not show up for ALL virtual machines.

Migration of VMs from Windows Server 2008R2 to Windows Server 2012 is not supported for the following configurations:

1. Running VMs (live VMs) cannot be migrated from Windows Server 2008R2 to Windows Server 2012.

2. VMs with State information cannot be migrated from Windows Server 2008R2 to Windows Server 2012.

What does this mean? VMs store state information in 2 ways:

1. If a VM is running, and the user selects to “Save State” the VM, then the state of the memory and disks of the VM are stored, and the VM is powered off.

2. If a VM is running and the user selects to create a Checkpoint/Snapshot of the VM, in this case as well the state of the memory and disks are stored.

How do we proceed?

Note: This issue has already been fixed in Update Rollup 1 for System Center 2012 Service Pack 1 which can be found here:

KB2785682 - Description of Update Rollup 1 for System Center 2012 Service Pack 1 (http://support.microsoft.com/kb/2785682)

The update can also be downloaded from Windows Update.

This update provides the user with a warning, indicating that all state information will be deleted automatically when migrating the VM and proceeds with the migration.

How do we proceed - Workaround?

If for some reason, you cannot or do not want to install the Update Rollup 1, the following workaround can be done:

Running VMs: This is a relatively easy fix. If the VM is powered off or shut down then a migration is possible if the VM does not have state information.

VMs with State information: For VMs that contain state information, just powering off the VM does not necessarily allow the VM to be migrated from Windows Server 2008 R2 to Windows Server 2012. For complex VMs that have multiple checkpoints, it is likely that one or more of the checkpoints/snapshots in the chain contains state information. The only way for a user to be able to migrate this VM from a Windows Server 2008 R2 to a Windows Server 2012 host within VMM 2012 SP1 is to go into the VM and delete the checkpoints one by one. It is not possible to know from just looking at the check point if it has State information. A user would have to apply the checkpoint and validate if the VM is restored in running state to be able to figure out whether the checkpoint has state information.

WORKAROUND: VMM provides more information on the VMs snapshots than Hyper-V. To view the checkpoints on a VM in VMM, select the VM and click the “Manage Checkpoints” button on the toolbar. The UI will show the following screen:

image

Note that each checkpoint has a small icon at the side of its name: This icon will help determine which checkpoints need to be deleted (Checkpoints with State information):

ICON

Details

clip_image005

Stopped Icon: Indicates that the current checkpoint was created without any State information

clip_image006

Running Icon: Indicates that the current checkpoint has state information. This is the problem checkpoint.

clip_image007

Indicates the currently active Checkpoint

From this view the user has 2 options:

1. Directly remove all the checkpoints that have state information. This is relatively simple and the user would just need to remove all checkpoints with the “Running” Icon.

2. Preserve the Checkpoint information but delete the state information on the checkpoint. This is a more cumbersome process and would entail the following:

a. Restore the checkpoint in question.

b. Stop the VM

c. Take a new checkpoint.

d. Delete the original Checkpoint

This would need to be done for each checkpoint on the VM that has a “Running” clip_image006[1] Icon. In the end, the Checkpoints screen should NOT contain any checkpoint with the “Running” Icon. Once this is done, the VM should be available for migration from VMM.

Applicability

This issue is applies regardless of the ‘Availability’ property of the VM, meaning that HAVMs and non-HAVMs would be treated alike. Since the VM is first exported from the source and then imported into the destination, the HA property is not considered.

This workaround should work the same way for the following scenarios as well:

  • Windows Server 2008 R2 Standalone -> Windows Server 2012 Standalone
  • Windows Server 2008 R2 Standalone-> Windows Server 2012 Cluster (Promote the VM to HA in the process)
  • Windows Server 2008 R2 Cluster -> Windows Server 2012 Cluster (HA VM retained when migrating)
  • Windows Server 2008 R2 Cluster -> Windows Server 2012 Standalone(VM demoted from HA to nonHA during migration) 

Donovan Vanhaltren | SDET | Microsoft Corporation

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/


KB: Adding a Host to System Center 2012 Virtual Machine Manager SP1 fails with error 415

$
0
0

eWe just published a new KB article that talks about an issue where adding hosts to System Center 2012 Virtual Machine Manager Service Pack 1 fails with the following error:

Agent installation failed copying C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\...

It’s an easy fix and you can find all the details here:

KB2818420 - Adding a Host to System Center 2012 Virtual Machine Manager SP1 fails with error 415 (http://support.microsoft.com/kb/2818420)

J.C. Hornbeck| Knowledge Engineer | Microsoft CTS Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms- identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

KB: The VMM service crashes when a virtual machine is refreshed - "Error converting data type int to smallint”

$
0
0

eWe just published a new KB article that talks about an issue where the VMM service crashes when a virtual machine is refreshed. The error is "Error converting data type int to smallint” and it can occur if minimum Dynamic memory is set to a value larger than 32GB. You can find all the details here:

KB2818840 - The VMM service crashes when a virtual machine is refreshed - "Error converting data type int to smallint” (http://support.microsoft.com/kb/2818840)

J.C. Hornbeck| Knowledge Engineer | Microsoft CTS Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms- identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

KB: Performing a storage migration from one LUN to another in Virtual Machine Manager fails with error 12711

$
0
0

eWe just published a new KB article that talks about an issue where performing a storage migration from one LUN to another within a cluster in VMM 2012, the job fails at 99% with error “12711 The cluster resource could not be found (0x138F)”. You can find all the details here:

KB2819202 - Performing a storage migration from one LUN to another in Virtual Machine Manager fails with error 12711 (http://support.microsoft.com/kb/2819202)

J.C. Hornbeck| Knowledge Engineer | Microsoft CTS Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms- identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

Free Jump Start course: Microsoft Tools for VMware Integration & Migration

$
0
0

KnowledgeThe IT Pro Evangelism team, Microsoft Learning and the Microsoft Virtual Academy are pleased to announce the next Jump Start course Microsoft Tools for VMware Integration & Migration on Thursday, March 14th from 8am – 12pm PST

This is a live, public, free, online event so be sure to sign up today: http://aka.ms/vmtools.  This event will be recorded and available on the Microsoft Virtual Academy (MVA) several weeks later, so even if you cannot make the live event, sign up so that you receive a notification once the course is available on the MVA.

This course is designed for IT professionals who need to manage, monitor and automate VMware in their datacenter using System Center 2012 SP1.  During this half-day Jump Start, Microsoft Technical Evangelist Symon Perriman (MCSE and VMware Certified Professional) will be joined by four different Microsoft and VMware experts during the team-taught learning experience.  First, Eric Winner will share how Virtual Machine Manager (VMM) and App Controller can run VMware infrastructure, hypervisor and VMs.  Next Michael Stafford from Veeam will show how the Veeam Management Pack for Operations Manager monitors and reports on the VMware infrastructure.  Third, Justin Incarnato demonstrates how VMware can be integrated and automated using Orchestrator.  Finally, Anupama Vedapuri walks through the Microsoft Virtual Machine Converter (MVMC), a free Solution Accelerator that converts VMware-based VMs and disks to Hyper-V.

Agenda

  • 8am – 9am | Manage VMware with SC2012 SP1 Virtual Machine Manager
  • 9am – 10am | Monitor VMware with SC2012 SP1 Operations Manager and Veeam
  • 10am – 11am | Automate VMware with SC2012 SP1 Orchestrator
  • 11am – 12pm | Migrate VMware VMs using Microsoft Virtual Machine Converter (MVMC)

Also check out previous virtualization Jump Start events which are now available on the MVA:

“Introduction to Hyper-V” Jump Start (with Symon Perriman and Jeff Woolsey) 

“Microsoft Virtualization for VMware Professionals” Jump Start (with Symon Perriman and Matt McSpirit)

J.C. Hornbeck| Knowledge Engineer | Microsoft CTS Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

KB: Network settings for a VM are lost after performing a Storage Migration in Virtual Machine Manager

$
0
0

eWe just published a new KB article that discusses a specific scenario where network settings for a VM may be lost when a Storage Migration is performed in System Center 2012 Virtual Machine Manager. You can find the complete article here:

KB2820145 - Network settings for a VM are lost after performing a Storage Migration in Virtual Machine Manager (http://support.microsoft.com/kb/2820145)

J.C. Hornbeck| Knowledge Engineer | Microsoft CTS Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

VMM 2012 Tip: How to assign an IP Address using PowerShell during deployment

$
0
0

GrayAndYellowGearsHi everyone, Yuvraj Attarde here and today I ‘d like to pass along a trip on how to easily assign an IP address using PowerShell during deployments in System Center 2012 Virtual Machine Manager. Let’s say for example that you have the requirement to assign an IP address specified as a PowerShell parameter during VM deployment. You could use the cmdlets Grant-SCIpaddress and Set-SCIPAddress to assign the IP address from the IP Pool to the VM, the only problem is that the IP address doesn’t automatically get activated on the VM.  A better alternative is to assign the IP address using the Get-SCVirtualNetworkAdapterConfiguration and Set-SCVirtualNetworkAdapterConfiguration cmdlets and I have an example of this below:

NOTE: Replace the VMtemplate and Testvm3 with the appropriate template and VM names respectively.

#Get lab HostGroup
$HostGroup =Get-VMHostGroup
# Setup Vm Template from lab library
$Template= Get-SCVMTemplate | Where-Object {$_.Name -like "VMtemplate"}
# Build Vm Configuration
$VMConfig = New-SCVMConfiguration -VMHostGroup $HostGroup -VMTemplate $Template -Name VMConfig01
Update-SCVMConfiguration -VMConfiguration $VMConfig
$VNAConfig = Get-SCVirtualNetworkAdapterConfiguration -VMConfiguration $VMConfig
Set-SCVirtualNetworkAdapterConfiguration -VirtualNetworkAdapterConfiguration $VNAConfig -IPv4Address "10.0.0.4"
#submits new VM job to VMM
New-SCVirtualMachine -Name testvm3 -VMConfiguration $VMConfig

You can find more information on Set-SCVirtualNetworkAdapterConfiguration here: http://technet.microsoft.com/en-us/library/hh801707.aspx

Yuvraj Attarde | Senior Support Escalation Engineer | Microsoft CTS Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

Support Tip: Adding a Windows Server 2008 R2 SP1 core server to VMM 2012 fails with Error 441

$
0
0

toolsignHi, Richard Mascarenhas here and I wanted to mention an issue you might run into when adding a Windows Server 2008 R2 SP1 Core computer to System Center Virtual 2012 Virtual Machine Manager (VMM). When adding a Core computer you may see the following error:

Error (441)
Agent communication is blocked. On server <HOST_NAME>, the version of virtualization software or the VMM agent is unsupported.

You may also see the following error when installing Microsoft Visual C++ and then the VMM agent manually on the Windows Server Core system:

"The subsystem needed to support the image type is not present"

Typically this will occur if the ServerCore-WOW64 feature is not enabled on the computer running Windows Server Core.

To enable the ServerCore-WOW64 feature, complete the following:

1.       Logon to the Server Core computer as an administrator.

2.       Run the following command exactly as shown:

DISM.EXE /online /enable-feature /featurename:ServerCore-WOW64

NOTE: The feature name 'ServerCore-WOW64' is case sensitive.

3.       Restart the computer when prompted.

Once restarted, try to add the Core server as a host to VMM again. This should fix the issue but if it still fails, install the correct version of Microsoft Visual C++ and then the correct VMM agent manually on the Windows Core server and then try adding the core server to VMM again. Both Microsoft Visual C++ and the VMM agent are found in the location C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\agents\amd64.

Richard Mascarenhas| Support Engineer | Microsoft CTS Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/


Custom Placement Rules and Availability Sets in SCVMM 2012 SP1

$
0
0

I’m Hilton Lange, a Software Development Engineer on the VMM team. I want to conclude my series of placement blogs by talking about the custom rules that you can configure on your VMM server to give you more control over where your VMs are deployed.

In VMM 2012, we’ve given you some fairly broad tools to enable you to guide VMM’s placement decisions, while still leveraging the new Intelligent Placement engine to automatically manage and balance your environment.  In VMM 2012 SP1 we’re adding even more ability for you to enhance a service’s availability by keeping specific sets of VMs on different hosts whenever possible.

Custom Properties

Custom properties form the basis for customizing placement. You’ll see our default ones, “Custom1” to “Custom10” on many VMM objects: Hosts, Host Groups, VMs, VM templates etc.  We allow you to add your own properties (Cost Center, Owner, Division, Make/Model, whatever you want).  After a new property has been created, you can associate it with any applicable VMM object, and that custom property will show up in the properties dialog for those objects in the admin console.

Using custom properties to create placement rules

If you create a new custom property such as “Cost Center”, and you apply that property to both VM and Host objects, you can configure VMM to ensure that the property is used to guide Intelligent Placement’s decisions. Let’s suppose that you only want VMs to be placed on hosts with a matching “Cost Center” value.

  • Add the “Cost Center” custom property.
  • Associate it with VMs, Hosts and VMTemplates.
  • Fill in the Cost Center value for all hosts in a specific host group
  • Fill in the Cost Center for all VMs in that host group
  • Fill in the Cost Center for all VM Templates that may be deployed to that host group.
  • In the host group properties, choose “Custom Placement Rules”. Add a new entry that “Cost Center” has a rule that it “Must Match”.image

When you try to migrate any of your existing VMs, hosts cost centers values that don’t match the VM being placed will get 0 stars and a blocked deployment. When you create a new VM from a VMTemplate, only hosts with the same cost center as the VMTemplate will get positive star ratings.


Using the “Must not match” or “Should not match” rules will allow you to configure a specific VM or set of VMs which will not be placed on a specific set of hosts.

Custom placement rules - the full details

There are a number of permutations in behavior, which I’ll detail here.

Rule

Behavior

If host property is blank

Must match

0 stars and blocking if VM property doesn’t match host property

No VMs will match. No VMs will be allowed to place.

Should match

Placement warning if VM property doesn’t match host property

No VMs will match. Host will always get a warning in placement.

Must not match

0 stars and blocking if VM property is identical to host property

No VMs will match. All VMs will place successfully.

Should not match

Placement warning if VM property is identical to host property

No VMs will match. All VMs will place without warnings.

Preferred and Possible Owner nodes

If your VMs are placed on a Hyper-V cluster, VMM 2012 SP1 allows you fine-grained control over what hosts each VM should run on. In the VM properties you can set preferences for which cluster nodes each VM is allowed on (Possible Owners), and which nodes you would prefer each VM to be on (Preferred Owners).  During Dynamic Optimization, patching or cluster failover, your preferences will be taken into account and your specified target nodes will be preferred.  The detailed behavior is shown below.

Rule

VMM behavior

Failover cluster behavior

Preferred owner

Preferred hosts will be selected first. Other hosts will show a warning in placement and appear at the bottom of the list of hosts.

During failover, cluster manager will try to start VM on preferred nodes, in order of preference. If no preferred owners are available, any host will be used.

Possible owner

VM can only be migrated to possible owners. Other hosts will get 0 stars and a blocking error, preventing migration.

During failover, only possible owner nodes will be considered. VM will never fail to a host that is not a possible owner.

image

Note: Preferred and possible owner nodes are configurable only for existing highly available VMs running on a Hyper-V cluster.

VMM Availability sets

In VMM 2012 SP1, we have added Availability Sets.  Failover Cluster Manager users will be familiar with AntiAffinityClassNames, and Availability Sets are a very similar concept. We allow the user to specify a set of VMs which they would prefer to keep on separate hosts, and the Intelligent Placement engine works hard to make sure that all our features respect that preference.

  • Attempting to place multiple VMs with the same Availability Set onto a single host will generate a placement warning, meaning that the host will be prioritized last in the placement dialog
  • When placing a VM with an Availability Set into a cloud placement or as part of a service will avoid hosts with another VM from the same Availability Set, and warn the user if that was the only choice.
  • Dynamic Optimization will never move 2 VMs from the same Availability Set onto the same host. It will also actively attempt to separate any VMs with the same Availability Set that are on the same host.
  • Power Optimization will never power off a host that would lead to 2 VMs with the same Availability Set sharing a host.
  • Putting a host in maintenance mode will attempt to spread VMs with the same availability set to different target hosts.
  • If your VMs are highly available and hosted on a Hyper-V failover cluster, we create AntiAffinityClassNames on the VMs with an Availability Set, so that even during cluster failover, we opt to failover to different hosts, if possible.

Creating Availability Sets

Availability sets can be created in three ways.

Existing AntiAffinityClassNames in Failover Cluster Manager

After you upgrade to VMM 2012 SP1, all your VMs with AntiAffinityClassNames will automatically have the corresponding Availability Sets added by the VMM VM refresher, so that Intelligent Placement can be informed of the rule that FCM was already enforcing.

Manually adding Availability Sets to new or existing VMs

In a VM’s properties, look at Hardware Configuration, under “Availability”.  A button and dialog have been added there to create Availability Sets per-VM. A list of previously used Availability Sets is presented to you to make it simple to add multiple VMs into the same Availability Set.

image

Automatically applying an Availability Set to a Service Tier

You can choose for VMM to automatically create an Availability Set for a specific tier in a service. In the service designer, just check the “Enable Availability Set” checkbox for each tier you would like to have this feature.  During service deployment, every VM in that tier will get put into an Availability Set, and Intelligent Placement will place each VM from that tier on a different host, whenever possible.

Conclusion

Availability Sets are configurable on all hypervisors, and on both HA and non-HA VMs. Intelligent Placement will attempt to keep the Availability Set spread between hosts in all of its various functions throughout VMM. On Hyper-V clusters you have the added feature that the hypervisor is given the Availability Set name for HA VMs, so it can attempt to keep them apart during failover.


I hope you’ve enjoyed learning more about Intelligent Placement’s features in VMM 2012, as well as the new features added in SP1. If there are any other aspects of VMM’s placement behavior that you are interested in hearing more in depth about, please leave feedback here.

If you use System Center 2012 Virtual Machine Manager SP1 on Windows Server 2012, you’ll want this update

$
0
0

imageHi everyone, Alvin Morales here. If you are using System Center 2012 Virtual Machine Manager Service Pack 1 (VMM) to manage storage and assign LUNS, there is a collection of updates that may improve this functionality. These updates are for Windows Server 2012 and need to be applied on hosts, VMM servers and any other system that will interact with storage.

These updates are offered via Windows Update (see KB2785094) but you can also download a standalone installer here: http://www.microsoft.com/en-us/download/details.aspx?id=36259.

J.C. Hornbeck| Knowledge Engineer | Microsoft CTS Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

KB: Migrating a VM in Virtual Machine Manager fails with "The host does not have access to sufficient storage of the requested classification"

$
0
0

eWe just published a new KB article that discusses an issue where when using System Center 2012 Virtual Machine Manager (VMM) to migrate a virtual machine between two standalone hosts, the operation fails with:

“The host does not have access to sufficient storage of the requested classification for one or more virtual disks associated with virtual machine <VM_NAME>.”

You can find the complete article here:

KB2823834 - Migrating a VM in Virtual Machine Manager fails with "The host does not have access to sufficient storage of the requested classification" (http://support.microsoft.com/kb/2823834)

J.C. Hornbeck| Knowledge Engineer | Microsoft CTS Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

KB: VMs in Virtual Machine Manager report "Unsupported Cluster Configuration" and error 23772

$
0
0

eWe just published a new KB article that talks about an issue where In the Virtual Machine Manager admin console, VMs report Unsupported Cluster Configuration and the job view error is:


Error 23772
One or more available cluster volumes associated with host %VMHostName; is not associated with a path in the default placement path list and will not be considered for placement. Refresh the cluster to ensure that all available cluster storage has an associated default placement path.

You can find the complete article here:

KB2822797 - VMs in Virtual Machine Manager report "Unsupported Cluster Configuration" and error 23772 (http://support.microsoft.com/kb/2822797)

J.C. Hornbeck| Knowledge Engineer | Microsoft CTS Management and Security Division

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

VMM 2012 R2 SP1 - Hyper-V over SMB support in VMM – Troubleshooting 101 What’s Wrong and Why

$
0
0

Radhika Gupta | Software Development Engineer | Microsoft

toolsignIn Windows Server 2012, Hyper-V added the capability to store virtual machine (VM) resources on network shares hosted on NAS devices as an alternative to SAN remote storage. This improved Hyper-V storage stack provides increase resiliency for network disconnects by using the “resilient handles” feature in the SMB protocol. This means that now VM resources such as VM configuration files, ISO files, VHD files, and VHD snapshot files can all be stored on any remote SMB file share that supports the SMB 2.2+ protocol.

The Hyper-V over SMB feature in System Center 2012 Virtual Machine Manager (VMM) builds on this feature by providing increased management support and adding full support for NAS storage management. Users can now do the entire lifecycle of a network share from creation to modifying permissions to deletion through VMM. These network shares can either reside on a Windows Server 2012 (now SMB 3.0) file server or on NAS devices that implement the SMB 2.2 or higher protocol. Currently VMM supports NAS devices (NetApp or/and EMC) that support the SMI-S compliant storage provider.

The first part of these blog series covers all about learning the implementation details of various operations. In this second part we are going to cover troubleshooting. We are going to go over each operation and see what could go wrong in each of these operations (i.e. What’s Wrong and Why, or WWW).

Basics

Below, you will find the steps to manage SMB shares in VMM:

Add Storage device

The first step is to add the storage device or the Windows file server into VMM’s management. This can be done using the Fabric workspace –> Storage\Provider node –> Right-click and select the “Add Storage device” option. Select “Windows based file server as managed storage device”. The Add-SCStorageProvider cmdlet can also be used to add the storage device from the PowerShell command line.

1. WWW: Use the RunAs account that has administrator access on the file server. VMM will use this specified RunAs account to execute any future file share administrative operations like creating, modify permissions and deleting shares. Users might choose a RunAs account that does not have admin rights (in the local administrator’s group) on the file server machine, or the RunAs account entered in VMM might have the wrong password.

image

image

2. WWW: As part of adding the storage provider/file server operation, VMM will discover all the currently present shares on the storage device and add them to VMM’s management. Any shares added later on the storage device (out of band from VMM) will also be periodically discovered and added to VMM management. These shares are not automatically added as managed shares and should be marked for management to be used by VMM. This can be done using the Share properties page.

image

3. WWW: Users can also add storage devices in non-trusted domain machines. It is important to check the “This computer is in an untrusted Active Directory domain” checkbox if we are adding such a machine as file server. It’s possible that the user might choose a non-trusted domain machine but forget to check this box. If the machine is reachable then at this stage we would add the machine successfully but one would see errors later when performing other operations on the shares. More information is covered in later steps.

4. WWW: User can also add storage devices in non-trusted domain machines. The machine name might not be resolvable by DNS.

5. WWW: We communicate to the file server using WinRM and remote management might be disabled on the file server. This is a setting in Server Manager. Note that this is applicable to each call we make to the file server.

image

If this is the case, you may get the following error:

image

VMM is using WinRM for the request. WinRM cannot complete the operation. The client cannot connect to <serverName.domain.com> specified in the request.

6. WWW: Another reason for the error above is that the WinRM call is attempting to communicate with an incorrect port (e.g. port 80 instead of port 5985). Port and protocol both should be 5985 and http respectively for the default file server configuration. The following registry key stores the WinRM port for VMM:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager Server\Settings, WSManTcpPort

7. WWW: The user might try to add a provider with lower then SMB 2.2 support. We would get an ‘SMB 2.2 protocol not supported’ error in this case.

Create the share

You can optionally create file shares directly on the provider using the Fabric workspace –>Storage\Provider node –> Select the provider from the right view or data grid –> Select the ribbon action to Create File Share. If the user specifies a local path that is not present on the file server, VMM will automatically add the path for you.

The New-SCStorageFileShare cmdlet can also be used to create the share from PowerShell command line.

image

 

8. WWW: While creating the share, the user could enter a incorrect local path (i.e. incorrect drive). We would create the folder if one is not present.

image

An internal error has occurred trying to contact the <serverName.domain.com> server: :w:InternalError: :Windows System Error 2116:The Device or directory does not exist.

Register the share to a host or cluster

Once a share is added or discovered, you need to register it with any hosts or clusters where you want to create the VMs that can utilize the file server remote storage. This is done using the Fabric workspace –> Select the host or cluster –> Right-click “Properties” –> “Storage” page (for host) or “File Share Storage” page (for clusters) -> Select “Add File Share” option.

The Register-SCStorageFileShare cmdlet can also be used to register the share from PowerShell command line.

image

9. WWW: Why doesn’t my share does not show up in the list? If the share was discovered later or not marked as managed, then it would not show-up in the list here. VMM only shows managed shares here.

10. WWW: As part of this operation, VMM will modify the share with the necessary permissions so that the Hyper-V host can access the storage. It modifies both share and NTFS permissions. We might get specific errors stating what permissions were not modified and user can manually go and modify the permissions. One error could occur if the file server RunAs account does not have appropriate permissions.

image

VMM does not have appropriate permissions to access the resource on the <serverName.domain.com> server.

11. WWW: While adding the storage device/provider, if the checkbox for “untrusted active directory domain” is not checked for a machine in an untrusted active directory domain then we would not be able to modify the permissions. Registering the share will fail with a warning and the task will have errors related to the failure. An example of one of these errors is below:

image 

Error (2912)

An internal error has occurred trying to contact the DCMRR25R16N42 server: :w:InternalError: :Windows System Error 1332:No mapping between account names and security IDs was done. .

WinRM: URL: [http://dcmrr25r16n42:5985], Verb: [INVOKE], Method: [GrantAccess], Resource: [http://schemas.microsoft.com/wbem/wsman/1/wmi/root/microsoft/windows/smb/MSFT_SmbShare?Name=radhika-testshare1+ScopeName=*]

No mapping between account names and security IDs was done (0x80070534)

Recommended Action

Check that WS-Management service is installed and running on server DCMRR25R16N42. For more information use the command "winrm helpmsg hresult". If DCMRR25R16N42 is a host/library/update server or a PXE server role then ensure that VMM agent is installed and running.

Error (26272)

Failed to grant permissions for share \\DCMRR25R16N42\radhika-testshare1 on file server DCMRR25R16N42 due to errors during the operation.

Recommended Action

Manually grant permissions on \\DCMRR25R16N42\radhika-testshare1.

Unregistering the share from the host or cluster

Before removing the host or cluster, it is recommend to unregister the share from the host or cluster. This will clean up all of the unnecessary permissions to the Hyper-V host on the share. This can be done using the Fabric workspace –> Select the host or cluster –> Right-click “Properties” –> “Storage” page –> Select the “Remove File Share” option.

The Unregister-SCStorageFileShare cmdlet can also be used to unregister a share from the PowerShell command line. Based on optional user input –RemovePermissionsOnShare, one can select to not modify the permissions on the share. This option is only available when using PowerShell command line. The default for this option is $false (i.e. to always leave the permissions on the share). So if you are seeing that your permissions are left on the share, then it’s probably because the share was not removed with the –RemovePermissionsOnShare parameter.

Remove the share

You can also remove the share completely from the file server using VMM. This can be done using Fabric workspace –> Storage/Provider node –> Select the provider from the right data grid –> Select the share –> Select the ribbon action “Remove”. Please note that this would permanently remove the share from the file system. This will not delete the files on the share. The Remove-SCStorageFileShare cmdlet can be used to remove the share from PowerShell command line.

VMM Server Setup & Host Agent installation

VMM uses CredSSP and enables CredSSP on the host agent WinRM calls. Since WinRM only allows delegation of “Fresh credentials”, this requires the VMM server to explicitly pass valid credentials when creating a WinRM session. Note that we cannot use the VMM service account since WinRM does not support using “Default credentials”. We use the RunAs account assigned while adding the host or cluster for this purpose. All of the following WinRM calls to the host will use this RunAs account to manage the host, hence it’s essential to add the host and/or cluster with a RunAs account instead of just providing direct credentials (i.e. username and password),allowing VMM to use these saved credentials for delegation.

image

Figure 2: Credential Delegation

To enable CredSSP, VMM automatically does the following for you:

1. VMM Server Setup: VMM server setup configures the machine’s group policy settings to allow WinRM to use the CredSSP authentication provider.

- Enable WinRM client GPO: Computer Configuration\Administrative template\Windows Components\Windows Remote Management (WinRM)\WinRM Client

[Allow CredSSP authentication] = true

OR

Command Line: winrm set winrm/config/client/auth '@{CredSSP="true"}'

WWW: If the VMM server side WinRM client configuration CredSSP setting is set to false by a domain GPO then you would see the following error:

image 

Error (20554)

The Windows Remote Management (WinRM) client on VMM server cannot process the request to the target computer radhikgu-wsvh2.redmond.corp.microsoft.com. CredSSP authentication is currently disabled on the client configuration.

WinRM: URL: [http://radhikgu-wsvh2.redmond.corp.microsoft.com:5985], Verb: [INVOKE], Method: [GetVersion], Resource: [http://schemas.microsoft.com/wbem/wsman/1/wmi/root/scvmm/AgentManagement]

Unknown error (0x803381a2)

Recommended Action

Change the client configuration on VMM server by running: winrm set winrm/config/client/auth @{CredSSP="true"} from elevated command line and try the request again. Also, Group Policy must be edited to allow credential delegation to the target computer. Use gpedit.msc and look at the following policy: Computer Configuration -> Administrative Templates -> System -> Credentials Delegation -> Allow Delegating Fresh Credentials. Verify that it is enabled and configured with an SPN appropriate for the target computer. For example, for a target computer name "myserver.domain.com", the SPN can be one of the following: WSMAN/myserver.domain.com OR WSMAN/*.domain.com OR WSMAN/*

Enable credential delegation GPO: Computer Configuration\Administrative Templates\System\Credentials Delegation

[AllowFreshCredentials ] = "WSMAN/* "

WWW: If the above setting is somehow removed by a GPO, then you would see the following error:

image 

Error (20553)

The Windows Remote Management (WinRM) client on the VMM server cannot process the request. A computer policy does not allow the delegation of the user credentials to the target computer radhikgu-wsvh2.redmond.corp.microsoft.com.

WinRM: URL: [http://radhikgu-wsvh2.redmond.corp.microsoft.com:5985], Verb: [INVOKE], Method: [GetVersion], Resource: [http://schemas.microsoft.com/wbem/wsman/1/wmi/root/scvmm/AgentManagement]

Unknown error (0x803381a3)

Recommended Action

Use gpedit.msc and look at the following policy: Computer Configuration -> Administrative Templates -> System -> Credentials Delegation -> Allow Delegating Fresh Credentials. Verify that it is enabled and configured with an SPN appropriate for the target computer. For example, for a target computer name myserver.domain.com, the SPN can be one of the following: WSMAN/myserver.domain.com OR WSMAN/*.domain.com OR WSMAN/*

2. Host agent Setup:

Enable WinRM service GPO: Computer Configuration\Administrative template\Windows Components\Windows Remote Management (WinRM)\WinRM Service.

[Allow CredSSP authentication] = true

OR

Command Line: winrm set winrm/config/service/auth '@{CredSSP="true"}'

WWW: If the host side WinRM service configuration CredSSP setting is set to false by a domain GPO after agent installation already happened then you would see the following error:

image 

Error (20552)

VMM does not have appropriate permissions to access the resource on the radhikgu-wsvh2.redmond.corp.microsoft.com server.

Recommended Action

Ensure that Virtual Machine Manager has the appropriate rights to perform this action.

Also, verify that CredSSP authentication is currently enabled on the service configuration of the target computer radhikgu-wsvh2.redmond.corp.microsoft.com. To enable the CredSSP on the service configuration of the target computer, run the following command from an elevated command line: winrm set winrm/config/service/auth @{CredSSP="true"}

I hope that you will found this post helpful. If you know of any other error scenarios and would like them to be add to this list, please feel free to submit feedback at the bottom of this post and/or ask questions on the VMM forums. Also, make sure to visit the VMM 2012 TechNet Library!

Thanks,

Radhika Gupta | Software Development Engineer | Microsoft

Get the latest System Center news onFacebookandTwitter:

clip_image001clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

Viewing all 504 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>