Archive

Archive for the ‘Hyper-V’ 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:

Get and Set powerplan on Windows Hyper-v 2012 R2 Core

December 2nd, 2014 No comments

In my work on Hyper-V i have been looking at the performance of the hosts and wanted to both check and also be able to set the powerplan. In this post from Scripting Guys, Ed explains how to use CIM for the action to get and set the Power plans and how much faster that is than using WMI.

I have since Windows Server 2008 R2 tried to have the Core version as a best practice when running Hyper-V and in some cases it requires some extra skills and arguments during deployment and management ;-)

The interesting part is that it differs between the full version and core as you can see that when I try to use Get-Cim from a Windows 2012 R2 full it works and I can see the different powerplans and also which one is active:

Screen Shot 2014-12-02 at 11.15.25

but when I try in a Windows Server 2012 R2 Core I get the following error “Provider load failure”, I have tried locally on the core and also remote so no difference there. My knowledge about WMI is a bit limited but a quick search says that it might be some missing or  corrupt files but I have tried 3 different servers installed with core so I would say it is something with missing!

Screen Shot 2014-12-02 at 11.33.01

As I want to be able to both check and set the right power plan centrally I have created two PowerShell functions that utilize the Powercfg.exe command within a invoke-command thus this works in Windows Server 2012 R2 Core. I am using regex for getting the active plan and the guid. The Set-PowerPlan can either use switch arguments or an actual Guid.

Screen Shot 2014-12-02 at 20.26.42

My friend and fellow Hyper-V MVP Didier WorkingHardInIT has made a blog post about live migration and why using “High performance”.

If you have any input or ideas how this could be improved or if you got it to work in core with CIM :-)

 

 

 

Categories: Hyper-V, Powershell, 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:

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:

Hot-add/remove Memory on a Hyper-V VM in Technical Preview

November 11th, 2014 No comments

I have been evaluating the new version of Hyper-V in technical preview of Windows and the new hot-add/remove functionality is quite cool and it works with both memory and network cards.

As you can read on technet page here, for the memory it has to be a virtual machine with either Windows Server Tech Preview or Windows Tech Preview running as a Generation 2 VM.

I have as you can see a VM with 768 MB ram and no dynamic memory enabled.

Screen Shot 2014-11-11 at 21.01.16

 

