### Human: Can you tell about How to create Windows installation ISO with built-in VirtIO drivers. ### Assistant: Instructions for adding Nutanix VirtIO drivers into a Windows ISO for easier, or automated, installation on AHV.. When deploying a new Windows VM on AHV typically VirtIO ISO package needs to be mounted and the SCSI VirtIO driver selected for the Windows installer to detect the disk for OS deployment. To simplify the deployment process it is possible to proactively add VirtIO drivers to Windows installation ISO.. Prerequisites
PowerShell.Windows ADK (Deployment and Imaging Tools Environment).Windows installation ISO.Nutanix VirtIO driver package. It is recommended to use the latest version which can be downloaded from Support Portal.Administrative privileges on your Windows admin workstation.
 In this manual Windows Server 2019 and VirtIO 1.1.6 are used as an example.

Windows VirtIO injection setup

Mount the Windows Server 2019 and VirtIO ISOs:		Note the drive letters of each mounted ISO in your specific environment. In this guide, we use the following drive mappings:	Windows ISO image: D:	Nutanix VirtIO image: F:	Temporary folder: C:\VirtIO\Open PowerShell as Administrator. Create temporary folders on C: drive:

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

Copy the mounted Windows ISO/Image contents into windows_temp folder

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

Change the image "C:\VirtIO\windows_temp\sources\"  files boot.wim and install.wim file permissions to read/write in the windows_temp directory

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

install.esd to install.wim conversion (optional)If the install file in the sources directory (C:\VirtIO\windows_temp\sources\) is install.wim, then proceed to the next step. Otherwise, continue with this section.ESD and WIM files may contain multiple Windows editions. In this example will use ImageIndex: 1

Review install.esd images and choose a distribution: 

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

Use DISM to export image to install.wim file. Note the use of "/SourceIndex:1":

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

Verify image export:

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall
Injecting VirtIO driversYou may find two wim files on Windows installation ISO:

boot.wim is used for the initial boot and installation of Windows.install.wim contains the actual OS, which is installed on the hard drive.
We need to inject drivers both into boot.wim and install.wim files.Perform the following steps to inject drivers into boot.wim:

Review and choose an index that belongs to "Microsoft Windows Setup" in boot.wim:

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

Mount the boot.wim file for driver injection. Note the use of "-Index 2":

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

Inject the Nutanix VirtIO drivers into the boot.wim image:

	PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall
	Use "Get-WindowsDriver -Path C:\VirtIO\mountBoot\" command to verify that drivers were injected.

Save and unmount the boot.wim image:

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall
Perform the following steps to inject drivers into install.wim:

Review and choose an index that belongs to OS edition that you need to deploy:

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

Mount Windows image:

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

Inject the Nutanix VirtIO drivers into the install.wim image:

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

Save and unmount the install.wim image:

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

Create ISO using OSCDIMGYou must have Windows ADK (Deployment and Imaging Tools Environment) installed on your admin workstation to perform these steps.

Open Deployment and Imaging Tools Environment as Administrator



Run oscdimg command (note the lack of _space_ between some options and values):  oscdimg -l<MOUNTED ISO LABEL> -m -u2 -b<SOURCE PATH> <DESTINATION PATH>	Mounted ISO label:        WINSERV2019_virtio-oscdimg	Source Path:           C:\VirtIO\windows_temp\boot\etfsboot.com	Destination Path     C:\VirtIO\WINSERV2019_VirtIO-oscdimg.iso

PS C:\> mkdir C:\VirtIO\windows_temp,C:\VirtIO\mountBoot,C:\VirtIO\mountInstall

Upload and Test image in a Nutanix AHV Cluster.Clean up the temporary folder C:\VirtIO on the admin workstation to release disk space used by this workflow.. ### Human: Now explain this as a Nutanix support agent summarizing the answer step by step. In case, you don't know the answer say - I don't know.