Archive

Archive for the ‘SCVMM’ Category

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:

VMM Configuration Analyzer for 2012 R2

January 17th, 2014 No comments

In the upgrading of a VMM 2012 Sp1 to R2 I wanted to test and run the Configuration Analyzer. When clicking on the link from the VMM R2 GA media you should be observant that it points you to the wrong place though, as you can see on the following screendump there is a link on the splash screen.

Screen Shot 2014-01-17 at 09.59.27

And when pressing that link you will arrive at the following site, which is wrong! So do not start downloading the stuff from this as these files are for the VMM 2012.

Screen Shot 2014-01-17 at 11.04.08

The right site is at the following link:  http://www.microsoft.com/en-us/download/details.aspx?id=41555 and looks like this, do also notice that it is an analyzer for the whole System Center suite so you can do analyzing of all your different SysCtr servers.

Screen Shot 2014-01-17 at 11.05.18

You can also at this technet site read more about how it works and what prerequisites you have to install first.

Categories: SCVMM, Virtualization Tags:

SCVMM VM property dialog crash console with missing vhd(x)

January 14th, 2014 No comments

Today I was at a customer and they had an interesting error in their virtualization environment with Hyper-V 2012 and SC VMM 2012 Sp1 (yes I know, it is not R2 but we are working on it). One of their Hyper-V hosts had a hardware memory failure which lead to the host crashing and the VM´s restarting on other hosts..

during this the VM´s that was on that host got an error in the VMM db, looking and handling the VM´s from Hyper-V manager or failover cluster manager was no problem. Every time we tried to refresh the VM´s showed the following error and the job did not succeed.

Screen Shot 2014-01-14 at 14.36.51

And when we tried to look at the properties on the VM from VMM the console just died, and that happened every time..

Screen Shot 2014-01-14 at 14.28.50

So how could we find the VM´s that was suffering from this, well PowerShell could be used and with the following we could get the amount of VM´s and also easily get a list of the VM´s names.

Screen Shot 2014-01-14 at 13.26.15

So how could we fix this then,

There is a cmdlet in VMM with a parameter that can be used,  Remove-SCVirtualMachine -Force , this will remove the VM but not the virtual hard disk as it cannot find it..

Screen Shot 2014-01-14 at 16.20.21

But because we want to keep the VM we will do a bit of a workaround

  1. Stop the vm in VMM  by Stop-SCVirtualMachine own01  (even if the vhd(x) is not seen by VMM it will shut down the actual VM)
  2. Remove the VM from the cluster in Failover cluster manager or with powershell (this will only remove the cluster instance but not the actual VM)
  3. Start the VM in Hyper-V manager or with PowerShell  Get-VM own01 -ComputerName HV01 | Start-VM
  4. Remove the VM from the VMM with Powershell using the -force  Get-SCVirtualMachine own01 | Remove-SCVirtualMachine -Force (as I have removed the VM from the cluster VMM cannot find it and delete the vm´s xml file etc)
  5. Add the running VM to the cluster again with hyper-V PowerShell and failover cluster powershell using Get-VM own01 -ComputerName HV01 | Add-VMToCluster (Get-Cluster HVCL30)
  6. refresh VM´s in VMM and see that now the own01 vm can open properties

The reason I start the VM after removing it from the failover cluster is that VMM should think it is in stopped state, because that makes it easier to remove! And as in Hyper-V 2012 I can add a running VM to a cluster I do not have to keep the VM shut down during the whole process but just to get it into the right state in VMM :-)

Not the easiest way but hey who had said that VMM was self-healing :-P And yes we are in the process of upgrading to R2 and hopefully this error will not reemerge in that version….