Posts Tagged ‘hyper v’

Recently had a hyper v cluster that was rebooted, however upon started 

  1. Get-VM Command produced no VM’s 
  2. Get-clusterquorum was Blank
  3. Start-clusternode Would join the node back into the cluster and Mark as Up
  4. Get-ClusterNodes would bring up errors

CLUSDB is stored on the hosts under HKLM\CLuster

The CLUSDB File Size was around 60KB , on a working cluster is was around 256kb 

There was no backup per below

 

In the end we had to create a new Cluster and rejoin the Hosts to this ( clear-clusternode ) 

GD Star Rating
loading...
GD Star Rating
loading...

Recently tried to backup a single disk of a new VM , however was failing with 

“Failed to collect VM disks. Failed to get shared disk extents. Failed to get virtual disk ” per below

7/12/2021 5:09:48 PM :: Error: Failed to collect VM (ID: CCCCCCCCCCCC) information. Failed to collect VM disks. Failed to get shared disk extents. Failed to get virtual disk (path: ‘\\CCCC.local\CCCCCCCCCCC\Virtual Machines\CCCCC02\Virtual Hard Disks\CCCCCCCC02-Pagefile.vhdx’) setting data. Job failed (‘Failed to get the disk information.

Failed to open attachment ‘\\CCCC.local\CCCCCCCCCCC\Virtual Machines\CCCCC02\Virtual Hard Disks\CCCCCCCC02-Pagefile.vhdx’. Error: ‘The process cannot

 

The drive I was backing up wasn’t even the drive it was erroring on. I saw someone has the error here however confirmed the disk wasn’t being used elsewhere. I migrated the VM to a new host and that fixed the issue

GD Star Rating
loading...
GD Star Rating
loading...

When you can’t shutdown or power off a VM , this is how to force kill it

Open this directory in File Explorer and find the folder with the same name as your virtual machine has. Copy the GUID that is specified in the name of the VM configuration file with the *.vmcx extension.

Run the Task Manager and go to the Details tab. All virtual machines are running in their own instance of vmwp.exe. To determine which process is responsible for your VM, you need the GUID of the hung-up VM you obtained earlier. Locate the process vmwp.exe that has the GUID of your VM in the User name column. Kill this process (End Task).

 

GD Star Rating
loading...
GD Star Rating
loading...

Recently I was trying to add a Virtual Switch to a new Hyper V Server and I got an error similar to below

Image result for adding ports to the switch failed hyper v

Although the Virtual Switch seemed to add ok , it was coming up with Errors in the Cluster Manager ( Status Unavailable ) 

The server was actually already added to the Failover Cluster Manager. And I noticed that the

“Microsoft vmm dhcpv4 server switch extension” filter was missing. This gets added to a Node on adding to cluster

Evicting the Hyper V host from the Cluster then deleting and re-adding the VSwitch Resolved this

GD Star Rating
loading...
GD Star Rating
loading...

Recently I need to remove an Empty Virtual Disk from a Hyper V machine

On Server 2012 Machines you can run 

get-disk | fl objectID

And use the Last X.X.X numbers (e.g. 5&2D5F53A1&0&0.0.0

First number means IDE controller number, the second one means the location

 

 

However in Server 2008 r2 : get-disk : The term ‘get-disk’ is not recognized as the name of a cmdlet

So in Server 2008 r2 you will need to navigate to the hardware ID’s of the device per below which will give you the location of your Device ( ATA Device is IDE and SCSI Device is SCSI )

GD Star Rating
loading...
GD Star Rating
loading...
  1. Check the volume has enough free space, if a previous merge (deletion of checkpoint ) has failed this might be why

Navigate to the cluster share and check the .avhdx’s

Windows Explorer - VHDX AVHDX File

 

Hyper-V Console Method

You can also use the Hyper-V console in Windows 10 to perform the merge operation. The first thing you’ll want to do is open the Hyper-V console. Next, right-click the Hyper-V host and click Edit Disk.

Hyper-V Console - Edit Disk

After clicking Edit Disk, you’ll be presented with a wizard, where you’ll point Hyper-V to the .avhdx file that you want to merge.

IMPORTANT: Select the .avhdx file, and not the .vhdx file, otherwise you won’t see the Merge operation available!

Hyper-V Edit Disk - Locate Virtual Hard Disk

On the next wizard screen, select the Merge action.

Hyper-V Edit Disk - Merge Action

Next, you’ll need to choose the destination for the merge operation. In most cases, you’ll choose the To the parent virtual hard disk option.

Hyper-V Edit Disk - Select Parent

Finally, on the Summary page of the disk editing wizard, just complete the wizard, and it will merge your disks for you. That’s all there is to it!

Hyper-V Edit Disk - Complete Wizard

 

GD Star Rating
loading...
GD Star Rating
loading...

If you have a server which isn’t syncing and there is an Active Alert on the VPG Page stating the VM is powered off and you have confirmed it is on, try the following.

 
Log into ZertoServer – Stop the Zerto Virtual Manager service. From the following location, rename the following folders to “orignalName”_backup; PublicCloudReflection,VCDReflection & VCenterReflection. Start the Service. New folders should appear and start populating.
 

Migrate the server from one host to another & refresh the Zerto management page. The alert for the server being offline should be gone,

 

GD Star Rating
loading...
GD Star Rating
loading...