diff mbox

KVM test : Adding RHEL 6 to the list of guests

Message ID 1289486363-6078-1-git-send-email-lmr@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Meneghel Rodrigues Nov. 11, 2010, 2:39 p.m. UTC
None
diff mbox

Patch

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()