Archive

Archive for the ‘SCVMM’ Category

New sponsor on my blog 5Nine Software

December 18th, 2014 No comments

I have got the pleasure to get a new sponsor for my blog and that is the company 5Nine Software that makes some cool products for Hyper-V

5ninelogo The products they have

  • 5Nine Hyper-V Manager – a great christmas sale with 25 % right now!
  • 5Nine v2v converter
  • 5Nine Cloud Security

And these are also available as free versions with some limits but still great stuff

check out their web!  www.5nine.com

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

VMM agent disappeared on hyper-v host during update

November 29th, 2014 No comments

This week I was working with a customer environment and after successfully upgraded their test VMM environment to UR4 it was now time for the production environment.

The UR4 installation went fine and without issues. After that I wanted to update the agents on the Hyper-V hosts. I used PowerShell of course and all agents except one was successfully updated and started reporting to VMM.

I started to examine the one that failed and could see in jobs that it had timed-out:

Screen Shot 2014-11-28 at 15.50.15

And checking on the host I could see that the uninstall of the old agent had been done as the vmm agent service was gone. As this was a hyper-v host in a cluster and the cluster was slightly over allocated I could not remove the node from vmm and then add it in again so,

Screen Shot 2014-11-28 at 15.43.50

Based on this post I went for the way to try to do a manual install on the host and copied the latest agent that i could find in the vmm folder C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\agents\Amd64\3.2.7768.0 to the host c:\temp

Screen Shot 2014-11-28 at 15.43.10

Important during the installation wizard was to let the perimiter host dialog checkbox to be unchecked as this was a host already in vmm and also in the same domain.

Screen Shot 2014-11-28 at 15.44.42

And doing a check on the services after the install was finished I could see that the VMM agent was installed and now running

Screen Shot 2014-11-28 at 15.45.36

Once that was completed I could do a refresh in VMM and the host was reporting again and could be managed :-)

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

Look twice when deploying VM´s in VMM or get the wrong vhdx

November 28th, 2014 No comments

Today I have been working with some updates on a customers Hyper-V environment and their host images (that I use for bare-metal deploy). The VMM server has all the updates with VMM 2012 R2 UR4 and also Windows Server with November update, although this issue goes further back than that and based on Brian Ehlert´s post you can see that it is by design :-)

I wanted to deploy the vhdx to a host to update with settings and windows updates. In my library it looked as following and i right clicked on the marked vhdx and selected create VM.

Screen Shot 2014-11-28 at 14.42.07

But when I had deployed it and started working on it with patching and configuring, somethings did not seem to be right, and looking in the folder of the newly created vm revealed this:

Screen Shot 2014-11-28 at 14.52.43

As you can see it is the old vhdx that has been copied from the library, initially I thought that I maybe selected the wrong vhdx and recreated another VM with the exact same result!

Why did this happen? Well as I mentioned above with Brians post, this is because I have not changed the details with family name and version of the VHDX objects in the VMM database so it just selects one that seems to be right based on the inital request. wrong or right?

If it is by design, then I would say that it should show in the wizard and not as you see I get!

In the wizard and the HW tab it seemed like I had the right vhdx, and also when continuing to the next view and review stage of the provisioning phase, you can see that it said right library resource and also in the bottom with the file name it looked correct,

Screen Shot 2014-11-28 at 14.43.44

but when I investigated things a bit further and checked the whole path of the source it revealed the nasty _old.vhdx

Screen Shot 2014-11-28 at 14.45.00

And after I pressed “Browse” and selected the right VHDX and started the deploy everything worked as intended..

Screen Shot 2014-11-28 at 14.45.38

So what is the lesson here? Either clean up your old vhdx version in the VMM library or set the version and family name differently and that not only in the end of the filename :-)

Happy WVMMeekend!

Categories: SCVMM, Virtualization Tags:

a not so normal CBS.log size of 57 GB on a Hyper-V host

November 17th, 2014 No comments

I was working with a customer and updating their test environments VMM server with the new UR4 that have been released and noted that one of the cluster nodes was not working as intended.

Screen Shot 2014-11-17 at 10.56.32

The Event logs also told me that the cluster service disliked the lack of disk space,

Screen Shot 2014-11-17 at 12.29.06

And I could also see in the logs after running the powershell commands for updating the Agents on all hosts (right-click on multiple is not the optimal way :-) )

Screen Shot 2014-11-17 at 10.57.16

But this quite clearly showed that the server was not healthy and full on disk, but why? Well I had to find what was eating up my space like that. The server was a Bare-Metal deployed Windows 2012 R2 with all updates and of course running as a core because a Hyper-V server do not need the full GUI! Still it should not be larger than about 9GB on a disk that is 40GB!

Screen Shot 2014-11-17 at 10.54.47

I found the folder containing the bad boy, still no real clue why the CBS.log could grow beyond the wildest of sizes and it was cleverly  auto compacted and disk fotprint of about 29GB but still 57GB large. Read a blog post about the Windows Trusted Installer going bananas but in my case I could not stop the service to be able to delete the large file.

Screen Shot 2014-11-17 at 11.16.36

A reboot did the trick and rotated the CBS logs and now I could remove it,

Screen Shot 2014-11-17 at 11.28.04

My C: was now breathing again :-P

Screen Shot 2014-11-17 at 11.28.44

And after this I was able to update the VMM agent and the node joined the cluster as a happy member.. will keep my eyes on this server to see if it was just a one time problem with the CBS.log or if happens again….

 

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

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 1 comment

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: