Archive

Archive for the ‘SCVMM’ Category

Live migrating VM´s between clusters in VMM 2012 R2

October 17th, 2014 No comments

Today I have been doing some work at a customer creating a Hyper-V 2012 R2 Cluster and starting to live migrate VM´s from their Hyper-V 2012 Cluster.

Doing that from VMM gave me some errors and here is the solution so that if you happens to get into the same problem :-)

First of all, when added the new cluster to VMM I tried to live migrate a VM but got this error (12700)

Screen Shot 2014-10-17 at 19.30.43After a quick search on the net I found this blog post explaining the need to configure kerberos live migration and delegation between the hosts and also that the hosts needs an “Host Management Credentials” account set up in the properties! I had already set up the hosts to use Kerberos and delegation between and still got the above error but when checking the Run As account it was empty:

Screen Shot 2014-10-17 at 15.53.45The problem as you can see though, it is greyed out and cannot be altered, I tried to do add an account through PowerShell and there I got an answer that it had to be set on the cluster,

Screen Shot 2014-10-17 at 21.37.08

checking on the cluster properties in the VMM console there is nowhere to add or see the management credential

Screen Shot 2014-10-17 at 21.32.37

So back to PowerShell again:

 

Screen Shot 2014-10-17 at 21.54.19

And when this is set all the cluster hosts have this credential set and then when doing a Live Migration it succeeded :-)

 

 

 

 

Categories: Hyper-V, Powershell, SCVMM, Virtualization Tags:

Download SysCtr Tech Preview VHD´s with PowerShell

October 12th, 2014 No comments

Now that the Windows Server Technical Preview and also the System Center Technical Preview have arrived everyone wants to start testing, I have in an earlier post done some initial testing of the new Hyper-V features.

If you want to quickly test the released System Center Tech Preview then use the preinstalled VHD´s that helps you get up and running much faster than installing on your own :-)

The released System Center Tech Preview roles are

  • System Center Virtual Machine Manager
  • System Center Orchestrator
  • System Center Operations Manager
  • System Center Data Protection Manager
  • System Center Service Manager

I have in earlier post showed how you can download all the VHD´s for System Center 2012 R2 and of course I could not use that script right of the shelf for downloading the tech preview as someone have done changes on the web page, but here is it! And I have also added some more functionality for you to choose which of the roles you want or all.

First of the changes gives for some reason duplicates of each file url from the web page I collect the download url´s I want to download and to get around that I use the superduper cmdlet and parameter Select-Object -Unique which gives me an array with all files just once ;-)

Screen Shot 2014-10-12 at 21.24.57

Secondly with Invoke-WebRequest PowerShell uses IE under the hood and I get this dialogue and to get rid of that i use -BasicParsing and that lets PowerShell use its own parser.

Screen Shot 2014-10-12 at 21.15.10

And as you saw in the above screendump I utilize Switch parameters so you can choose which of the roles you want and here you can see the script and copy to your own lab server and start downloading to test!

And by the way, make sure that you either have enough storage available on C: or what drive and folder you want to save it to with the -Dest parameter!!

Observe also that you probably will start the download and go for a walk or sleep as it is quite some data that will be downloaded!

Happy testing!

Error 21161 when doing Bare-Metal deployment on VMM 2012 R2

September 13th, 2014 1 comment

Yesterday I was testing Bare-Metal deployment on a VMM 2012 R2 with a new Hyper-v image and got the error 21161 during the process of making a physical machine into a Hyper-V Server.

Screen Shot 2014-09-12 at 13.40.25

I did of course check the library server (which was the same as the VMM server) and also that the vhdx that contains the Hyper-V image was in the library. I also checked the profile where the reference to the VHDx is and everything looked good.

The error was resolved when checking out the library server properties and changing to a host group instead of the default.

Screen Shot 2014-09-12 at 11.37.18

I have been deploying servers from this VMM before and why it started to complain right now is a mystery and I will dig and see if I can find the reason and if I do you will get an update on the blog, but now you know how to get it running :-)

