From patchwork Mon Jun 6 08:16:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 851152 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p568Gfaj022748 for ; Mon, 6 Jun 2011 08:16:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756858Ab1FFIQX (ORCPT ); Mon, 6 Jun 2011 04:16:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27083 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755642Ab1FFIQU (ORCPT ); Mon, 6 Jun 2011 04:16:20 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p568GJFd024446 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 6 Jun 2011 04:16:19 -0400 Received: from rincewind.home.kraxel.org (vpn2-8-52.ams2.redhat.com [10.36.8.52]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p568GHpE019255; Mon, 6 Jun 2011 04:16:18 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 3C120425AC; Mon, 6 Jun 2011 10:16:16 +0200 (CEST) From: Gerd Hoffmann To: kvm@vger.kernel.org, autotest@test.kernel.org Cc: Gerd Hoffmann Subject: [AUTOTEST PATCH 2/7] Use nodefaults Date: Mon, 6 Jun 2011 10:16:10 +0200 Message-Id: <1307348175-27830-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1307348175-27830-1-git-send-email-kraxel@redhat.com> References: <1307348175-27830-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 06 Jun 2011 08:16:41 +0000 (UTC) Use -nodefaults for qemu when supported. Also explicitly add -vga std then. Without this qemu creates a ide cdrom drive even if you don't ask for it, which disturbs installation from ahci/scsi/usb cdroms drives. Signed-off-by: Gerd Hoffmann --- client/virt/kvm_vm.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py index c9bb273..af24272 100644 --- a/client/virt/kvm_vm.py +++ b/client/virt/kvm_vm.py @@ -372,6 +372,10 @@ class VM(virt_vm.BaseVM): qemu_cmd += qemu_binary # Add the VM's name qemu_cmd += add_name(help, name) + # no automagic devices please + if has_option(help,"nodefaults"): + qemu_cmd += " -nodefaults" + qemu_cmd += " -vga std" # Add monitors for monitor_name in params.objects("monitors"): monitor_params = params.object_params(monitor_name)