Avatar of Jacobus Laubscher
Jacobus Laubscher
 asked on

VM's in Hyper V Manager doesnt start

Hi Everyone

I'm having a problem with my hyper v enviroment I'm not able to start certain vm's or I am able to start them but can't get into the properties its giving me the error in the picture , I do have a cluster enviroment where I have 5 servers with 192GB of Memory each ,there are still plenty of memory , please help
hyperv-error.PNG
Hyper-VVirtualization

Avatar of undefined
Last Comment
Jacobus Laubscher

8/22/2022 - Mon
Ogandos

We are also assuming that there is also enough disk space on your cluster.

You can check normally in Disk Manager for the disk space. However, you are maybe using CSV disks for your VMs within the cluster.

If this is the case (using CSV) follow these steps to check your free space:

1. Open the Failover Cluster Manager console
2. Expand your cluster name (on the left), expand Cluster Shared Volumes (CSV)
3. On the central view you will have a list of your different drives used as CSV, expand each one of them and check the free space within them.
Philip Elder

Please publish the results in a TXT file from ALL nodes in the cluster:

Get-VMHost | fl VirtualHardDiskPath,VirtualMachinePath
Jacobus Laubscher

ASKER
Hi I only see Roles ,Nodes , Storage and Networks , When I look under storage there are still enough storage
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Jacobus Laubscher

ASKER
Hi Philip , please send me example of how to run the powershell command
David Johnson, CD

Get-VMHost | fl VirtualHardDiskPath,VirtualMachinePath | out-file c:\test\vms.txt

Open in new window

Jacobus Laubscher

ASKER
Hi David

Below is the output that I get in the .txt file


VirtualHardDiskPath : C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks
VirtualMachinePath  : C:\ProgramData\Microsoft\Windows\Hyper-V

I see a lot of XML files under these folders

Tx
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Philip Elder

All of your node's VirtualHardDiskPath and VirtualMachinePath settings should be set to a CSV that is accessible by all nodes.

The CSV must have enough GB to hold:
1: Memory files of all VMs
2: configuration files
3: Snapshot files (we don't do this at all)

Our formula is:
=sum(RAM Node 1-5) + 150GB

For us, our first CSV is _always_ the location for the above. So, we set them to:
VirtualHardDiskPath : C:\ClusterStorage
VirtualMachinePath  : C:\ClusterStorage\Volume1
Ogandos

How available memory have your HyperV servers, and how much memory is required by your VM?


I made the question because the problem looks like to be related to disk or memory resources. If CSVs are not used, and there is enough disk space on your drives. We can also take a look to the memory resources. Be aware that all the free memory cannot be assigned to VMs as far as the OS reserves memory for the administrative tasks. Another important detail is related to your cluster failover scenarios, if one node fails how can the remaining servers to stay in service dividing the load of resources from the failed server.
Jacobus Laubscher

ASKER
Hi Philip , How do I set


 VirtualHardDiskPath : C:\ClusterStorage
 VirtualMachinePath  : C:\ClusterStorage\Volume1

Thanks for the response
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
David Johnson, CD

and you've used the cluster manager to ensure that the cluster is healthy and has lots of disk space available?
Philip Elder

On each node:
Set-VMHost -VirtualHardDiskPath “C:\ClusterStorage” –VirtualMachinePath “C:\ClusterStorage\Volume1

Is this a lab cluster setup?
Ogandos

Very important question from Philip. Because using a CSV is a change for your cluster design and its way to work. However, CSV is better than failovers from the disk owner perspective because with CSV the disk is accessed at the same time by your nodes and transfers are performed much master.

However, it requires many things, such as assigning storage as CSV, moving your current VMs storage location to the CSV storage and changing the default parameters for saving the VMs.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jacobus Laubscher

ASKER
Hi Everyone

This is within in my production environment , I wish it was in the lab : )

I do have 3 lun's on my san  volume 1 has 454GB of space Volume 2 256GB of space and Volume 3 has 900GB of space , so space is not the issue

So if Change the path On each node:
 Set-VMHost -VirtualHardDiskPath “C:\ClusterStorage” –VirtualMachinePath “C:\ClusterStorage\Volume1” should this fix my problem?
ASKER CERTIFIED SOLUTION
Philip Elder

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jacobus Laubscher

ASKER
Hi Thanks I wil get someone to have a look