Update: Daniel Clarke mentioned my fix, In the VMM I have as this error occured I had not updated to UR3 during the time between the deployments which would otherwise had maybe explained the error. I have now updated the server to UR3 and can still do bare-metal deploy.

happy deployment!

Categories: Hyper-V, SCVMM, Virtualization Tags:

Review of VMM 2012 R2 Cookbook 2nd edition

August 20th, 2014 No comments

I have had the privilege to read the book System Center 2012 R2 Virtual Machine Manager Cookbook – Second Edition by Edvaldo Alessandro Cardoso

Screen Shot 2014-08-20 at 20.32.29

This is a Cookbook with tons of recipes that will help you setup and configure VMM 2012 R2.  With the Cookbook format you easily can get information and knowledge in the area that you need and use it as a reference.

The content includes

  • VMM Architecture
  • Upgrading from previous versions
  • Installing VMM 2012 R2
  • Installing a HA VMM
  • Configuring Fabric resources
  • Deploying VMs and services
  • Managing VMware ESXi and Citrix Xen
  • Managing hybrid clouds
  • Integration with SCOM
  • Scripting with Powershell in VMM

I can really recommend this book even if you know some about VMM, Edvaldo gives some more insights and information that can help you in your work!

If you want to buy this book you can do this at the following link http://bit.ly/1s7qAqO

Categories: SCVMM, Virtualization Tags:

vCenter 5.5 integration in SC VMM 2012 R2

June 10th, 2014 No comments

I have for a Server Lifecycle project been investigating the possibility to add a vCenter 5.5 to a System Center VMM 2012 R2 environment as we are going to use WAP, SMA, SPF and VMM.

Based on the documentation on Microsoft Technet site the support ends with vSphere 5.1. Now this customer already runs vSphere 5.5  and I wanted to quickly check if it was possible at all to connect a vCenter 5.5 to VMM 2012 R2 and manage some basic tasks on VM´s.

Screen Shot 2014-06-09 at 13.02.08

And as you can see I managed to add the vCenter Server and after adding a ESXi host the view in VMM looks like this

Screen Shot 2014-06-09 at 16.41.09

Checking it in PowerShell, I can see that it looks and reports in the same manner as the 5.1 vCenter that I have registered

Screen Shot 2014-06-09 at 21.21.58

And after some VM massage I can see that basic tasks as starting, stopping and also taking snapshots works as intented through the vCenter 5.5.

Screen Shot 2014-06-09 at 22.34.27

Of course new features introduced in vCenter 5.5 and ESXi 5.5 for the VM´s will not work and there might be other things that also can have issues, I will continue to explore and if I find anything that seems to be a showstopper I will do a followup blog post.

Categories: SCVMM, SysCtr, Virtualization, VMware Tags:

Regional Settings on your VMM 2012 R2 VM Templates

April 14th, 2014 3 comments

When you created VM templates out-of-the-box in System Center Virtual Machine Manager they get the en-US regional settings for all rolled-out VM´s and that in Sweden is not always standard for the IT departments and the IT techi-guy has to configure that manually afterward. This can be altered with either PowerShell or with an unattend.xml file.

If there happens to be some templates that you have not configured with the right regional settings and keyboard layout I have a small PowerShell script that will configure this for all templates in the VMM library.

Screen Shot 2014-04-14 at 18.53.39

Check out this KB2709539 article for more information and also your specific regional codes for your country :-)

Categories: SCVMM, Virtualization Tags:

Automated PowerShell to keep your template vhd(x) IC updated

March 31st, 2014 No comments

For the Veeam Seminar I did some digging in how to check and also apply updated integrational components on virtual disks in the System Center VMM library and found Ben´s script which I altered to fit my goal. This is quite convenient based on that you can schedule it and always have updated IC´s on those VHDX in the library.

