Skip to contentSkip to conversation

KVM test: Introducing virtio windows drivers install - config file

PATCH New Lucas Meneghel Rodrigues 1 participant 3 messages Jul 22, 2010 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 KVM test: Introducing virtio windows drivers install - config file

Enable virtio windows drivers install (optional) on tests_base.cfg - Some new parameters were added:

install_virtio = no                              # Whether the virtio drivers should be installed
cdrom_virtiocd = /path/to/iso                    # Path to 2nd extra CDROM that contains virtio drivers
virtio_floppy = /path/to/floppy                  # Path to floppy image containing virtio storage drivers
virtio_network_installer = /path/to/msi          # Path to msi installer for the virtio network driver, if any
virtio_oemsetup_identifier = WXP32               # Entry that points to the virtio storage drivers on the file oemsetup.txt. Preferred method for windows 2000, 2003 and XP
virtio_storage_path = A:\path\to\storage\driver  # Path to the virtio storage driver. Preferred method for windows 2008, Vista and 7
virtio_network_path = D:\path\to\network\driver  # Path to the virtio network driver.
---
 client/tests/kvm/tests_base.cfg.sample |   47 +++++++++++++++++++++++++++++---
 1 files changed, 43 insertions(+), 4 deletions(-)
client/tests/kvm/tests_base.cfg.sample +43 -4
index ca1eecc..64b560e 100644
@@ -1049,9 +1049,17 @@ variants:
         unattended_install.cdrom:
             timeout = 7200
             finish_program = deps/finish.exe
-            cdroms += " extracd"
-            cdrom_extracd = windows/winutils.iso
-            drive_index_extracd = 3
+            cdroms += " winutilscd"
+            cdrom_winutilscd = windows/winutils.iso
+            drive_index_winutilscd = 3
+            install_virtio = no
+            #cdroms += " virtiocd"
+            #cdrom_virtiocd = /usr/share/virtio-win/virtio-win.iso
+            #drive_index_virtiocd = 1
+            #virtio_floppy = /usr/share/virtio-win/virtio-drivers.vfd
+            # Some flavors of the virtio drivers have an msi installer that can be used
+            #virtio_network_installer = F:\\RHEV-Network.msi
+
         migrate:
             migration_test_command = ver && vol
             migration_bg_command = start ping -t localhost
@@ -1138,6 +1146,8 @@ variants:
                             md5sum_1m = b473bf75af2d1269fec8958cf0202bfd
                             unattended_file = unattended/winxp32.sif
                             floppy = images/winXP-32/floppy.img
+                            virtio_oemsetup_id = WXP32
+                            virtio_network_path = 'D:\NetKVM\XP\x86'
 
                     - 64:
                         image_name += -64
@@ -1155,6 +1165,8 @@ variants:
                             md5sum_1m = e812363ff427effc512b7801ee70e513
                             unattended_file = unattended/winxp64.sif
                             floppy = images/winXP-64/floppy.img
+                            virtio_oemsetup_id = WNET64
+                            virtio_network_path = 'D:\NetKVM\XP\amd64'
 
             - Win2003:
                 image_name = win2003
@@ -1177,6 +1189,8 @@ variants:
                             md5sum_1m = 37c2fdec15ac4ec16aa10fdfdb338aa3
                             unattended_file = unattended/win2003-32.sif
                             floppy = images/win2003-32/floppy.img
+                            virtio_oemsetup_id = WNET32
+                            virtio_network_path = 'D:\NetKVM\XP\X86'
 
                     - 64:
                         image_name += -64
@@ -1194,6 +1208,8 @@ variants:
                             md5sum_1m = 439393c384116aa09e08a0ad047dcea8
                             unattended_file = unattended/win2003-64.sif
                             floppy = images/win2003-64/floppy.img
+                            virtio_oemsetup_id = WNET64
+                            virtio_network_path = 'D:\NetKVM\XP\AMD64'
 
             - WinVista:
                 image_name = winvista
@@ -1215,6 +1231,8 @@ variants:
                             md5sum_1m = c724e9695da483bc0fd59e426eaefc72
                             unattended_file = unattended/winvista-32-autounattend.xml
                             floppy = images/winvista-sp1-32/floppy.img
+                            virtio_storage_path = 'D:\viostor\Wlh\x86'
+                            virtio_network_path = 'D:\NetKVM\Vista\x86'
 
                     - 64sp1:
                         image_name += sp1-64
@@ -1231,6 +1249,8 @@ variants:
                             md5sum_1m = 0947bcd5390546139e25f25217d6f165
                             unattended_file = unattended/winvista-64-autounattend.xml
                             floppy = images/winvista-sp1-64/floppy.img
+                            virtio_storage_path = 'D:\viostor\Wlh\amd64'
+                            virtio_network_path = 'D:\NetKVM\Vista\amd64'
 
                     - 32sp2:
                         image_name += sp2-32
