VMware Cloud Community
perklit
Contributor
Contributor

DRS not working as expected - Could not fix hard VM/host affinity rule violation

Hi,

I'm setting up a new cluster of ESX servers, and right now it's not really doing that much with only a few test VM's running on it.

I've created a couple of basic rules, like placing test vms on a specific ESX host. But it doesn't work, it just gives the error in DRS:

"Could not fix hard VM/host affinity rule violation", with the details: "The cluster contains no hosts satisfying the hard VM/host affinity rules constraint for VM 'pkmtestsrv1'"

Se heres the deal: Manually migrating the VM works, so it's not a disk or network issue. And the really strange thing is, that at some point maybe during the night, the VM will be migrated!?!

So the events of the VM is logging every 5 minutes "Virtual machine on vmwareserver1 is violating a DRSVM-Host affinity rule" with nothing happening. And then at some point in the night (the time is different every time) it starts migrating... How can this happen?

What am I missing here?

Thank you in advance,

Per.

Tags (1)
0 Kudos
2 Replies
vThinkBeyondVM
VMware Employee
VMware Employee

Can you please provide more details? such as how many hosts/VMs in DRS cluster. what are the exact rules you have created etc?


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

0 Kudos
perklit
Contributor
Contributor

Hi,

This is strange - it's working now. After trying to resolve it for 3 days, posting a question here was all that was needed Smiley Happy

The rules were very simple: These vms must run on this server.

The only thing I did before it worked, was removing the checkmark on the rules (disabling them) and then enabling just one. And now it works.

My only explanation is, that there must have been a bug in the rules settings, and unchecking and checking the rules must have cleared the bug.

But anyway, thanks.

Per.

0 Kudos