I check and get the current IC´s from one Hyper-V host and thus based on that if it has been updated I also get that update instead of using a copied IC version locally in the VMM server. The script runs on the VMM server and that is why I use the Mount-DiskImage cmdlet instead of the Mount-VHD as that does not work on a non-hyper-V enabled windows server.

Screen Shot 2014-03-30 at 10.42.33

 

 

 

Veeam webinar 19/3: Automate daunting virtualization tasks with SMA

March 5th, 2014 No comments

On wednesday the 19th of March I will together with Veeam have a web seminar with the topic:

Screen Shot 2014-03-05 at 21.54.12

Automate daunting virtualization tasks  with SMA

Now that you have set up your virtualization environment, you’ll want to automate it. In this webinar, you will learn how to do this with Service Management Automation(SMA) and how to integrate automated tasks into the Hyper-V virtualization environment. You will use different runbooks to automate some boring but necessary tasks that IT admins have to do.

This webinar will show you how to:

  • Automate patching of virtualization hosts
  • Expand virtual hard disks based on usage
  • Automatically update integrational components on VMs
  • Automatically update virtual hard disk templates
  • Clean old snapshots that have been forgotten
  • And more…

If you want to register and be part of this crazy one hour with the Swedish Chef you can do it on the following link

And guess what, It comes in a swedish version also! Check out in the following link and if you understand Swedish, register here!

Why are my Hyper-V hosts in VMM reporting “Needs Attention”?

February 27th, 2014 No comments

If you are kind of new to System Center VMM console and wondering why after a while your hosts responds “Needs Attention” and checking the host properties and seeing that everything looks green in the status, then continue and read this post!

Screen Shot 2014-02-27 at 10.18.10

Screen Shot 2014-02-27 at 12.31.28

You can just extend the console by right-click the hosts bar and add the column with “Agent Version Status” and then you can see the reason for host status,

Screen Shot 2014-02-27 at 10.23.49

The reason for this “Upgrade Avail” is that the VMM server has been updated with some new patches/updates that came with Windows Update and now you need to update your hosts to have the new agent to properly talk to the VMM Server.

That can of course be done with PowerShell if you have quite some hosts…  You can of course also get the list of which hosts that need an update,

Screen Shot 2014-02-27 at 10.41.28

And then with the following command also update the hosts that need to

Screen Shot 2014-02-27 at 10.53.23

If you are wondering why I am filtering on Agent-Version -ne “0.0” is because in this environment there are several VMware hosts and they do not have a VMM agent but is recognised as managed hosts and appear when getting the “managed computers”

Good luck :-)

Categories: Hyper-V, Powershell, SCVMM, SysCtr, Virtualization Tags:

SCVMM 2012 R2 and deploying VM´s with altered name on vhdx

January 20th, 2014 2 comments

I observed a question on the technet forums regarding if it was possible to change name of the virtual hard disk when deploying a virtual machine or template from System Center Virtual Machine Manager, and the answer is yes.

Having a few hundred VM´s and all of them having the same name of the vhdx as the template might not look so good.

So how to solve this then, first of is when deploying new VM´s you should change the name and that can only be done in the VMM GUI when deploying to a host and not to a cloud. Notice that I create the VM from the template in the library view of the console.

Screen Shot 2014-01-20 at 12.20.07

When using this way the console automatically fills in the guest os name. When creating a VM from a template in the VM´s and Services view that has to be filled in manually.

Screen Shot 2014-01-20 at 12.22.27

So how to get the name of the VM also on the vhdx that holds the VM´s operating system, as I described above, you have to select deploy to a host and not a cloud (of course, when the VM has been created it can be updated with a cloud)

Screen Shot 2014-01-20 at 12.24.29

Then when you come to the configure settings view in the wizard, the option to change the vhdx name appears,

Screen Shot 2014-01-20 at 12.32.54

Surely you find that having vhdx that has the same name as the VM instead of the generic library vhdx name of win2012-std.vhdx more suitable?

In the next post I will show you how to change the names of the disks on already deployed VM´s.

 

Categories: Hyper-V, SCVMM, Virtualization Tags: