JeOS stands for "Just enough Operating System",
and it's very popular on today's cloud talk.

This is an ongoing work, we still need to:

 * Create arm images, as well as ppc64 ones
 * Make more extensive test of the images
 * Provide a download facility for the images
   on get_started.py
 * Make them the default test run for the
   virt tests

In order to provide a standard minimal guest
for use in virt tests, that can be easily
downloaded and built, we used the project
buildroot (http://buildroot.uclibc.org/) to
produce a set of images and kernels. Add these
images and kernels to the sample virt test
configuration files. The initial files can
be seen on:

http://lmr.fedorapeople.org/jeos_images/jeos_x86_64.tar.bz2

The tarball contains instructions on how to
use it outside of autotest.

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
Signed-off-by: Cleber Rosa <[email protected]>
---
 client/tests/kvm/tests-shared.cfg.sample |    2 ++
 client/tests/kvm/tests.cfg.sample        |   18 +++++++++++++++++-
 client/virt/guest-hw.cfg.sample          |    5 +++++
 client/virt/guest-os.cfg.sample          |   19 +++++++++++++++++++
 4 files changed, 43 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/tests-shared.cfg.sample 
b/client/tests/kvm/tests-shared.cfg.sample
index 9de3b93..8fc07e4 100644
--- a/client/tests/kvm/tests-shared.cfg.sample
+++ b/client/tests/kvm/tests-shared.cfg.sample
@@ -33,6 +33,8 @@ floppy ?<= /tmp/kvm_autotest_root/
 Linux..unattended_install:
     kernel ?<= /tmp/kvm_autotest_root/
     initrd ?<= /tmp/kvm_autotest_root/
+Linux..JeOS:
+    kernel ?<= /tmp/kvm_autotest_root/
 
 # You may provide information about the DTM server for WHQL tests here:
 #whql:
diff --git a/client/tests/kvm/tests.cfg.sample 
b/client/tests/kvm/tests.cfg.sample
index c91a58b..6346fe7 100644
--- a/client/tests/kvm/tests.cfg.sample
+++ b/client/tests/kvm/tests.cfg.sample
@@ -128,5 +128,21 @@ variants:
         only CustomGuestLinux
         only migrate
 
+    - @qemu_intel_64_jeos:
+        mem = 256
+        qemu_binary = /usr/bin/qemu-kvm
+        qemu_img_binary = /usr/bin/qemu-img
+        qemu_io_binary = /usr/bin/qemu-io
+        only buildroot
+        only e1000
+        only ide
+        only smp2
+        only no_9p_export
+        only no_pci_assignable
+        only smallpages
+        only JeOS.intel_64
+        # Tests supported so far
+        only boot, reboot, migrate.default.tcp, migrate.default.unix, 
migrate.default.exec, autotest.sleeptest, shutdown
+
 # Choose your test list from the testsets defined
-only qemu_kvm_f16_quick
+only qemu_intel_64_jeos
diff --git a/client/virt/guest-hw.cfg.sample b/client/virt/guest-hw.cfg.sample
index f63bb20..203487c 100644
--- a/client/virt/guest-hw.cfg.sample
+++ b/client/virt/guest-hw.cfg.sample
@@ -36,6 +36,8 @@ variants:
             # Device selection for the NDISTest server machine
             dp_regex_servermsgdev = VirtIO Ethernet Adapter$
             dp_regex_serversupportdev = VirtIO Ethernet Adapter #2$
+    - smc91c111:
+        nic_model = smc91c111
     -xennet:
         # placeholder
 
@@ -81,6 +83,9 @@ variants:
     - qed:
         no ioquit
         image_format = qed
+    # Buildroot images have to be used as is
+    - buildroot:
+        image_format =
 
 variants:
     - @no_pci_assignable:
diff --git a/client/virt/guest-os.cfg.sample b/client/virt/guest-os.cfg.sample
index 5a9b30f..73f1f62 100644
--- a/client/virt/guest-os.cfg.sample
+++ b/client/virt/guest-os.cfg.sample
@@ -99,6 +99,25 @@ variants:
                 #image_name = /dev/mapper/vg_some_label
                 #image_type_raw = yes
 
+            - JeOS:
+                username = root
+                password = 123456
+                usbs =
+                usb(_.*)? ?= ""
+                shell_prompt = "#"
+                shutdown_command = poweroff
+                reboot_command = reboot
+                migration_bg_check_command = ps -ef | grep -v grep | grep 
tcpdump
+                migration_bg_kill_command = killall tcpdump
+                variants:
+                    - intel_64:
+                        kernel = images/jeos_x86_64/bzImage
+                        image_name = jeos_x86_64/rootfs.ext2
+                        kernel_params += ' root=/dev/sda console=tty0 
console=ttyS0,115200'
+                        migrate..with_file_transfer:
+                            file_size = 100
+                            timeout = 25
+
             - Fedora:
                 no setup
                 shell_prompt = "^\[.*\][\#\$]\s*$"
-- 
1.7.7.6

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to