@@ -1242,6 +1262,8 @@ variants:
                             sha1sum_1m = a2afa4cffdc1c362dbf9e62942337f4f875a22cf
                             unattended_file = unattended/winvista-32-autounattend.xml
                             floppy = images/winvista-sp2-32/floppy.img
+                            virtio_storage_path = 'D:\viostor\Wlh\x86'
+                            virtio_network_path = 'D:\NetKVM\Vista\x86'
 
                     - 64sp2:
                         image_name += sp2-64
@@ -1253,6 +1275,8 @@ variants:
                             sha1sum_1m = 1fd21bd3ce2a4de8856c7b8fe6fdf80260f6d1c7
                             unattended_file = unattended/winvista-64-autounattend.xml
                             floppy = images/winvista-sp2-64/floppy.img
+                            virtio_storage_path = 'D:\viostor\Wlh\amd64'
+                            virtio_network_path = 'D:\NetKVM\Vista\amd64'
 
             - Win2008:
                 image_name = win2008
@@ -1276,6 +1300,8 @@ variants:
                             md5sum_1m=07d7f5006393f74dc76e6e2e943e2440
                             unattended_file = unattended/win2008-32-autounattend.xml
                             floppy = images/win2008-sp1-32/floppy.img
+                            virtio_storage_path = 'D:\viostor\Wlh\x86'
+                            virtio_network_path = 'D:\NetKVM\Vista\x86'
 
                     - 64sp1:
                         image_name += sp1-64
@@ -1295,6 +1321,8 @@ variants:
                             md5sum_1m=efdcc11d485a1ef9afa739cb8e0ca766
                             unattended_file = unattended/win2008-64-autounattend.xml
                             floppy = images/win2008-sp1-64/floppy.img
+                            virtio_storage_path = 'D:\viostor\Wlh\amd64'
+                            virtio_network_path = 'D:\NetKVM\Vista\amd64'
 
                     - 32sp2:
                         image_name += sp2-32
@@ -1306,6 +1334,8 @@ variants:
                             sha1sum_1m = 9662ff7ed715faa00407e4befc484ea52a92a9fb
                             unattended_file = unattended/win2008-32-autounattend.xml
                             floppy = images/win2008-sp2-32/floppy.img
+                            virtio_storage_path = 'D:\viostor\Wlh\x86'
+                            virtio_network_path = 'D:\NetKVM\Vista\x86'
 
                     - 64sp2:
                         image_name += sp2-64
@@ -1317,6 +1347,8 @@ variants:
                             sha1sum_1m = 8fe08b03e3531906855a60a78020ac9577dff5ba
                             unattended_file = unattended/win2008-64-autounattend.xml
                             floppy = images/win2008-sp2-64/floppy.img
+                            virtio_storage_path = 'D:\viostor\Wlh\amd64'
+                            virtio_network_path = 'D:\NetKVM\Vista\amd64'
 
                     - r2:
                         image_name += -r2
@@ -1328,6 +1360,8 @@ variants:
                             sha1sum_1m = 9194a3aabae25b36e5f73cad001314b2c8d07d14
                             unattended_file = unattended/win2008-r2-autounattend.xml
                             floppy = images/win2008-r2-64/floppy.img
+                            virtio_storage_path = 'D:\viostor\Wlh\amd64'
+                            virtio_network_path = 'D:\NetKVM\Vista\amd64'
 
             - Win7:
                 image_name = win7
@@ -1344,6 +1378,8 @@ variants:
                             sha1sum_1m = 9f9c3780aebeb28a9bf22188eed6bc15475dc9c5
                             unattended_file = unattended/win7-32-autounattend.xml
                             floppy = images/win7-32/floppy.img
+                            virtio_storage_path = 'D:\viostor\Win7\x86'
+                            virtio_network_path = 'D:\NetKVM\Vista\x86'
 
                     - 64:
                         image_name += -64
@@ -1363,6 +1399,8 @@ variants:
                             sha1sum_1m = 4a3903bd5157de54f0702e5263e0a683c5775515
                             unattended_file = unattended/win7-64-autounattend.xml
                             floppy = images/win7-64/floppy.img
+                            virtio_storage_path = 'D:\viostor\Win7\amd64'
+                            virtio_network_path = 'D:\NetKVM\Vista\amd64'
 
 
     # Unix/BSD section
@@ -1442,7 +1480,8 @@ variants:
 
 
 virtio|virtio_blk|e1000|balloon_check:
