From: Lucas Meneghel Rodrigues Subject: [PATCH 3/3] KVM test: Unattended files changes to support virtio drivers install Date: Thu, 22 Jul 2010 01:23:14 -0300 Message-ID: <1279772594-10281-3-git-send-email-lmr@redhat.com> References: <1279772594-10281-1-git-send-email-lmr@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: autotest@test.kernel.org Return-path: In-Reply-To: <1279772594-10281-1-git-send-email-lmr@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org 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 Signed-off-by: Lucas Meneghel Rodrigues --- 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(-) diff --git a/client/tests/kvm/unattended/win2003-32.sif b/client/tests/kvm/unattended/win2003-32.sif index f58b0b0..fab2cf5 100644 --- a/client/tests/kvm/unattended/win2003-32.sif +++ b/client/tests/kvm/unattended/win2003-32.sif @@ -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" diff --git a/client/tests/kvm/unattended/win2003-64.sif b/client/tests/kvm/unattended/win2003-64.sif index f58b0b0..fab2cf5 100644 --- a/client/tests/kvm/unattended/win2003-64.sif +++ b/client/tests/kvm/unattended/win2003-64.sif @@ -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" diff --git a/client/tests/kvm/unattended/win2008-32-autounattend.xml b/client/tests/kvm/unattended/win2008-32-autounattend.xml index 44a9fc4..89af07f 100644 --- a/client/tests/kvm/unattended/win2008-32-autounattend.xml +++ b/client/tests/kvm/unattended/win2008-32-autounattend.xml @@ -15,6 +15,20 @@ en-us en-us + + + + KVM_TEST_STORAGE_DRIVER_PATH + + + KVM_TEST_NETWORK_DRIVER_PATH + + + + %WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER" 1 - %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" + %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" 2 - %WINDIR%\System32\cmd /c sc config TlntSvr start= auto + %WINDIR%\System32\cmd /c sc config TlntSvr start= auto 3 - %WINDIR%\System32\cmd /c netsh firewall set opmode disable + %WINDIR%\System32\cmd /c netsh firewall set opmode disable 4 - %WINDIR%\System32\cmd /c net start telnet + %WINDIR%\System32\cmd /c net start telnet 5 - %WINDIR%\System32\cmd /c E:\setuprss.bat + %WINDIR%\System32\cmd /c E:\setuprss.bat 6 - %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp + %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp 7 + + %WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe + 8 diff --git a/client/tests/kvm/unattended/win2008-64-autounattend.xml b/client/tests/kvm/unattended/win2008-64-autounattend.xml index ea0a524..98f5589 100644 --- a/client/tests/kvm/unattended/win2008-64-autounattend.xml +++ b/client/tests/kvm/unattended/win2008-64-autounattend.xml @@ -70,6 +70,20 @@ en-us en-us + + + + KVM_TEST_STORAGE_DRIVER_PATH + + + KVM_TEST_NETWORK_DRIVER_PATH + + + + %WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER" 1 - %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" + %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" 2 - %WINDIR%\System32\cmd /c sc config TlntSvr start= auto + %WINDIR%\System32\cmd /c sc config TlntSvr start= auto 3 - %WINDIR%\System32\cmd /c netsh firewall set opmode disable + %WINDIR%\System32\cmd /c netsh firewall set opmode disable 4 - %WINDIR%\System32\cmd /c net start telnet + %WINDIR%\System32\cmd /c net start telnet 5 - %WINDIR%\System32\cmd /c E:\setuprss.bat + %WINDIR%\System32\cmd /c E:\setuprss.bat 6 - %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp + %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp 7 + + %WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe + 8 diff --git a/client/tests/kvm/unattended/win2008-r2-autounattend.xml b/client/tests/kvm/unattended/win2008-r2-autounattend.xml index ea0a524..b624d10 100644 --- a/client/tests/kvm/unattended/win2008-r2-autounattend.xml +++ b/client/tests/kvm/unattended/win2008-r2-autounattend.xml @@ -100,6 +100,20 @@ en-US en-US + + + + KVM_TEST_STORAGE_DRIVER_PATH + + + KVM_TEST_NETWORK_DRIVER_PATH + + + + %WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER" 1 - %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" + %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" 2 - %WINDIR%\System32\cmd /c sc config TlntSvr start= auto + %WINDIR%\System32\cmd /c sc config TlntSvr start= auto 3 - %WINDIR%\System32\cmd /c netsh firewall set opmode disable + %WINDIR%\System32\cmd /c netsh firewall set opmode disable 4 - %WINDIR%\System32\cmd /c net start telnet + %WINDIR%\System32\cmd /c net start telnet 5 - %WINDIR%\System32\cmd /c E:\setuprss.bat + %WINDIR%\System32\cmd /c E:\setuprss.bat 6 - %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp + %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp 7 + + %WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe + 8 diff --git a/client/tests/kvm/unattended/win7-32-autounattend.xml b/client/tests/kvm/unattended/win7-32-autounattend.xml index a577a91..a16cdd7 100644 --- a/client/tests/kvm/unattended/win7-32-autounattend.xml +++ b/client/tests/kvm/unattended/win7-32-autounattend.xml @@ -15,6 +15,20 @@ en-us en-us + + + + KVM_TEST_STORAGE_DRIVER_PATH + + + KVM_TEST_NETWORK_DRIVER_PATH + + + - %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" + %WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER" 1 - %WINDIR%\System32\cmd /c sc config TlntSvr start= auto + %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" 2 - %WINDIR%\System32\cmd /c netsh firewall set opmode disable + %WINDIR%\System32\cmd /c sc config TlntSvr start= auto 3 - %WINDIR%\System32\cmd /c net start telnet + %WINDIR%\System32\cmd /c netsh firewall set opmode disable 4 - %WINDIR%\System32\cmd /c E:\setuprss.bat + %WINDIR%\System32\cmd /c net start telnet 5 - %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp + %WINDIR%\System32\cmd /c E:\setuprss.bat 6 - %WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe + %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp 7 + + %WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe + 8 + diff --git a/client/tests/kvm/unattended/win7-64-autounattend.xml b/client/tests/kvm/unattended/win7-64-autounattend.xml index fec8017..65873f6 100644 --- a/client/tests/kvm/unattended/win7-64-autounattend.xml +++ b/client/tests/kvm/unattended/win7-64-autounattend.xml @@ -15,6 +15,20 @@ en-us en-us + + + + KVM_TEST_STORAGE_DRIVER_PATH + + + KVM_TEST_NETWORK_DRIVER_PATH + + + - %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" + %WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER" 1 - %WINDIR%\System32\cmd /c sc config TlntSvr start= auto + %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" 2 - %WINDIR%\System32\cmd /c netsh firewall set opmode disable + %WINDIR%\System32\cmd /c sc config TlntSvr start= auto 3 - %WINDIR%\System32\cmd /c net start telnet + %WINDIR%\System32\cmd /c netsh firewall set opmode disable 4 - %WINDIR%\System32\cmd /c E:\setuprss.bat + %WINDIR%\System32\cmd /c net start telnet 5 - %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp + %WINDIR%\System32\cmd /c E:\setuprss.bat 6 - %WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe + %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp 7 + + %WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe + 8 + diff --git a/client/tests/kvm/unattended/winvista-32-autounattend.xml b/client/tests/kvm/unattended/winvista-32-autounattend.xml index 7835a64..d4e8c5c 100644 --- a/client/tests/kvm/unattended/winvista-32-autounattend.xml +++ b/client/tests/kvm/unattended/winvista-32-autounattend.xml @@ -15,6 +15,20 @@ en-us en-us + + + + KVM_TEST_STORAGE_DRIVER_PATH + + + KVM_TEST_NETWORK_DRIVER_PATH + + + + %WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER" 1 - %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" + %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" 2 - %WINDIR%\System32\cmd /c sc config TlntSvr start= auto + %WINDIR%\System32\cmd /c sc config TlntSvr start= auto 3 - %WINDIR%\System32\cmd /c netsh firewall set opmode disable + %WINDIR%\System32\cmd /c netsh firewall set opmode disable 4 - %WINDIR%\System32\cmd /c net start telnet + %WINDIR%\System32\cmd /c net start telnet 5 - %WINDIR%\System32\cmd /c E:\setuprss.bat + %WINDIR%\System32\cmd /c E:\setuprss.bat 6 - %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp + %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp 7 + + %WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe + 8 diff --git a/client/tests/kvm/unattended/winvista-64-autounattend.xml b/client/tests/kvm/unattended/winvista-64-autounattend.xml index ad68bf9..16d4850 100644 --- a/client/tests/kvm/unattended/winvista-64-autounattend.xml +++ b/client/tests/kvm/unattended/winvista-64-autounattend.xml @@ -62,6 +62,20 @@ en-us en-us + + + + KVM_TEST_STORAGE_DRIVER_PATH + + + KVM_TEST_NETWORK_DRIVER_PATH + + + + %WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER" 1 - %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" + %WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer" 2 - %WINDIR%\System32\cmd /c sc config TlntSvr start= auto + %WINDIR%\System32\cmd /c sc config TlntSvr start= auto 3 - %WINDIR%\System32\cmd /c netsh firewall set opmode disable + %WINDIR%\System32\cmd /c netsh firewall set opmode disable 4 - %WINDIR%\System32\cmd /c net start telnet + %WINDIR%\System32\cmd /c net start telnet 5 - %WINDIR%\System32\cmd /c E:\setuprss.bat + %WINDIR%\System32\cmd /c E:\setuprss.bat 6 - %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp + %WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp 7 + + %WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe + 8 diff --git a/client/tests/kvm/unattended/winxp32.sif b/client/tests/kvm/unattended/winxp32.sif index 7562846..b9a2ab6 100644 --- a/client/tests/kvm/unattended/winxp32.sif +++ b/client/tests/kvm/unattended/winxp32.sif @@ -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" diff --git a/client/tests/kvm/unattended/winxp64.sif b/client/tests/kvm/unattended/winxp64.sif index 7562846..b9a2ab6 100644 --- a/client/tests/kvm/unattended/winxp64.sif +++ b/client/tests/kvm/unattended/winxp64.sif @@ -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" -- 1.7.1.1