问题

将主机亲和力应用于VM的列表


有没有办法使用PowerShell分配大量VM列表以从AHV群集中的特定主机运行?基本上有没有办法将主机亲和力分配给VM列表?我使用CLI找到了抗亲和力的命令,但找不到与设置亲和力有关的任何内容。


3个答复

UserLevel 6
徽章 +5

你好 @ebertolasio

恐怕我没有指南与您分享。但是,我发现希望对您有用。在生产中使用之前,请在实验室中对其进行测试。

REST API / POWERSHELL MASS VM亲和力控制由Michell Grauwmans撰写。

谢谢,这可能是将来的一种选择。

我最终得到了支持,并提供了ACLI命令,以设置/不设置对VM的亲和力。

acli vm.affinity_unset

acli vm.affinity_set host_list = >

UserLevel 6
徽章 +5

老实说,我不认为ACLI是说实话。很高兴听到您得到了解决方案:)

回复


Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu