From patchwork Tue Oct 6 01:03:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 51844 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9615nnP013038 for ; Tue, 6 Oct 2009 01:05:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755820AbZJFBDn (ORCPT ); Mon, 5 Oct 2009 21:03:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755795AbZJFBDn (ORCPT ); Mon, 5 Oct 2009 21:03:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44872 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755731AbZJFBDm (ORCPT ); Mon, 5 Oct 2009 21:03:42 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9613GuS024961; Mon, 5 Oct 2009 21:03:16 -0400 Received: from localhost.localdomain (vpn-12-223.rdu.redhat.com [10.11.12.223]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9613AVA029434; Mon, 5 Oct 2009 21:03:15 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH 3/6] KVM test: Add unattended install files for F11 and WinXP Date: Mon, 5 Oct 2009 22:03:06 -0300 Message-Id: <1254790989-14204-3-git-send-email-lmr@redhat.com> In-Reply-To: <1254790989-14204-2-git-send-email-lmr@redhat.com> References: <1254790989-14204-1-git-send-email-lmr@redhat.com> <1254790989-14204-2-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/client/tests/kvm/unattended/Fedora-11.ks b/client/tests/kvm/unattended/Fedora-11.ks new file mode 100644 index 0000000..2e51861 --- /dev/null +++ b/client/tests/kvm/unattended/Fedora-11.ks @@ -0,0 +1,36 @@ +install +cdrom +text +reboot +lang en_US +keyboard us +network --bootproto dhcp +rootpw 123456 +firewall --enabled --ssh +selinux --enforcing +timezone --utc America/New_York +firstboot --disable +bootloader --location=mbr +zerombr + +clearpart --all --initlabel +part /boot --fstype=ext3 --size=100 +part / --fstype=ext3 --size=2000 +part swap --fstype=swap --size=512 + +%packages +@ Base +%end + +%post --interpreter /usr/bin/python +import socket, os +os.system('iptables -F') +os.system('echo 0 > /selinux/enforce') +port = 12323 +buf = 1024 +addr = ('10.0.0.2', port) +client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +client.connect(addr) +client.sendto('done', addr) +client.close() +%end \ No newline at end of file diff --git a/client/tests/kvm/unattended/winnt.bat b/client/tests/kvm/unattended/winnt.bat new file mode 100644 index 0000000..e3e0645 --- /dev/null +++ b/client/tests/kvm/unattended/winnt.bat @@ -0,0 +1,12 @@ +@rem SetupMgrTag +@echo off + +rem +rem This is a SAMPLE batch script generated by Setup Manager. +rem If this script is moved from the location where it was generated, it may have to be modified. +rem + +set AnswerFile=.\winnt.sif +set SetupFiles=D:\i386 + +D:\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% diff --git a/client/tests/kvm/unattended/winxp32.sif b/client/tests/kvm/unattended/winxp32.sif new file mode 100644 index 0000000..dc0c106 --- /dev/null +++ b/client/tests/kvm/unattended/winxp32.sif @@ -0,0 +1,72 @@ +;SetupMgrTag +[Data] + AutoPartition=1 + MsDosInitiated="0" + UnattendedInstall="Yes" + +[Unattended] + Repartition=Yes + UnattendMode=FullUnattended + OemSkipEula=Yes + OemPreinstall=No + TargetPath=\WINDOWS + UnattendSwitch=Yes + CrashDumpSetting=1 + DriverSigningPolicy=ignore + WaitForReboot=no + +[GuiUnattended] + AdminPassword="123456" + EncryptedAdminPassword=NO + TimeZone=85 + OemSkipWelcome=1 + AutoLogon=Yes + AutoLogonCount=1 + OEMSkipRegional=1 + +[UserData] + ProductKey=[replace-with-your-prodkey] + FullName="Autotest Mindless Drone" + OrgName="Autotest" + ComputerName=* + +[Identification] + JoinWorkgroup=WORKGROUP + +[Networking] + InstallDefaultComponents=Yes + +[Proxy] + Proxy_Enable=0 + Use_Same_Proxy=0 + +[Components] + dialer=off + media_clips=off + media_utopia=off + msnexplr=off + netoc=off + OEAccess=off + templates=off + WMAccess=off + zonegames=off + +[TerminalServices] + AllowConnections=1 + +[WindowsFirewall] + Profiles=WindowsFirewall.TurnOffFirewall + +[WindowsFirewall.TurnOffFirewall] + Mode=0 + +[Branding] + BrandIEUsingUnattended=Yes + +[GuiRunOnce] + Command0="cmd /c A:\finish.exe 10.0.0.2" + +[Display] + Xresolution=1024 + YResolution=768 +