From patchwork Wed Jul 15 09:12:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yolkfull Chow X-Patchwork-Id: 35665 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6F9DG1i003713 for ; Wed, 15 Jul 2009 09:13:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753500AbZGOJMb (ORCPT ); Wed, 15 Jul 2009 05:12:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753484AbZGOJMb (ORCPT ); Wed, 15 Jul 2009 05:12:31 -0400 Received: from mx2.redhat.com ([66.187.237.31]:57233 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753453AbZGOJMa (ORCPT ); Wed, 15 Jul 2009 05:12:30 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6F9CTlW010351; Wed, 15 Jul 2009 05:12:29 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n6F9CSZ9022114; Wed, 15 Jul 2009 05:12:29 -0400 Received: from localhost.localdomain (dhcp-66-70-57.nay.redhat.com [10.66.70.57]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n6F9CPpP031551; Wed, 15 Jul 2009 05:12:26 -0400 From: Yolkfull Chow To: kvm@vger.kernel.org Cc: autotest@test.kernel.org, jasowang@redhat.com, Yolkfull Chow Subject: [PATCH] Assign an UUID for each VM in kvm command line Date: Wed, 15 Jul 2009 17:12:29 +0800 Message-Id: <1247649149-28353-1-git-send-email-yzhou@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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 --- 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