Enable VMkernel.Boot.hyperthreading option via Ansible playbook

Enable VMkernel.Boot.hyperthreading option via Ansible playbook

If you want to change VMkernel.Boot.hyperthreading you can do it manually by:
1.Browse to the host in the vSphere Client.
2.Click Configure.
3.Under System, click Advanced System Settings and select VMkernel.Boot.hyperthreading
4.You must restart the host for the setting to take effect.

done 🙂

or you can use some automation like Ansible.

Ansible playbook
Multiple host

I use module called vmware_host_hyperthreading
Ansible documentation:

https://docs.ansible.com/ansible/2.8/modules/vmware_host_hyperthreading_module.html#vmware-host-hyperthreading-module

https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_host_hyperthreading_module.html

To install it use: ansible-galaxy collection install community.vmware.

To use it in a playbook, specify: community.vmware.vmware_host_hyperthreading.

 

Make sure you wile  create secrets.yml with credential to your vcenter before you will run this playbook.

vcenter: VcenterServerName
username: administrator@vsphere.local
password: P@ssw0rd

 

1. Download playbook >> HyperthredingEnabled

Playbook looks like below:

2.Run by command ansible-playbook ansible/HyperthredingEnabled.yml

3. You must restart the host for the setting to take effect.

4. Verify settings

 

 

 

Subscribe

 

 527 total views,  1 views today