kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: lmr@redhat.com, autotest@test.kernel.org
Cc: kvm@vger.kernel.org
Subject: [PATCH 1/3] KVM test: Add the support of kernel and initrd option for qemu-kvm
Date: Wed, 19 May 2010 17:20:36 +0800	[thread overview]
Message-ID: <20100519092036.13721.59023.stgit@dhcp-91-25.nay.redhat.com> (raw)

"-kernel" option is useful for both unattended installation and the
unittest in /kvm/user/test.

Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 client/tests/kvm/kvm_vm.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index c203e14..2515859 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -288,6 +288,16 @@ class VM:
             tftp = kvm_utils.get_path(root_dir, tftp)
             qemu_cmd += " -tftp %s" % tftp
 
+        kernel = params.get("kernel")
+        if kernel:
+            kernel = kvm_utils.get_path(root_dir, kernel)
+            qemu_cmd += " -kernel %s" % kernel
+        
+        initrd = params.get("initrd")
+        if initrd:
+            initrd = kvm_utils.get_path(root_dir, initrd)
+            qemu_cmd += " -initrd %s" % initrd
+        
         extra_params = params.get("extra_params")
         if extra_params:
             qemu_cmd += " %s" % extra_params


             reply	other threads:[~2010-05-19  9:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-19  9:20 Jason Wang [this message]
2010-05-19  9:20 ` [PATCH 2/3] KVM test: Do not use the hard-coded address during unattended installation Jason Wang
2010-05-26 13:58   ` Lucas Meneghel Rodrigues
2010-05-28  8:20     ` Jason Wang
2010-05-19  9:20 ` [PATCH 3/3] KVM test: Add implementation of network based " Jason Wang
2010-05-27 16:30   ` Lucas Meneghel Rodrigues
  -- strict thread matches above, loose matches on Subject: below --
2010-05-28  8:25 [PATCH 1/3] KVM test: Add the support of kernel and initrd option for qemu-kvm Jason Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100519092036.13721.59023.stgit@dhcp-91-25.nay.redhat.com \
    --to=jasowang@redhat.com \
    --cc=autotest@test.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=lmr@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).