From patchwork Thu Nov 11 14:39:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 317422 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oABEdi4s013863 for ; Thu, 11 Nov 2010 14:39:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756027Ab0KKOjl (ORCPT ); Thu, 11 Nov 2010 09:39:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47074 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755386Ab0KKOjl (ORCPT ); Thu, 11 Nov 2010 09:39:41 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oABEdR4u031410 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 11 Nov 2010 09:39:28 -0500 Received: from freedom.redhat.com (vpn-10-156.rdu.redhat.com [10.11.10.156]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oABEdP6L025021; Thu, 11 Nov 2010 09:39:26 -0500 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues , Pradeep Kumar Subject: [PATCH] KVM test : Adding RHEL 6 to the list of guests Date: Thu, 11 Nov 2010 12:39:23 -0200 Message-Id: <1289486363-6078-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 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 (demeter1.kernel.org [140.211.167.41]); Thu, 11 Nov 2010 14:39:44 +0000 (UTC) diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample index 07328df..07b6015 100644 --- a/client/tests/kvm/tests_base.cfg.sample +++ b/client/tests/kvm/tests_base.cfg.sample @@ -1334,6 +1334,30 @@ variants: #floppy = images/rhel55-64/ks.vfd cdrom_unattended = images/rhel55-64/ks.iso + - 6.0.i386: + no setup + image_name = rhel6-32 + cdrom_cd1 = linux/RHEL-6.0-i386-DVD.iso + md5sum = 291d234c93442405972689b4b41c14bc + md5sum_1m = ee2cc3d3babe91a1d581a07099c4318b + unattended_install.cdrom: + unattended_file = unattended/RHEL-6-series.ks + tftp = images/rhel60-32/tftpboot + #floppy = images/rhel60-32/ks.vfd + cdrom_unattended = images/rhel60-32/ks.iso + + - 6.0.x86_64: + no setup + image_name = rhel6-64 + cdrom_cd1 = linux/RHEL-6.0-x86_64-DVD.iso + md5sum = f7141396c6a19399d63e8c195354317d + md5sum_1m = b060eeef63e2c8700db54ae02056e80c + unattended_install.cdrom: + unattended_file = unattended/RHEL-6-series.ks + tftp = images/rhel60-64/tftpboot + #floppy = images/rhel60-64/ks.vfd + cdrom_unattended = images/rhel60-64/ks.iso + # Windows section - @Windows: @@ -1930,7 +1954,7 @@ variants: virtio_net|virtio_blk|e1000|balloon_check: - only Fedora.11 Fedora.12 Fedora.13 RHEL.5 OpenSUSE.11 SLES.11 Ubuntu-8.10-server + only Fedora.11 Fedora.12 Fedora.13 RHEL.5 RHEL.6 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 kdump: diff --git a/client/tests/kvm/unattended/RHEL-6-series.ks b/client/tests/kvm/unattended/RHEL-6-series.ks new file mode 100644 index 0000000..3ee84f1 --- /dev/null +++ b/client/tests/kvm/unattended/RHEL-6-series.ks @@ -0,0 +1,37 @@ +install +KVM_TEST_MEDIUM +text +reboot +lang en_US.UTF-8 +keyboard us +key --skip +network --bootproto dhcp +rootpw 123456 +firewall --enabled --ssh +selinux --enforcing +timezone --utc America/New_York +firstboot --disable +bootloader --location=mbr --append="console=tty0 console=ttyS0,115200" +zerombr +clearpart --all --initlabel +autopart +reboot + +%packages +@base +@development-libs +@development-tools +kexec-tools + +%post --interpreter /usr/bin/python +import socket, os +os.system('dhclient') +os.system('chkconfig sshd on') +os.system('iptables -F') +os.system('echo 0 > /selinux/enforce') +server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +server.bind(('', 12323)) +server.listen(1) +(client, addr) = server.accept() +client.send("done") +client.close()