-    only Fedora.11 Fedora.12 Win2008 WinVista Win7 OpenSUSE.11 SLES.11 Ubuntu-8.10-server
+    only Fedora.11 Fedora.12 Fedora.13 RHEL.5 OpenSUSE.11 SLES.11 Ubuntu-8.10-server
+    # only WinXP Win2003 Win2008 WinVista Win7 Fedora.11 Fedora.12 Fedora.13 RHEL.5 OpenSUSE.11 SLES.11 Ubuntu-8.10-server
 
 
 variants:
Signature · 1 line
1.7.1.1
#1 lore raw

PATCH 2/3 KVM test: Adapt scripts/unattended.py to handle win virtio drivers

Make the preparation script unattended.py to copy windows virtio drivers to the boot floppy and modify the unattended install files with the necessary data.

---
 client/tests/kvm/scripts/unattended.py |  207 +++++++++++++++++++++++++++++++-
 1 files changed, 202 insertions(+), 5 deletions(-)
client/tests/kvm/scripts/unattended.py +202 -5
index d9b8912..80e848a 100755
@@ -3,9 +3,49 @@
 Simple script to setup unattended installs on KVM guests.
 """
 # -*- coding: utf-8 -*-
-import os, sys, shutil, tempfile, re
+import os, sys, shutil, tempfile, re, ConfigParser, glob
 import common
 
+KNOWN_PACKAGE_MANAGERS = ['rpm', 'dpkg']
+
+
+def command(cmd):
+    """
+    Find a given command on the user's PATH.
+
+    @param cmd: Command you wish to find (ie, 'ls').
+    @return: Full path to the command.
+    @raise ValueError: In case the command are not found on PATH.
+    """
+    for dir in os.environ['PATH'].split(':'):
+        file = os.path.join(dir, cmd)
+        if os.path.exists(file):
+            return file
+    raise ValueError('Missing command: %s' % cmd)
+
+
+def package_that_owns(file):
+    """
+    Inquiry the main package manager which package owns file.
+
+    @param file: Path to a given file
+    """
+    support_info = {}
+    for package_manager in KNOWN_PACKAGE_MANAGERS:
+        try:
+            command(package_manager)
+            support_info[package_manager] = True
+        except:
+            support_info[package_manager] = False
+
+    if support_info['rpm']:
+        return str(os.popen('rpm -qf %s' % file).read())
+    elif support_info['dpkg']:
+        return str(os.popen('dpkg -S %s' % file).read())
+    else:
+        return ('Did not find a known package manager to inquire about '
+                'file %s' % file)
+
 
 class SetupError(Exception):
     """
@@ -40,10 +80,44 @@ class UnattendedInstall(object):
             self.tftp_root = tftp_root
 
         self.kernel_args = os.environ.get('KVM_TEST_kernel_args', '')
-        self.finish_program= os.environ.get('KVM_TEST_finish_program', '')
+        self.finish_program = os.environ.get('KVM_TEST_finish_program', '')
+
         cdrom_iso = os.environ.get('KVM_TEST_cdrom')
         self.unattended_file = os.environ.get('KVM_TEST_unattended_file')
 
+        install_virtio = os.environ.get('KVM_TEST_install_virtio', 'no')
+        if install_virtio == 'yes':
+            self.install_virtio = True
+        else:
+            self.install_virtio = False
+
+        virtio_floppy = os.environ.get('KVM_TEST_virtio_floppy', '')
+        self.virtio_floppy = None
+        self.virtio_floppy_mount = tempfile.mkdtemp(prefix='floppy_',
+                                                    dir='/tmp')
+        if self.install_virtio:
+            if virtio_floppy and os.path.isfile(virtio_floppy):
+                print package_that_owns(virtio_floppy)
+                self.virtio_floppy = virtio_floppy
+            elif virtio_floppy and not os.path.isfile(virtio_floppy):
+                print ('Virtio floppy path %s was not found. Please verify' %
+                       virtio_floppy)
+
+        vni = os.environ.get('KVM_TEST_virtio_network_installer', '')
+        self.virtio_network_installer = None
+        if self.install_virtio and vni:
+            self.virtio_network_installer = vni
+
+        voi = os.environ.get('KVM_TEST_virtio_oemsetup_id', '')
+        self.virtio_oemsetup_identifier = None
+        if self.install_virtio and voi:
+            self.virtio_oemsetup_identifier = voi
+
+        vsp = os.environ.get('KVM_TEST_virtio_storage_path', '')
+        self.virtio_storage_path = None
+        if self.install_virtio and vsp:
+            self.virtio_storage_path = vsp
+
         self.qemu_img_bin = os.environ.get('KVM_TEST_qemu_img_binary')
         if not os.path.isabs(self.qemu_img_bin):
             self.qemu_img_bin = os.path.join(kvm_test_dir, self.qemu_img_bin)
@@ -72,6 +146,84 @@ class UnattendedInstall(object):
         self.initrd_path = os.path.join(self.image_path, self.initrd)
 
 
