kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Specify the system UUID for VM
@ 2009-07-16 10:26 Yolkfull Chow
  2009-07-16 11:54 ` Yolkfull Chow
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Yolkfull Chow @ 2009-07-16 10:26 UTC (permalink / raw)
  To: kvm; +Cc: autotest, Yolkfull Chow


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

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 503f636..895049e 100644
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -113,6 +113,13 @@ class VM:
         self.qemu_path = qemu_path
         self.image_dir = image_dir
         self.iso_dir = iso_dir
+        
+        if params.get("uuid"):
+            if params.get("uuid") == "random":
+                uuid = os.popen("cat /proc/sys/kernel/random/uuid").readline()
+                self.uuid = uuid.strip()
+            else:
+                self.uuid = params.get("uuid")
 
 
         # Find available monitor filename
@@ -374,6 +381,10 @@ class VM:
             # Make qemu command
             qemu_command = self.make_qemu_command()
 
+            # Specify the system UUID
+            if self.uuid:
+                qemu_command += " -uuid %s" % self.uuid
+
             # Is this VM supposed to accept incoming migrations?
             if for_migration:
                 # Find available migration port
-- 
1.6.2.5


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

end of thread, other threads:[~2009-07-29 13:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-16 10:26 [PATCH] Specify the system UUID for VM Yolkfull Chow
2009-07-16 11:54 ` Yolkfull Chow
2009-07-17 15:17 ` [PATCH] Add UUID option into kvm command line Yolkfull Chow
2009-07-20 12:43   ` Lucas Meneghel Rodrigues
2009-07-29 12:18 ` [PATCH] Specify the system UUID for VM Avi Kivity
2009-07-29 12:36   ` Lucas Meneghel Rodrigues
2009-07-29 12:46     ` Lucas Meneghel Rodrigues
2009-07-29 12:46     ` [Autotest] " Michael Goldish
2009-07-29 12:48       ` Lucas Meneghel Rodrigues
2009-07-29 13:03       ` Avi Kivity
2009-07-29 13:06   ` Yolkfull Chow
2009-07-29 13:25     ` Yolkfull Chow

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