[virt-tools-list] How to: Unattended Windows installs in virt-install

Richard W.M. Jones rjones at redhat.com
Wed Sep 12 16:00:14 UTC 2018

On Wed, Sep 12, 2018 at 05:49:52PM +0200, Christophe Fergeau wrote:
> On Wed, Sep 12, 2018 at 03:37:27PM +0100, Richard W.M. Jones wrote:
> > There are also several problems with the current autounattend file or
> > Windows itself.
> > 
> > I couldn't get Windows to install virtio drivers even though I
> > supplied the virtio ISO.  I guess some change is needed to the XML
> > (perhaps: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-device-drivers-to-windows-during-windows-setup ).
> > 
> > Windows still asks for the installation language.  Apparently using
> > language='en-US' is incorrect or insufficient to suppress this.
> libosinfo generates this:
>     <component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" name="Microsoft-Windows-International-Core-WinPE" language="neutral" processorArchitecture="x86">
>       <SetupUILanguage>
>         <UILanguage>fr-FR</UILanguage>
>       </SetupUILanguage>
>       <SystemLocale>fr-FR</SystemLocale>
>       <UILanguage>fr-FR</UILanguage>
>       <UserLocale>fr-FR</UserLocale>
>     </component>
> (though not 100% sure that fr-FR is a correct language ;)
> You can check the whole xml file it generates with:
> osinfo-install-script windows.iso --config=l10n-language=fr-FR --config=reg-product-key=XXXX

Nice feature I didn't know about.  I may try to integrate this with
the script I'm writing to make virt-builder templates.



Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.

More information about the virt-tools-list mailing list