Can I create affinity rules for VMs in an AHV cluster? | Nutanix Community
Skip to main content
Question

Can I create affinity rules for VMs in an AHV cluster?

  • April 19, 2024
  • 4 replies
  • 106 views

Forum|alt.badge.img
  • Adventurer
  • 3 replies

I’m fairly new to AHV and Prism.  We’ve been running Nutanix for a few years but our hosts are running ESXi.  We’re setting up a new cluster with AHV and we’re planning to migrate everything there.  One issue we have is that some hosts have the NVIDIA GPU card in them.  In Vmware, I have affinity rules so that the VMs that use the GPU will only run on the hosts that have the GPU card.  

Can I do the same thing with AHV?  Going through KB articles, I get mixed messages. One KB article flat out says that it’s not supported.

This topic has been closed for comments

4 replies

JeroenTielen
Forum|alt.badge.img+8
  • Vanguard
  • 1367 replies
  • April 19, 2024

Well, if you add a vGPU to the VM it will only run on a host with a GPU in it. So you dont need to create affinity rules for this. 

But if you really want to create affinity rules you can do that in Prism. Just "update” a virtual machine and pin it to a host or multiple hosts. 

 


Forum|alt.badge.img
  • Adventurer
  • 3 replies
  • April 19, 2024

If a VM uses a GPU, when it powers on, it will automatically check to see which host has the required GPU and power it on on that host?  

That “Set VM Host Affinity” is on a VM when you update it?  I poked around and couldn’t find it in Prism.


JeroenTielen
Forum|alt.badge.img+8
  • Vanguard
  • 1367 replies
  • April 19, 2024
Ed W wrote:

If a VM uses a GPU, when it powers on, it will automatically check to see which host has the required GPU and power it on on that host?  --> Correct.

That “Set VM Host Affinity” is on a VM when you update it?  I poked around and couldn’t find it in Prism.

No, it is also there when you create it ;) (Screenshot is from prism element). 

In prism central it is only available in newer versions.

 


Forum|alt.badge.img
  • Adventurer
  • 3 replies
  • April 19, 2024

Ah Element. I was in Prism Central.  I see it now.  Thanks.

We’re on  version pc.2022.6.0.10. Must be time to upgrade.