And here you can see that I can change the running VM`s memory both up and down, for the Windows Tech Preview I could go so low as 340 MB…

Screen Shot 2014-11-11 at 21.18.32

 

the command is Set-VMMemory -VMName xxx -StartupBytes 1024MB but you can also change the memory assigned in the Hyper-V Manager GUI.

Screen Shot 2014-11-11 at 22.05.44

And if you already have allocated the memory inside the VM with a SQL or a Minecraft server or another application you cannot shrink the memory bellow that:

Screen Shot 2014-11-12 at 09.54.04

Categories: Hyper-V, Virtualization Tags:

Microsoft Teched Europe 2014 – Sessions to watch/attend

October 23rd, 2014 No comments

teched-europe-2014-bottom

Next week Teched Europe kicks of and that will tons of great sessions! Sadly I can´t be there this year :-( but family comes first and the week after that I will be at the MVP Summit in Redmond!

But whats so great with the Microsoft conferences is that you can be part of whats happening even if you cannot make it onsite! Channel 9 will be live broadcasting and also all cool sessions will be uploaded!!

Here are some of the sessions that either if you will be in Barcelona or if you want to check out the recording later should watch/attend!!

As I am an Hyper-V MVP I of course have focus on virtualization, but as my friend and former colleague Fredrik Nilsson says: “attend a session on something you do not know” so here is my top 10 to watch out for!

Tuesday, October 28 1:30 PM – 2:45 PM Room: Hall 8.1 Room L
Speaker(s): Taylor Brown

 

Wednesday, October 29 12:00 PM – 1:15 PM Room: Hall 8.0 Room B1

 

Wednesday, October 29 10:15 AM – 11:30 AM Room: Hall 8.1 Room H

 

Wednesday, October 29 5:00 PM – 6:15 PM Room: Hall 8.1 Room L
Speaker(s): Ned Pyle

 

Wednesday, October 29 10:15 AM – 11:30 AM Room: Hall 8.0 Room A2
Speaker(s): Aidan Finn

 

Tuesday, October 28 5:00 PM – 6:15 PM Room: Hall 8.1 Room J
Speaker(s): Jeffrey Snover

 

Thursday, October 30 3:15 PM – 4:30 PM Room: Hall 8.0 Room C1
Speaker(s): Mark Russinovich

 

Tuesday, October 28 3:15 PM – 4:30 PM Room: Hall 8.1 Room L

 

Thursday, October 30 10:15 AM – 11:30 AM Room: Hall 8.0 Room D1

 

Wednesday, October 29 10:15 AM – 11:30 AM Room: Hall 8.0 Room B1
Speaker(s): Mahesh Narayanan

 

There are of course a ton of more sessions and I will probably do a revision once I have watched the recordings :-)

And during the week follow TechEd in social media :

 

Categories: Hyper-V, TechPreview, Virtualization 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:

MVMC 3.0 released with P2V support

October 13th, 2014 3 comments

The day has come with a new version of the free conversion tool from Microsoft, MVMC 3.0 have been released.

There where some bashing on the net when the VMM 2012 R2 was released and the P2V functionality was removed from that version and some crazy ideas using a secondary VMM 2012 SP1 to do the P2V migrations and then importing into the VMM 2012 R2 was suggested, well that time is now no more now :-)

The installation is quite straightforward with the msi and just a simple wizard.

Screen Shot 2014-10-13 at 20.21.47

Once installed You can start exploring the new options including the new P2V.

Screen Shot 2014-10-13 at 21.44.18

When doing a P2V the MVMC will install an agent on the source and when doing a P2V the source have to be online during the migration.

Screen Shot 2014-10-13 at 21.55.40

And then you go through the wizard and start the conversion

Screen Shot 2014-10-13 at 22.18.29

 

Screen Shot 2014-10-13 at 22.30.10

Once it is finished, you find the VM in your Hyper-V host and can start it, but beware that the wizard does not ask if you want to shut down your source after migration so that is something you have to take care of before starting that P2V´d VM

Screen Shot 2014-10-13 at 23.29.34

But wait you say, I have 100 vm´s and will die if I use the wizard for all of them! Then you can use the PowerShell module and automate the conversion:

Screen Shot 2014-10-13 at 22.14.32

The operating systems that is supported migrating with the MVMC are (although only Windows with the P2V):

  • Windows Server 2012 R2 Standard x64
  • Windows Server 2012 R2 Datacenter x64
  • Windows Server 2012 Standard x64
  • Windows Server 2012 Datacenter x64
  • Windows Server 2008 R2 Standard x64
  • Windows Server 2008 R2 Enterprise x64
  • Windows Server 2008 R2 Datacenter x64
  • Windows Server 2008 R2 SP1
  • Windows Server 2008 Standard (x86/x64)
  • Windows Server 2008 Enterprise (x86/x64)
  • Windows Server 2008 Datacenter (x86/x64)
  • Windows 8 Enterprise (x86/x64)
  • Windows 8 Pro (x86/x64)
  • Windows 7 Enterprise (x86/x64)
  • Windows 7 Professional (x86/x64)
  • Windows 7 Ultimate (x86/x64)
  • Windows Vista Enterprise x86/x64
  • Red Hat® Enterprise Linux® 6 (x86/x64)
  • Red Hat Enterprise Linux 5 (x86/x64)
  • Ubuntu 12.04 (x86/x64)
  • Ubuntu 10.04 (x86/x64)
  • SUSE® Linux Enterprise Server 11 (x86/x64)
  • CentOS 6 (x86/x64)
  • CentOS 5 (x86/x64)
  • Debian GNU/Linux 7 (x86/x64)
  • Oracle Linux 6 (x86/x64)
  • Oracle Linux 5 (x86/x64)

Good luck in your migrations!!

Categories: Azure, Hyper-V, Virtualization, VMware, Win2012 Tags:

Hyper-V in new Windows Server technical Preview

October 1st, 2014 No comments

So today Microsoft released their technical previews of Windows 10 and also of Windows Server

As an Hyper-V interested guy I wanted to check out some things in this build, there have already been a blog post about cool features such as rolling cluster updates so that you can have different versions in the Hyper-V cluster and keep the VM´s up all time during an upgrade.

There are some more info on the technet site discussing the different new features:

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

I downloaded the Windows Server technical preview from my MSDN and started the installation, it was really fast (and yes I have an SSD)

Screen Shot 2014-10-01 at 20.47.40

In this screendump you can see that 5.0.9841.0 version of the PowerShell is included in the server technical preview

Screen Shot 2014-10-01 at 20.16.03

And as you can see there is 182 cmdlets for the new Hyper-V PowerShell module

Screen Shot 2014-10-01 at 20.15.20

After you have moved your 2012 or 2012 R2 VM´s you can update the VM configuration to the latest version but beware that once done that you cannot move those VM´s back to the old Hyper-V host.

Screen Shot 2014-10-01 at 21.48.18

A new feature in this version is also that you can make snapshots (yea I still not like Checkpoint name) that uses VSS, and if that is not available it will fail-back to standard snapshots

Screen Shot 2014-10-01 at 21.44.49

And still in this version you can via PowerShell enable Processor compability for those Windows NT server ;-)

Screen Shot 2014-10-01 at 21.49.22

Screen Shot 2014-10-01 at 21.50.33

When I get some more time I will dig some more into it and do a follow up post

happy testing!

 

Categories: Hyper-V, Powershell, Virtualization Tags:

Hyper-V Failover Cluster Validation – think twice

September 22nd, 2014 1 comment

I was talking to some guys with a quite solid VMware background and they were working on setting up a Hyper-V cluster with Windows Azure Pack as frontend.

Their environment was a traditional setup with Hyper-V hosts connecting to a SAN with FC thus using CSV´s for storing the VM´s. All VM´s including their management was configured on these hosts.

As a best practice they ran the Failover Cluster Validation (and yes you should run it or you won’t get support) but as I will show you, they had an unwanted restart of their VM´s including the one they had failover cluster manager started so look and think twice before starting that validation with all tests!

with no HA – VM´s there are not so much to think about but once you add VM´s there is, and it can have some consequences…

If you in the wizard add the CSV volume to the test  you can see the warning showing that you will get the VM´s stopped doing the validation,

Screen Shot 2014-09-22 at 10.55.27

Going next in the wizard and then going back the warning has disappeared!

Screen Shot 2014-09-22 at 10.56.39

But of course in the Confirmation it still says that the VM roles will be stopped but if you are in a hurry and start the validation then all VM´s on the CSV volumes will be stopped and then started and maybe that was not what you had intended from the beginning!

Screen Shot 2014-09-22 at 10.56.27

So look and select the options carefully when doing a validation of a cluster with production workloads in :-)

Categories: Hyper-V, Virtualization Tags: