有没有办法使用PowerShell分配大量VM列表以从AHV群集中的特定主机运行?基本上有没有办法将主机亲和力分配给VM列表?我使用CLI找到了抗亲和力的命令,但找不到与设置亲和力有关的任何内容。
该主题已关闭以供评论
你好
恐怕我没有指南与您分享。但是,我发现希望对您有用。在生产中使用之前,请在实验室中对其进行测试。
REST API / POWERSHELL MASS VM亲和力控制由Michell Grauwmans撰写。
谢谢,这可能是将来的一种选择。
我最终得到了支持,并提供了ACLI命令,以设置/不设置对VM的亲和力。
acli vm.affinity_unset
acli vm.affinity_set
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"}}}">
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">