From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Huff Subject: [PATCH] Added floppy and tftp options to qemu command Date: Thu, 18 Jun 2009 17:50:56 -0400 Message-ID: <1245361860-26726-2-git-send-email-dhuff@redhat.com> References: <1245361860-26726-1-git-send-email-dhuff@redhat.com> Cc: David Huff To: kvm@vger.kernel.org Return-path: Received: from mx2.redhat.com ([66.187.237.31]:59637 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753162AbZFRVvc (ORCPT ); Thu, 18 Jun 2009 17:51:32 -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 n5ILpZnY025993 for ; Thu, 18 Jun 2009 17:51:35 -0400 In-Reply-To: <1245361860-26726-1-git-send-email-dhuff@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: This allows you to not specify the full path in the config file, appends to the image dir --- client/tests/kvm/kvm_vm.py | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index 5028161..621f0ca 100644 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -265,6 +265,18 @@ class VM: if iso: iso = os.path.join(iso_dir, iso) qemu_cmd += " -cdrom %s" % iso + + # we may want to add {floppy_otps} parameter for -fda {fat:floppy:}/path/ + # however vvfat is not usually recommended + floppy = params.get("floppy") + if floppy: + floppy = os.path.join(image_dir, floppy) + qemu_cmd += " -fda %s" % floppy + + tftp = params.get("tftp") + if tftp: + tftp = os.path.join(image_dir, tftp) + qemu_cmd += " -tftp %s" % tftp extra_params = params.get("extra_params") if extra_params: -- 1.6.0.6