[AUTOTEST PATCH 2/7] Use nodefaults

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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)
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux