diff mbox

[AUTOTEST,2/7] Use nodefaults

Message ID 1307348175-27830-3-git-send-email-kraxel@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gerd Hoffmann June 6, 2011, 8:16 a.m. 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 <kraxel@redhat.com>
---
 client/virt/kvm_vm.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff mbox

Patch

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)