public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Assign an UUID for each VM in kvm command line
@ 2009-07-15  9:12 Yolkfull Chow
  2009-07-15 13:36 ` [Autotest] " Dor Laor
  0 siblings, 1 reply; 5+ messages in thread
From: Yolkfull Chow @ 2009-07-15  9:12 UTC (permalink / raw)
  To: kvm; +Cc: autotest, jasowang, Yolkfull Chow

Would submit this patch which is from our internal kvm-autotest patches submitted by Jason.
So that we could go on test case about parameters verification(UUID, DMI data etc).

Signed-off-by: Yolkfull Chow <yzhou@redhat.com>
---
 client/tests/kvm/kvm_vm.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 503f636..68cc235 100644
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -287,6 +287,10 @@ class VM:
         elif params.get("display") == "nographic":
             qemu_cmd += " -nographic"
 
+        uuid = os.popen("cat /proc/sys/kernel/random/uuid").readline().strip()
+        if uuid:
+            qemu_cmd += " -uuid %s" % uuid
+
         return qemu_cmd
 
 
-- 
1.6.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-16  8:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-15  9:12 [PATCH] Assign an UUID for each VM in kvm command line Yolkfull Chow
2009-07-15 13:36 ` [Autotest] " Dor Laor
2009-07-16  2:42   ` Yolkfull Chow
2009-07-16  4:11     ` sudhir kumar
2009-07-16  8:27       ` Michael Goldish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox