From patchwork Tue Mar 23 14:49:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yogi X-Patchwork-Id: 87649 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2NEnFlG029152 for ; Tue, 23 Mar 2010 14:49:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754170Ab0CWOtK (ORCPT ); Tue, 23 Mar 2010 10:49:10 -0400 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:34383 "EHLO e23smtp08.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754119Ab0CWOtI (ORCPT ); Tue, 23 Mar 2010 10:49:08 -0400 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.31.245]) by e23smtp08.au.ibm.com (8.14.3/8.13.1) with ESMTP id o2NEn5xI025553 for ; Wed, 24 Mar 2010 01:49:05 +1100 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o2NEn5ci1736946 for ; Wed, 24 Mar 2010 01:49:05 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o2NEn4hf003450 for ; Wed, 24 Mar 2010 01:49:04 +1100 Received: from localhost.localdomain ([9.124.158.64]) by d23av02.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id o2NEn1SC003324; Wed, 24 Mar 2010 01:49:03 +1100 From: Yogananth Subramanian To: lmr@redhat.com Cc: anantyog@linux.vnet.ibm.com, autotest@test.kernel.org, kvm@vger.kernel.org Subject: [PATCH] [Autotest] [KVM-AUTOTEST]Opensuse unattended install Date: Tue, 23 Mar 2010 20:19:00 +0530 Message-Id: <1269355740-32004-2-git-send-email-anantyog@linux.vnet.ibm.com> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1269355740-32004-1-git-send-email-anantyog@linux.vnet.ibm.com> References: <1269355740-32004-1-git-send-email-anantyog@linux.vnet.ibm.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 23 Mar 2010 14:49:16 +0000 (UTC) diff --git a/client/tests/kvm/tests/unattended_install.py b/client/tests/kvm/tests/unattended_install.py index 1ddb996..310a353 100644 --- a/client/tests/kvm/tests/unattended_install.py +++ b/client/tests/kvm/tests/unattended_install.py @@ -31,6 +31,7 @@ def run_unattended_install(test, params, env): client.connect(addr) msg = client.recv(1024) if msg == 'done': + time.sleep(10) break except socket.error: pass diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample index 9963a44..3ae0d83 100644 --- a/client/tests/kvm/tests_base.cfg.sample +++ b/client/tests/kvm/tests_base.cfg.sample @@ -343,7 +343,7 @@ variants: pxe_image = "vmlinuz" pxe_initrd = "initrd.img" tftp = "images/tftpboot" - extra_params += " -bootp /pxelinux.0 -boot n" + extra_params += " -bootp /pxelinux.0 -boot cn" kernel_args = "ks=floppy nicdelay=60" variants: @@ -476,32 +476,95 @@ variants: md5sum = 7e9e183dc11b9d39f480238e4e12bb05 md5sum_1m = dc7865a75db665efc86d59bca7c1fe07 - - openSUSE-11.0.32: - no setup dbench bonnie - image_name = openSUSE-11.0-32 - install: - steps = openSUSE-11.0-32.steps - cdrom = linux/openSUSE-11.0-DVD-i386.iso - md5sum = ed6a5b3feb668866df812b1c2aed9d7f - md5sum_1m = c720b30557af758e69de450409516369 - - - openSUSE-11.1.32: - no setup dbench bonnie - image_name = openSUSE-11.1-32 - install: - steps = openSUSE-11.1-32-and-64.steps - cdrom = linux/openSUSE-11.1-DVD-i586.iso - md5sum = 8f51b278c0415be28c5699e465444bd3 - md5sum_1m = b70217417468389083429f81ba7ce2bd - - - openSUSE-11.1.64: - no setup dbench bonnie - image_name = openSUSE-11.1-64 - install: - steps = openSUSE-11.1-32-and-64.steps - cdrom = linux/openSUSE-11.1-DVD-x86_64.iso - md5sum = 2afee1b8a87175e6dee2b8dbbd1ad8e8 - md5sum_1m = 768ca32503ef92c28f2d144f2a87e4d0 + - OpenSUSE: + no setup + shell_prompt = ".*:.*\s#" + unattended_install: + pxe_image = "linux" + pxe_initrd = "initrd" + tftp = "images/tftpboot" + extra_params += " -bootp /pxelinux.0 -boot cn" + kernel_args = "autoyast=floppy" + + variants: + - 11.0.32: + no setup autotest linux_s3 + image_name = openSUSE-11.0-32 + cdrom = linux/openSUSE-11.0-DVD-i386.iso + md5sum = ed6a5b3feb668866df812b1c2aed9d7f + md5sum_1m = c720b30557af758e69de450409516369 + install: + steps = openSUSE-11.0-32.steps + unattended_install: + unattended_file = unattended/OpenSUSE11.xml + tftp = images/sles110-32/tftpboot + floppy = images/sles110-32floppy.img + pxe_dir = boot/i386/loader + + - 11.0.64: + no setup autotest linux_s3 + image_name = openSUSE-11.0-64 + cdrom = linux/openSUSE-11.0-DVD-x86_64.iso + md5sum = 512c8346b0f8eb35f28c4eb96454d391 + md5sum_1m = 661aa4cd031df2f25ea0102318a3f4d1 + unattended_install: + unattended_file = unattended/OpenSUSE11.xml + tftp = images/sles110-64/tftpboot + floppy = images/sles110-64floppy.img + pxe_dir = boot/x86_64/loader + + + - 11.1.32: + no setup autotest linux_s3 + image_name = openSUSE-11.1-32 + cdrom = linux/openSUSE-11.1-DVD-i586.iso + md5sum = 8f51b278c0415be28c5699e465444bd3 + md5sum_1m = b70217417468389083429f81ba7ce2bd + install: + steps=openSUSE-11.1-32-and-64.steps + unattended_install: + unattended_file = unattended/OpenSUSE11.xml + tftp = images/sles111-32/tftpboot + floppy = images/sles111-32floppy.img + pxe_dir = boot/i386/loader + + - 11.1.64: + no setup autotest linux_s3 + image_name = openSUSE-11.1-64 + cdrom = linux/openSUSE-11.1-DVD-x86_64.iso + md5sum = 2afee1b8a87175e6dee2b8dbbd1ad8e8 + md5sum_1m = 768ca32503ef92c28f2d144f2a87e4d0 + install: + steps=openSUSE-11.1-32-and-64.steps + unattended_install: + unattended_file = unattended/OpenSUSE11.xml + tftp = images/sles111-64/tftpboot + floppy = images/sles111-64floppy.img + pxe_dir = boot/x86_64/loader + + - 11.2.32: + no setup autotest linux_s3 + image_name = openSUSE-11.2-32 + cdrom = linux/openSUSE-11.2-DVD-i586.iso + md5sum = 295d713314a30ad017948f0d542c6d92 + md5sum_1m = 1f8767d00acb492be5a5627c834e543f + unattended_install: + unattended_file = unattended/OpenSUSE11.xml + tftp = images/sles112-32/tftpboot + floppy = images/sles112-32floppy.img + pxe_dir = boot/i386/loader + + - 11.2.64: + no setup autotest linux_s3 + image_name = openSUSE-11.2-64 + cdrom = linux/openSUSE-11.2-DVD-x86_64.iso + md5sum = 6a09295e34dc030319d040f67f4742c6 + md5sum_1m = 11fd11d39744450b898f04c371dde2e7 + unattended_install: + unattended_file = unattended/OpenSUSE11.xml + tftp = images/sles112-64/tftpboot + floppy = images/sles112-64floppy.img + pxe_dir = boot/x86_64/loader - @Ubuntu: shell_prompt = "^root@.*[\#\$]\s*$" @@ -546,7 +609,7 @@ variants: pxe_image = "vmlinuz" pxe_initrd = "initrd.img" tftp = "images/tftpboot" - extra_params += " -bootp /pxelinux.0 -boot n" + extra_params += " -bootp /pxelinux.0 -boot cn" kernel_args = "ks=floppy nicdelay=60" variants: diff --git a/client/tests/kvm/unattended/OpenSUSE11.xml b/client/tests/kvm/unattended/OpenSUSE11.xml new file mode 100644 index 0000000..7dd44fa --- /dev/null +++ b/client/tests/kvm/unattended/OpenSUSE11.xml @@ -0,0 +1,251 @@ + + + + + + + hd0 + /dev/vda + + + + true + false + false + false + true + false + false + /boot/message + false + 2 + 8 + + + + processor + + + thermal + + + ata_piix + + + virtio_pci + + + fan + + + jbd + + + ext3 + + + virtio_blk + + + edd + + + grub + + + + + + + false + false + + + + + false + + + none + + + true + true + true + true + false + true + + + + + 33 + x + video + linux + + + 16 + x + dialout + linux + + + + + bios + tty1 tty2 tty3 tty4 tty5 tty6 + + english-us + + + + + + AUTO + + + true + true + + + + dhcp + eth0 + auto + no + + + false + + false + + + + + /dev/vda + + CT_DISK + all + + + + + true + true + 0 + + + true + true + 0 + + + true + true + 0 + + + true + true + 0 + + + + + + + + + + + + + autoyast2-installation + dhcp-client + dhcp-tools + autoyast2-installation + autoyast2-installation + autoyast2-installation + + + apparmor + apparmor_opt + base + console + devel_basis + enhanced_base + enhanced_base_opt + sw_management + yast2_basis + yast2_install_wf + + + + 100 + video,dialout + /home + -1 + /bin/bash + /etc/skel + + + + true + linux + 100 + /home/linux + + -1 + 99999 + 0 + 7 + + /bin/bash + 1000 + $2a$05$bgtKW4IJKSS04W4GdU4ckeZL9yVHZdTmZz6F.gAxw9xItSfmt.zci + linux + + + true + root + 0 + /root + + -1 + 99999 + 0 + 7 + + /bin/bash + 0 + $2a$05$yit2ieOcDslJrkEqLo8D3ej1ZNWNX79iAaT885W.aDTZ581ZwBD8S + root + + +