[PATCH 2/2] KVM test: guest-os.cfg: Introduce Ubuntu 11.04 server variant

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add a Ubuntu 11.04 server variant, with unattended install set.
With this, it's possible to install the latest Ubuntu server
(as of the time of this patch). A preseed file comes together.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@xxxxxxxxxx>
---
 client/tests/kvm/guest-os.cfg.sample             |   34 ++++++++++++++----
 client/tests/kvm/unattended/Ubuntu-11-04.preseed |   42 ++++++++++++++++++++++
 2 files changed, 69 insertions(+), 7 deletions(-)
 create mode 100644 client/tests/kvm/unattended/Ubuntu-11-04.preseed

diff --git a/client/tests/kvm/guest-os.cfg.sample b/client/tests/kvm/guest-os.cfg.sample
index 17d6114..f7d5a98 100644
--- a/client/tests/kvm/guest-os.cfg.sample
+++ b/client/tests/kvm/guest-os.cfg.sample
@@ -906,29 +906,35 @@ variants:
                             md5sum_cd1 = d2e10420f3689faa49a004b60fb396b7
                             md5sum_1m_cd1 = f7f67b5da46923a9f01da8a2b6909654
 
-            - @Ubuntu:
+            - Ubuntu:
                 shell_prompt = "^root@.*[\#\$]\s*$"
+                password = 12345678
+                image_name = ubuntu
+                unattended_install:
+                    kernel = linux
+                    initrd = initrd
+                    wait_no_ack = yes
 
                 variants:
-                    - Ubuntu-6.10-32:
+                    - 6.10-32:
                         only install
-                        image_name = ubuntu-6.10-32
+                        image_name += -6.10-32
                         steps = steps/Ubuntu-6.10-32.steps
                         cdrom_cd1 = isos/linux/ubuntu-6.10-desktop-i386.iso
                         md5sum_cd1 = 17fb825641571ce5888a718329efd016
                         md5sum_1m_cd1 = 7531d0a84e7451d17c5d976f1c3f8509
 
-                    - Ubuntu-8.04-32:
+                    - 8.04-32:
                         skip = yes
-                        image_name = ubuntu-8.04-32
+                        image_name += -8.04-32
                         install:
                             steps = steps/Ubuntu-8.04-32.steps
                             cdrom_cd1 = isos/linux/ubuntu-8.04.1-desktop-i386.iso
                         setup:
                             steps = steps/Ubuntu-8.04-32-setupssh.steps
 
-                    - Ubuntu-8.10-server-32:
-                        image_name = ubuntu-8.10-server-32
+                    - 8.10-server-32:
+                        image_name += -8.10-server-32
                         install:
                             steps = steps/Ubuntu-8.10-server-32.steps
                             cdrom_cd1 = isos/linux/ubuntu-8.10-server-i386.iso
@@ -937,6 +943,20 @@ variants:
                         setup:
                             steps = steps/Ubuntu-8.10-server-32-gcc.steps
 
+                    - 11.04-server-64:
+                        image_name += -11.04-server-64
+                        unattended_install:
+                            extra_params += " --append 'console=ttyS0,115200 console=tty0'"
+                            kernel = images/ubuntu-server-11-04-64/vmlinuz
+                            initrd = images/ubuntu-server-11-04-64/initrd.gz
+                            boot_path = install
+                        unattended_install.cdrom:
+                            unattended_file = unattended/Ubuntu-11-04.preseed
+                            cdrom_cd1 = isos/linux/ubuntu-11.04-server-amd64.iso
+                            md5sum_cd1 = 355ca2417522cb4a77e0295bf45c5cd5
+                            md5sum_1m_cd1 = 65b1514744bf99e88f6228e9b6f152a8
+
+
             - DSL-4.2.5:
                 no setup dbench bonnie linux_s3
                 image_name = dsl-4.2.5
diff --git a/client/tests/kvm/unattended/Ubuntu-11-04.preseed b/client/tests/kvm/unattended/Ubuntu-11-04.preseed
new file mode 100644
index 0000000..b4bec84
--- /dev/null
+++ b/client/tests/kvm/unattended/Ubuntu-11-04.preseed
@@ -0,0 +1,42 @@
+debconf debconf/priority string critical
+unknown debconf/priority string critical
+d-i debconf/priority string critical
+d-i debian-installer/locale string en_US
+d-i console-tools/archs select at
+d-i console-keymaps-at/keymap select us
+
+d-i netcfg/choose_interface select auto
+d-i netcfg/get_hostname string unassigned-hostname
+d-i netcfg/get_domain string unassigned-domain
+d-i netcfg/wireless_wep string
+
+d-i clock-setup/utc boolean true
+d-i time/zone string US/Eastern
+
+d-i partman-auto/method string regular
+d-i partman-auto/choose_recipe select home
+d-i partman/confirm_write_new_label boolean true
+d-i partman/choose_partition select finish
+d-i partman/confirm boolean true
+d-i partman/confirm_nooverwrite boolean true
+
+d-i passwd/root-login boolean true
+d-i passwd/make-user boolean false
+d-i passwd/root-password password 12345678
+d-i passwd/root-password-again password 12345678
+
+tasksel tasksel/first multiselect standard
+
+d-i pkgsel/include string openssh-server build-essential
+
+d-i grub-installer/only_debian boolean true
+d-i grub-installer/with_other_os boolean true
+
+d-i apt-setup/security_host string
+base-config apt-setup/security-updates boolean false
+
+ubiquity ubiquity/summary note
+ubiquity ubiquity/reboot boolean true
+
+d-i finish-install/reboot_in_progress note
+d-i debian-installer/exit/poweroff boolean true
-- 
1.7.6.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux