All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: autotest@test.kernel.org
Cc: kvm@vger.kernel.org, dhuff@redhat.com,
	Lucas Meneghel Rodrigues <lmr@redhat.com>
Subject: [PATCH 3/6] KVM test: Add unattended install files for F11 and WinXP
Date: Mon,  3 Aug 2009 19:38:51 -0300	[thread overview]
Message-ID: <1249339134-5600-4-git-send-email-lmr@redhat.com> (raw)
In-Reply-To: <1249339134-5600-3-git-send-email-lmr@redhat.com>

For the purpose of developing the test, 2 operating systems
were used, Fedora 11 and Windows XP 32 bit. This patch adds
the unattended install files for each OS:

 * Fedora 11: Fedora-11.ks
 * Win XP: winnt.bat and winxp32.sif

Attention: Actually those 2 files *should* be templates that
would have the IP replaced by the current Host IP, but
I wanted to get the patchset reviewed before I implement
the templating functionality. For now, just replace your
server IP on the unattended file and it will work fine.

On the final version we will already have answer file
templating implemented appropriately.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
 client/tests/kvm/unattended/Fedora-11.ks |   36 +++++++++++++++
 client/tests/kvm/unattended/winnt.bat    |   12 +++++
 client/tests/kvm/unattended/winxp32.sif  |   72 ++++++++++++++++++++++++++++++
 3 files changed, 120 insertions(+), 0 deletions(-)
 create mode 100644 client/tests/kvm/unattended/Fedora-11.ks
 create mode 100644 client/tests/kvm/unattended/winnt.bat
 create mode 100644 client/tests/kvm/unattended/winxp32.sif

diff --git a/client/tests/kvm/unattended/Fedora-11.ks b/client/tests/kvm/unattended/Fedora-11.ks
new file mode 100644
index 0000000..3bfa355
--- /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 = ('192.168.1.3', 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..59aa2b6
--- /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..2bc62b2
--- /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=MC938-F98CQ-3HHB6-2MYC9-KQJ8G
+    FullName="Lucas Meneghel Rodrigues"
+    OrgName="Red Hat"
+    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 192.168.1.4"
+
+[Display]
+    Xresolution=1024
+    YResolution=768
+
-- 
1.6.2.5


  reply	other threads:[~2009-08-03 22:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-03 22:38 KVM test: Unattended install support Lucas Meneghel Rodrigues
2009-08-03 22:38 ` [PATCH 1/6] KVM test: Added floppy and tftp options to qemu command Lucas Meneghel Rodrigues
2009-08-03 22:38   ` [PATCH 2/6] KVM test: Introducing unattended install subtest Lucas Meneghel Rodrigues
2009-08-03 22:38     ` Lucas Meneghel Rodrigues [this message]
2009-08-03 22:38       ` [PATCH 4/6] KVM test: Add unattended install script Lucas Meneghel Rodrigues
2009-08-03 22:38         ` [PATCH 5/6] KVM test: Utility to make windows guests ACK end of install Lucas Meneghel Rodrigues
2009-08-03 22:38           ` [PATCH 6/6] KVM test: kvm_tests.cfg.sample changes for unattended Lucas Meneghel Rodrigues
2009-10-06  1:03 [PATCH 1/6] KVM test: Added floppy and tftp options to qemu command Lucas Meneghel Rodrigues
2009-10-06  1:03 ` [PATCH 2/6] KVM test: Introducing unattended install subtest Lucas Meneghel Rodrigues
2009-10-06  1:03   ` [PATCH 3/6] KVM test: Add unattended install files for F11 and WinXP Lucas Meneghel Rodrigues
2009-10-09 20:40 [PATCH 1/6] KVM test: Added floppy and tftp options to qemu command Lucas Meneghel Rodrigues
2009-10-09 20:40 ` [PATCH 2/6] KVM test: Introducing unattended install subtest Lucas Meneghel Rodrigues
2009-10-09 20:40   ` [PATCH 3/6] KVM test: Add unattended install files for F11 and WinXP Lucas Meneghel Rodrigues

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1249339134-5600-4-git-send-email-lmr@redhat.com \
    --to=lmr@redhat.com \
    --cc=autotest@test.kernel.org \
    --cc=dhuff@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.