+    def copy_virtio_drivers_floppy(self):
+        """
+        Copy the virtio drivers on the virtio floppy to the install floppy.
+
+        1) Mount the floppy containing the viostor drivers
+        2) Copy its contents to the root of the install floppy
+        """
+        m_cmd = 'mount -o loop %s %s' % (self.virtio_floppy,
+                                         self.virtio_floppy_mount)
+        pwd = os.getcwd()
+        try:
+            if os.system(m_cmd):
+                raise SetupError('Could not mount virtio floppy driver')
+            os.chdir(self.virtio_floppy_mount)
+            path_list = glob.glob('*')
+            for path in path_list:
+                src = os.path.join(self.virtio_floppy_mount, path)
+                dst = os.path.join(self.floppy_mount, path)
+                if os.path.isdir(path):
+                    shutil.copytree(src, dst)
+                elif os.path.isfile(path):
+                    shutil.copyfile(src, dst)
+        finally:
+            os.chdir(pwd)
+            u_cmd = 'umount %s' % self.virtio_floppy_mount
+            if os.system(u_cmd):
+                raise SetupError('Could not unmount virtio floppy at %s' %
+                                 self.virtio_floppy_mount)
+            self.cleanup(self.virtio_floppy_mount)
+
+
+    def setup_virtio_win2008(self):
+        """
+        Setup the install floppy with the virtio storage drivers, win2008 style.
+
+        Win2008, Vista and 7 require people to point out the path to the drivers
+        on the unattended file, so we just need to copy the drivers to the
+        driver floppy disk.
+        Process:
+
+        1) Copy the virtio drivers on the virtio floppy to the install floppy
+        """
+        self.copy_virtio_drivers_floppy()
+
+
+    def setup_virtio_win2003(self):
+        """
+        Setup the install floppy with the virtio storage drivers, win2003 style.
+
+        Win2003 and WinXP depend on the file txtsetup.oem file to install
+        the virtio drivers from the floppy, which is a .ini file.
+        Process:
+
+        1) Copy the virtio drivers on the virtio floppy to the install floppy
+        2) Parse the ini file with config parser
+        3) Modify the identifier of the default session that is going to be
+           executed on the config parser object
+        4) Re-write the config file to the disk
+        """
+        self.copy_virtio_drivers_floppy()
+        txtsetup_oem = os.path.join(self.floppy_mount, 'txtsetup.oem')
+        if not os.path.isfile(txtsetup_oem):
+            raise SetupError('File txtsetup.oem not found on the install '
+                             'floppy. Please verify if your floppy virtio '
+                             'driver image has this file')
+        parser = ConfigParser.ConfigParser()
+        parser.read(txtsetup_oem)
+        if not parser.has_section('Defaults'):
+            raise SetupError('File txtsetup.oem does not have the session '
+                             '"Defaults". Please check txtsetup.oem')
+        default_driver = parser.get('Defaults', 'SCSI')
+        if default_driver != self.virtio_oemsetup_identifier:
+            parser.set('Defaults', 'SCSI', self.virtio_oemsetup_identifier)
+            fp = open(txtsetup_oem, 'w')
+            parser.write(fp)
+            fp.close()
+
+
     def create_boot_floppy(self):
         """
         Prepares a boot floppy by creating a floppy image file, mounting it and
@@ -93,7 +245,8 @@ class UnattendedInstall(object):
             raise SetupError('Error formatting floppy image.')
 
         try:
-            m_cmd = 'mount -o loop %s %s' % (self.floppy_img, self.floppy_mount)
+            m_cmd = 'mount -o loop,rw %s %s' % (self.floppy_img,
+                                                self.floppy_mount)
             if os.system(m_cmd):
                 raise SetupError('Could not mount floppy image.')
 
@@ -103,6 +256,9 @@ class UnattendedInstall(object):
                 setup_file_path = os.path.join(self.unattended_dir, setup_file)
                 setup_file_dest = os.path.join(self.floppy_mount, setup_file)
                 shutil.copyfile(setup_file_path, setup_file_dest)
+                if self.install_virtio:
+                    self.setup_virtio_win2003()
+
             elif self.unattended_file.endswith('.ks'):
                 # Red Hat kickstart install
                 dest_fname = 'ks.cfg'
@@ -110,6 +266,8 @@ class UnattendedInstall(object):
                 if  self.tftp_root is '':
                     # Windows unattended install
                     dest_fname = "autounattend.xml"
+                    if self.install_virtio:
+                        self.setup_virtio_win2008()
                 else:
                     # SUSE autoyast install
                     dest_fname = "autoinst.xml"
@@ -130,7 +288,7 @@ class UnattendedInstall(object):
                     print ("WARNING: 'cdkey' required but not specified for "
                            "this unattended installation")
 
-            dummy_re = r'\bKVM_TEST_MEDIUM\b'
+            dummy_medium_re = r'\bKVM_TEST_MEDIUM\b'
             if self.medium == "cdrom":
                 content = "cdrom"
             elif self.medium == "url":
@@ -140,7 +298,46 @@ class UnattendedInstall(object):
             else:
                 raise SetupError("Unexpected installation medium %s" % self.url)
 
-            unattended_contents = re.sub(dummy_re, content, unattended_contents)
+            unattended_contents = re.sub(dummy_medium_re, content, unattended_contents)
+
+            dummy_path = "C:"
+
+            dummy_storage_re = r'\bKVM_TEST_STORAGE_DRIVER_PATH\b'
+            storage_driver = os.environ.get('KVM_TEST_virtio_storage_path', '')
+            if re.search(dummy_storage_re, unattended_contents):
+                if self.install_virtio:
+                    unattended_contents = re.sub(dummy_storage_re,
+                                                 storage_driver,
+                                                 unattended_contents)
+                else:
+                    unattended_contents = re.sub(dummy_storage_re,
+                                                 dummy_path,
+                                                 unattended_contents)
+
+            dummy_network_re = r'\bKVM_TEST_NETWORK_DRIVER_PATH\b'
+            network_driver = os.environ.get('KVM_TEST_virtio_network_path', '')
+            if re.search(dummy_network_re, unattended_contents):
+                if self.install_virtio:
+                    unattended_contents = re.sub(dummy_network_re,
+                                                 network_driver,
+                                                 unattended_contents)
+                else:
+                    unattended_contents = re.sub(dummy_network_re,
+                                                 dummy_path,
+                                                 unattended_contents)
+
+            dummy_nw_install_re = r'\bKVM_TEST_VIRTIO_NETWORK_INSTALLER\b'
+            nw_install = os.environ.get('KVM_TEST_virtio_network_installer',
+                                        'help')
+            if re.search(dummy_nw_install_re, unattended_contents):
+                if self.install_virtio:
+                    unattended_contents = re.sub(dummy_nw_install_re,
+                                                 nw_install,
+                                                 unattended_contents)
+                else:
+                    unattended_contents = re.sub(dummy_nw_install_re,
+                                                 'help',
+                                                 unattended_contents)
 
             print
             print "Unattended install %s contents:" % dest_fname
Signature · 1 line
1.7.1.1
#2 lore raw

PATCH 3/3 KVM test: Unattended files changes to support virtio drivers install

In reply to Lucas Meneghel Rodrigues

1) Make sure extra_driver_path is set on the xml files
2) Make sure the nw driver installer runs at the end of the install for both the xml and .ini files

---
 client/tests/kvm/unattended/win2003-32.sif         |   14 +++++----
 client/tests/kvm/unattended/win2003-64.sif         |   14 +++++----
 .../kvm/unattended/win2008-32-autounattend.xml     |   30 +++++++++++++++----
 .../kvm/unattended/win2008-64-autounattend.xml     |   30 +++++++++++++++----
 .../kvm/unattended/win2008-r2-autounattend.xml     |   30 +++++++++++++++----
 .../tests/kvm/unattended/win7-32-autounattend.xml  |   32 +++++++++++++++----
 .../tests/kvm/unattended/win7-64-autounattend.xml  |   32 +++++++++++++++----
 .../kvm/unattended/winvista-32-autounattend.xml    |   30 +++++++++++++++----
 .../kvm/unattended/winvista-64-autounattend.xml    |   30 +++++++++++++++----
 client/tests/kvm/unattended/winxp32.sif            |    8 +++--
 client/tests/kvm/unattended/winxp64.sif            |    8 +++--
 11 files changed, 196 insertions(+), 62 deletions(-)
client/tests/kvm/unattended/win2003-32.sif +8 -6
index f58b0b0..fab2cf5 100644
@@ -10,6 +10,7 @@
     UnattendSwitch = Yes
     CrashDumpSetting = 1
     DriverSigningPolicy = ignore
+    OemPnPDriversPath="KVM_TEST_NETWORK_DRIVER_PATH"
     WaitForReboot = no
     Repartition = yes
 
@@ -56,9 +57,10 @@
     YResolution=768
 
 [GuiRunOnce]
-    Command0="cmd /c sc config TlntSvr start= auto"
-    Command1="cmd /c netsh firewall set opmode disable"
-    Command2="cmd /c net start telnet"
-    Command3="cmd /c E:\setuprss.bat"
-    Command4="cmd /c netsh interface ip set address local dhcp"
-    Command5="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
+    Command0="cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"
+    Command1="cmd /c sc config TlntSvr start= auto"
+    Command2="cmd /c netsh firewall set opmode disable"
+    Command3="cmd /c net start telnet"
+    Command4="cmd /c E:\setuprss.bat"
+    Command5="cmd /c netsh interface ip set address local dhcp"
+    Command6="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
client/tests/kvm/unattended/win2003-64.sif +8 -6
index f58b0b0..fab2cf5 100644
@@ -10,6 +10,7 @@
     UnattendSwitch = Yes
     CrashDumpSetting = 1
     DriverSigningPolicy = ignore
+    OemPnPDriversPath="KVM_TEST_NETWORK_DRIVER_PATH"
     WaitForReboot = no
     Repartition = yes
 
@@ -56,9 +57,10 @@
     YResolution=768
 
 [GuiRunOnce]
-    Command0="cmd /c sc config TlntSvr start= auto"
-    Command1="cmd /c netsh firewall set opmode disable"
-    Command2="cmd /c net start telnet"
-    Command3="cmd /c E:\setuprss.bat"
-    Command4="cmd /c netsh interface ip set address local dhcp"
-    Command5="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
+    Command0="cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"
+    Command1="cmd /c sc config TlntSvr start= auto"
+    Command2="cmd /c netsh firewall set opmode disable"
+    Command3="cmd /c net start telnet"
+    Command4="cmd /c E:\setuprss.bat"
+    Command5="cmd /c netsh interface ip set address local dhcp"
+    Command6="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
client/tests/kvm/unattended/win2008-32-autounattend.xml +24 -6
index 44a9fc4..89af07f 100644
@@ -15,6 +15,20 @@
 			<UILanguageFallback>en-us</UILanguageFallback>
 			<UserLocale>en-us</UserLocale>
 		</component>
+		<component name="Microsoft-Windows-PnpCustomizationsWinPE"
+			processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
+			language="neutral" versionScope="nonSxS"
+			xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
+			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+			<DriverPaths>
+				<PathAndCredentials wcm:keyValue="1" wcm:action="add">
+					<Path>KVM_TEST_STORAGE_DRIVER_PATH</Path>
+				</PathAndCredentials>
+				<PathAndCredentials wcm:keyValue="2" wcm:action="add">
+					<Path>KVM_TEST_NETWORK_DRIVER_PATH</Path>
+				</PathAndCredentials>
+			</DriverPaths>
+		</component>
 		<component name="Microsoft-Windows-Setup"
 			processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
 			language="neutral" versionScope="nonSxS"
@@ -115,32 +129,36 @@
 			</AutoLogon>
 			<FirstLogonCommands>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"</CommandLine>
 					<Order>1</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 					<Order>2</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 					<Order>3</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 					<Order>4</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 					<Order>5</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 					<Order>6</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 					<Order>7</Order>
+				</SynchronousCommand>
+				<SynchronousCommand wcm:action="add">
 					<CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 &#38;&#38; A:\finish.exe</CommandLine>
+					<Order>8</Order>
 				</SynchronousCommand>
 			</FirstLogonCommands>
 			<OOBE>
client/tests/kvm/unattended/win2008-64-autounattend.xml +24 -6
index ea0a524..98f5589 100644
@@ -70,6 +70,20 @@
 			<UserLocale>en-us</UserLocale>
 			<UILanguageFallback>en-us</UILanguageFallback>
 		</component>
+		<component name="Microsoft-Windows-PnpCustomizationsWinPE"
+			processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
+			language="neutral" versionScope="nonSxS"
+			xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
+			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+			<DriverPaths>
+				<PathAndCredentials wcm:keyValue="1" wcm:action="add">
+					<Path>KVM_TEST_STORAGE_DRIVER_PATH</Path>
+				</PathAndCredentials>
+				<PathAndCredentials wcm:keyValue="2" wcm:action="add">
+					<Path>KVM_TEST_NETWORK_DRIVER_PATH</Path>
+				</PathAndCredentials>
+			</DriverPaths>
+		</component>
 	</settings>
 	<settings pass="specialize">
 		<component name="Microsoft-Windows-Deployment"
@@ -124,32 +138,36 @@
 			</AutoLogon>
 			<FirstLogonCommands>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"</CommandLine>
 					<Order>1</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 					<Order>2</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 					<Order>3</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 					<Order>4</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 					<Order>5</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 					<Order>6</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 					<Order>7</Order>
+				</SynchronousCommand>
+				<SynchronousCommand wcm:action="add">
 					<CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 &#38;&#38; A:\finish.exe</CommandLine>
+					<Order>8</Order>
 				</SynchronousCommand>
 			</FirstLogonCommands>
 			<OOBE>
client/tests/kvm/unattended/win2008-r2-autounattend.xml +24 -6
index ea0a524..b624d10 100644
@@ -100,6 +100,20 @@
 			<UILanguage>en-US</UILanguage>
 			<UserLocale>en-US</UserLocale>
 		</component>
+		<component name="Microsoft-Windows-PnpCustomizationsWinPE"
+			processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
+			language="neutral" versionScope="nonSxS"
+			xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
+			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+			<DriverPaths>
+				<PathAndCredentials wcm:keyValue="1" wcm:action="add">
+					<Path>KVM_TEST_STORAGE_DRIVER_PATH</Path>
+				</PathAndCredentials>
+				<PathAndCredentials wcm:keyValue="2" wcm:action="add">
+					<Path>KVM_TEST_NETWORK_DRIVER_PATH</Path>
+				</PathAndCredentials>
+			</DriverPaths>
+		</component>
 	</settings>
 	<settings pass="oobeSystem">
 		<component name="Microsoft-Windows-Shell-Setup"
@@ -124,32 +138,36 @@
 			</AutoLogon>
 			<FirstLogonCommands>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"</CommandLine>
 					<Order>1</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 					<Order>2</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 					<Order>3</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 					<Order>4</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 					<Order>5</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 					<Order>6</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 					<Order>7</Order>
+				</SynchronousCommand>
+				<SynchronousCommand wcm:action="add">
 					<CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 &#38;&#38; A:\finish.exe</CommandLine>
+					<Order>8</Order>
 				</SynchronousCommand>
 			</FirstLogonCommands>
 			<OOBE>
client/tests/kvm/unattended/win7-32-autounattend.xml +25 -7
index a577a91..a16cdd7 100644
@@ -15,6 +15,20 @@
 			<UILanguageFallback>en-us</UILanguageFallback>
 			<UserLocale>en-us</UserLocale>
 		</component>
+		<component name="Microsoft-Windows-PnpCustomizationsWinPE"
+			processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
+			language="neutral" versionScope="nonSxS"
+			xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
+			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+			<DriverPaths>
+				<PathAndCredentials wcm:keyValue="1" wcm:action="add">
+					<Path>KVM_TEST_STORAGE_DRIVER_PATH</Path>
+				</PathAndCredentials>
+				<PathAndCredentials wcm:keyValue="2" wcm:action="add">
+					<Path>KVM_TEST_NETWORK_DRIVER_PATH</Path>
+				</PathAndCredentials>
+			</DriverPaths>
+		</component>
 		<component name="Microsoft-Windows-Setup"
 			processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
 			language="neutral" versionScope="nonSxS"
@@ -122,33 +136,37 @@
 			</AutoLogon>
 			<FirstLogonCommands>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"</CommandLine>
 					<Order>1</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 					<Order>2</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 					<Order>3</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 					<Order>4</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 					<Order>5</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine> 
+					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 					<Order>6</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 &#38;&#38; A:\finish.exe</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 					<Order>7</Order>
 				</SynchronousCommand>
+				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 &#38;&#38; A:\finish.exe</CommandLine>
+					<Order>8</Order>
+				</SynchronousCommand>
 			</FirstLogonCommands>
 		</component>
 	</settings>
client/tests/kvm/unattended/win7-64-autounattend.xml +25 -7
index fec8017..65873f6 100644
@@ -15,6 +15,20 @@
 			<UILanguageFallback>en-us</UILanguageFallback>
 			<UserLocale>en-us</UserLocale>
 		</component>
+		<component name="Microsoft-Windows-PnpCustomizationsWinPE"
+			processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
+			language="neutral" versionScope="nonSxS"
+			xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
+			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+			<DriverPaths>
+				<PathAndCredentials wcm:keyValue="1" wcm:action="add">
+					<Path>KVM_TEST_STORAGE_DRIVER_PATH</Path>
+				</PathAndCredentials>
+				<PathAndCredentials wcm:keyValue="2" wcm:action="add">
+					<Path>KVM_TEST_NETWORK_DRIVER_PATH</Path>
+				</PathAndCredentials>
+			</DriverPaths>
+		</component>
 		<component name="Microsoft-Windows-Setup"
 			processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
 			language="neutral" versionScope="nonSxS"
@@ -122,33 +136,37 @@
 			</AutoLogon>
 			<FirstLogonCommands>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"</CommandLine>
 					<Order>1</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 					<Order>2</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 					<Order>3</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 					<Order>4</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 					<Order>5</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine> 
+					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 					<Order>6</Order>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
-					<CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 &#38;&#38; A:\finish.exe</CommandLine>
+					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 					<Order>7</Order>
 				</SynchronousCommand>
+				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 &#38;&#38; A:\finish.exe</CommandLine>
+					<Order>8</Order>
+				</SynchronousCommand>
 			</FirstLogonCommands>
 		</component>
 	</settings>
client/tests/kvm/unattended/winvista-32-autounattend.xml +24 -6
index 7835a64..d4e8c5c 100644
@@ -15,6 +15,20 @@
 			<UILanguageFallback>en-us</UILanguageFallback>
 			<UserLocale>en-us</UserLocale>
 		</component>
+		<component name="Microsoft-Windows-PnpCustomizationsWinPE"
+			processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
+			language="neutral" versionScope="nonSxS"
+			xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
+			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+			<DriverPaths>
+				<PathAndCredentials wcm:keyValue="1" wcm:action="add">
+					<Path>KVM_TEST_STORAGE_DRIVER_PATH</Path>
+				</PathAndCredentials>
+				<PathAndCredentials wcm:keyValue="2" wcm:action="add">
+					<Path>KVM_TEST_NETWORK_DRIVER_PATH</Path>
+				</PathAndCredentials>
+			</DriverPaths>
+		</component>
 		<component name="Microsoft-Windows-Setup"
 			processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
 			language="neutral" versionScope="nonSxS"
@@ -122,32 +136,36 @@
 			</AutoLogon>
 			<FirstLogonCommands>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"</CommandLine>
 					<Order>1</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 					<Order>2</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 					<Order>3</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 					<Order>4</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 					<Order>5</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 					<Order>6</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 					<Order>7</Order>
+				</SynchronousCommand>
+				<SynchronousCommand wcm:action="add">
 					<CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 &#38;&#38; A:\finish.exe</CommandLine>
+					<Order>8</Order>
 				</SynchronousCommand>
 			</FirstLogonCommands>
 		</component>
client/tests/kvm/unattended/winvista-64-autounattend.xml +24 -6
index ad68bf9..16d4850 100644
@@ -62,6 +62,20 @@
 			<UserLocale>en-us</UserLocale>
 			<UILanguageFallback>en-us</UILanguageFallback>
 		</component>
+		<component name="Microsoft-Windows-PnpCustomizationsWinPE"
+			processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
+			language="neutral" versionScope="nonSxS"
+			xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
+			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+			<DriverPaths>
+				<PathAndCredentials wcm:keyValue="1" wcm:action="add">
+					<Path>KVM_TEST_STORAGE_DRIVER_PATH</Path>
+				</PathAndCredentials>
+				<PathAndCredentials wcm:keyValue="2" wcm:action="add">
+					<Path>KVM_TEST_NETWORK_DRIVER_PATH</Path>
+				</PathAndCredentials>
+			</DriverPaths>
+		</component>
 	</settings>
 	<settings pass="specialize">
 		<component name="Microsoft-Windows-Deployment"
@@ -123,32 +137,36 @@
 			</OOBE>
 			<FirstLogonCommands>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"</CommandLine>
 					<Order>1</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
 					<Order>2</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
 					<Order>3</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
 					<Order>4</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
 					<Order>5</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
 					<Order>6</Order>
-					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 				</SynchronousCommand>
 				<SynchronousCommand wcm:action="add">
+					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
 					<Order>7</Order>
+				</SynchronousCommand>
+				<SynchronousCommand wcm:action="add">
 					<CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 &#38;&#38; A:\finish.exe</CommandLine>
+					<Order>8</Order>
 				</SynchronousCommand>
 			</FirstLogonCommands>
 		</component>
client/tests/kvm/unattended/winxp32.sif +5 -3
index 7562846..b9a2ab6 100644
@@ -13,6 +13,7 @@
     UnattendSwitch=Yes
     CrashDumpSetting=1
     DriverSigningPolicy=ignore
+    OemPnPDriversPath="KVM_TEST_NETWORK_DRIVER_PATH"
     WaitForReboot=no
 
 [GuiUnattended]
@@ -68,6 +69,7 @@
     YResolution=768
 
 [GuiRunOnce]
-   Command0="cmd /c E:\setuprss.bat"
-   Command1="cmd /c netsh interface ip set address local dhcp"
-   Command2="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
+   Command0="cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"
+   Command1="cmd /c E:\setuprss.bat"
+   Command2="cmd /c netsh interface ip set address local dhcp"
+   Command3="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
client/tests/kvm/unattended/winxp64.sif +5 -3
index 7562846..b9a2ab6 100644
@@ -13,6 +13,7 @@
     UnattendSwitch=Yes
     CrashDumpSetting=1
     DriverSigningPolicy=ignore
+    OemPnPDriversPath="KVM_TEST_NETWORK_DRIVER_PATH"
     WaitForReboot=no
 
 [GuiUnattended]
@@ -68,6 +69,7 @@
     YResolution=768
 
 [GuiRunOnce]
-   Command0="cmd /c E:\setuprss.bat"
-   Command1="cmd /c netsh interface ip set address local dhcp"
-   Command2="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
+   Command0="cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"
+   Command1="cmd /c E:\setuprss.bat"
+   Command2="cmd /c netsh interface ip set address local dhcp"
+   Command3="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
Signature · 1 line
1.7.1.1