Windows 2022 - GUI Installation - Steps Automation | Nutanix Community
Skip to main content

I am newbie for nutanix, please provide me the relevant information or links to gather the same information.

I create a VM for windows 2022 and that can be done via Nutanix API. But once the VM is power on then 2022 desktop experience, i need to select things in order to proceed with installation. I want to automate this process.

  1. Create a VM
  2. Power ON the VM
  3. Complete windows server 2022 installation

Basically, I want to install the windows 2022 without manual intervention. So, that with the single click or script full installation happens without waiting for my inputs. if it can be done via API or someone created script related to ansible or terraform to the same just let me know.

Hi

It’s not as easy as you think. Here are the main steps to follow, but need a bit of work :

  1. Create an autounattend file to auto-configure what you need inside Windows (and test it manually)
  2. Use an API call or IaC tools like Packer/Ansible to create a template/create a VM and use the file you created.

I spent a lot of days/weeks to build and test the autounattend part (because corporation has a lot of standards and settings to set) but since, it works really smoothly. It takes around 1-2min to deploy a VM and around 8-10min to custom it to our standards before delivering it .

 

Also, if you need some API doc, within your Prism Central you got everything you need :

https://your_prism_central:9440/api/nutanix/v3/api_explorer/index.html