Archive

Archive for the ‘Hyper-V’ Category

Hyper-V Damaged VHDX MBR

January 5, 2015 Leave a comment

So today was a fun day, one of our development office host servers had a storage issue this week and fried the volume where all the development virtual machines were running on.

I managed to fix the storage volume however I found a number of VM’s still would not start. The error indicated there was no boot volume.

To fix the issue and repair a Windows 2012 R2 Start-up issue I followed the below steps:

 

1. Put the Windows Server 2012 R2 installation disc in the disc drive, and then start the computer.
2. Press any key when the message indicating “Press any key to boot from CD or DVD …”. appears.
3. Select a language, time, currency, and a keyboard or another input method. Then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair, and then click Next.
6. In the System Recovery Options dialog box, click Command Prompt.
7. Type Bootrec /RebuildBcd, and then press ENTER.

Advertisements
Categories: Hyper-V, Windows 2012 R2

System Centre Virtual Machine Manager 2012 R2 The object was not found on the server

October 30, 2013 1 comment

Issue:

When setting or amending a configuration setting in SCVMM 2012 R2 against a Hyper-V Clustered VM I got a error which looked something like

 

Error (2915)

The Windows Remote Management (WS-Management) service cannot process the request. The object was not found on the server (SERVER NAME)

Unknown Error (0x80338000)

image

This put the VM in the console into a failed state, the natural first action is to try and repair the VM, this generates another error which looks like:

Error (12711)

VMM cannot complete the WMI operation on the server (HOST Server Name) because of an error (MSCluster…….) The cluster resource could not be found.

the cluster resource could not be found (0x138F)

 

image

 

1.Logon to one of the host servers and from a Powershell session run:

2.Import-Module FailoverClusters

Get-ClusterResource -c CLUSTERNAME | where {$_.resourcetype.name -eq ‘virtual machine configuration’} | Update-ClusterVirtualMachineConfiguration

3.From VMM console refresh cluster

4.From VMM console repair VM

How to Extend a Windows 2012 R2 CSV volume

October 29, 2013 Leave a comment

Just had to extend a CSV volume in our Windows Server 2012 R2 cluster due to low available disk space that was alerted by SCOM.

The good news it was the same process as Windows Server 2008

1) Increase size of LUN on you storage.
2) RDP to current CSV owner
3) run diskpart from Command Prompt
3.1) rescan
3.2) list volume
3.3) select volume 4
3.4) extend
3.5) list volume

System Centre Virtual Machine Manager 2012 SP1 Error (2912)

 

Failing to create virtual machine from within Virtual machine manager getting Error (2912)

Error (2912)

An Internal error has occurred trying to contact the <SERVER NAME>: NO_PARAM: NO_PARAM

 

SNAGHTML2311d5a

Oh great, no matter what I do I cannot seem to create a virtual machine.

What’s happened? Virtual Machine Manager has been working pretty well for a while now.

I noticed that whenever this fails the virtual machine is being created on the same host server, this host server had some issues last week and I rebuilt the server.

What’s happened, the certificate on the VMM server has not been updated.

To  fix this, remove the host from VMM completely, delete the certificate from the VMM server.

The certificate can be found in the Trusted People store on the local computer

Add back in the host server and that’s it, you should be up and running again.

 

image

Categories: Hyper-V, SCVMM

Add possible Owner to a Cluster Shared Volume

April 11, 2012 2 comments

Another interesting issue this evening, today I added a Hyper-v host server to an existing cluster using System Centre Virtual Machine Manager 2012 (which rocks BTW). As part of the process to add the node you click a button to say add this node to this cluster and provide some credentials and off it goes and performs some validation tests before actually adding it to the cluster, this is great I hear you say….. In this case the node was added to the cluster and I start to check to make sure everything was OK before loadng the dad boy/girl up with VM’s when I happen to notice the the CSV’s LUNS were not attached it puzzled me how VMM 2012 thought this was OK……

Anyway I connected the LUNs and proceeded to load him/her up and moved onto the next node to take out of the cluster for maintenance, as part of this process I wanted to move the owner of a CSV disk first. so I go into Failover Manager find the CSV resource and select migrate to other node…. Only to be presented with

 

Operation has failed.

The action ‘Move to node <nodename>’ did not complete

Error code: 0×80071398. The operation failed because either the specified cluster node is not the owner of the group, or the node is not a possible owner of the group

 

Uh OH.. I have had enough problems with this cluster/SAN/CSV’s (that’s anther story put is this way one of the CSV’s ‘lost’ it’s partition information). I surmised that because the CSV’s were not presented to the server when it joined the cluster it may not had updated the “Possible Owners list” and sure enough this server was missing a few command laster and were are back in business.

note command needs to run from a Admin commpand prmpt

 

To tell who are the possible owners run:

Cluster res <resource name> /listowners

 

To to add a server to the list

Cluster res <resource name> /addowner :<servername>

 

Hope this helps

Categories: Hyper-V, SCVMM, Windows 2008 R2 Tags:

Create Windows Server VHD image from WIM file

October 9, 2011 Leave a comment

Whilst deploying Virtual Machine Manager 2012 I needed to create a Server 2008 R2 VHD to use as a OS template. I found converting a WIM file to a VHD nice and easy.

To do this:

  1. Download the WIM2VHD.WSF file from http://archive.msdn.microsoft.com/wim2vhd/Release/ProjectReleases.aspx?ReleaseId=2603
  2. Copy the install.wim file from a Windows Server 2008 R2 installation media to a working directory, I used C:\
  3. Ensure you have the Windows® 7/Server 2008 R2 Automated Installation Kit (AIK) or the Windows® 7/Server 2008 R2 OEM Preinstallation Kit (OPK) installed.

During the process you need to choose which SKU to use, in order to determine the SKU’s available in the wim file run the below from a normal command prompt

C:\>cscript wim2vhd.wsf /wim:c:\install.wim

image

 

I want to create a VHD which has Windows 2008 R2 Standard Edition installed, so I will use “SERVERSTANDARD” AS MY SKU.

 

In order to create the actual VHD run the below command, this command will inspect the WIM file and create a VHD image of the SKU I selected, it will them save this to the root of my E drive. When complete it leaves you with a small log file and the VHD file.

cscript wim2vhd.wsf /wim:c:\install.wim /sku:SERVERSTANDARD /vhd:e:\2008R2Standard.vhd

 

image

 

image

Categories: Hyper-V, SCVMM, Windows 2008 R2 Tags:

VMM2012–Deploying Host Machine Time Sync Issue

I am testing Microsoft Virtual Machine Manager 2012 at the moment and today I was hoping to be at the point where I had it all setup and configured to deploy a base image on a new blade server.

I have jumped through a number of hoops and hurdles to get this far some of which I have blogged about. I finally had it all setup so VMM talked to the iDRAC cards on my blades and booted the system, after a few tweaks it booted into a WinPE but afew minutes in it seemed to freeze on “Synchronizing Time” and popped a error dialogue box inviting me to read the error logs which was not that helpful as I have no ability to press SHIFt +F10.

image

 

After a quick step away it occurred to me to check both the DNS settings in DHCP and add a scope option to set a NTP time server, which I did and low and behold it worked, I can now deploy a base image. I now need to play a little more to understand how this works and my options.

The DNS servers were set to loop back, which I guess it picked up form the server as that’s the setting locally. I think that’s what fixed it but it could be the DHCP option, I will test this shortly.

image

Categories: Hyper-V, SCVMM Tags: ,