# Mount Windows image dism /Mount-Image /ImageFile:C:\win10.wim /Index:1 /MountDir:C:\mount dism /Image:C:\mount /Add-Driver /Driver:D:\amd64\viostor /Recurse dism /Image:C:\mount /Add-Driver /Driver:D:\amd64\NetKVM /Recurse Commit and unmount dism /Unmount-Image /MountDir:C:\mount /Commit 3.3 Unattended Windows Installation (Answer File) In autounattend.xml , specify the driver paths:
virt-install \ --name win10-vm \ --disk path=win10.qcow2,size=50 \ --disk path=virtio-win-0.1-59.iso,device=cdrom \ --os-variant win10 \ --cdrom /path/to/Win10_install.iso During Windows setup, at the “Where do you want to install Windows?” step, you click → Browse to E:\amd64\viostor (for storage) or E:\amd64\NetKVM (for network). 3.2 Post-Install Driver Injection (Offline) Using dism to inject drivers into a mounted Windows image: virtio-win-0.1-59.iso
1. Overview virtio-win-0.1-59.iso is a specific release of the virtio Windows drivers package, provided by the Fedora Virtualization Project (and Red Hat). It contains paravirtualized I/O drivers for Windows guests running on KVM, QEMU, libvirt, and oVirt. # Mount Windows image dism /Mount-Image /ImageFile:C:\win10
virtio-win-0.1-59.iso ├── amd64/ # 64-bit drivers (Windows 7/8/10/Server) ├── i386/ # 32-bit drivers ├── NetKVM/ # virtio-net network driver ├── viostor/ # virtio-blk storage driver ├── vioscsi/ # virtio-scsi driver ├── viorng/ # virtio-rng entropy source ├── vioserial/ # virtio-serial (console/ports) ├── balloon/ # virtio-balloon memory management ├── qxl/ # QXL video driver (spice) ├── pxeboot/ # PXE boot utilities ├── guest-agent/ # QEMU Guest Agent (qemu-ga) └── *.cat, *.inf, *.sys : These are standard .inf + .sys Windows drivers, signed by Red Hat. 3. Common Use Cases (Development Context) 3.1 Automated Windows Guest Provisioning When scripting Windows VM creation with virt-install or libvirt , you attach this ISO as a second CD-ROM. It contains paravirtualized I/O drivers for Windows guests
Version 0.1-59 is an older but stable release (circa 2015–2017). Modern versions are 0.1.2xx +, but legacy systems often pin this version. When mounted, typical directory structure: