]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
tests/vm: move vga setup
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 23 Mar 2020 16:15:05 +0000 (16:15 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 27 Mar 2020 13:43:20 +0000 (13:43 +0000)
Move '-device VGA' from basevm.py to the guests, so they have
the chance to opt out and run without display device.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200310083218.26355-3-kraxel@redhat.com>
Message-Id: <20200323161514.23952-3-alex.bennee@linaro.org>

tests/vm/basevm.py
tests/vm/fedora
tests/vm/freebsd
tests/vm/netbsd
tests/vm/openbsd
tests/vm/ubuntu.i386

index c53fd354d9557374530ea4fe2f1c673918dfaed2..cffe7c4600ed1af87564be42d5f53420c9e8f4fc 100644 (file)
@@ -179,7 +179,6 @@ class BaseVM(object):
 
     def boot(self, img, extra_args=[]):
         args = self._args + [
-            "-device", "VGA",
             "-drive", "file=%s,if=none,id=drive0,cache=writeback" % img,
             "-device", "virtio-blk,drive=drive0,bootindex=0"]
         args += self._data_args + extra_args
index 4843b4175e0791f0efcba1aeaa58dc321f9d2c6c..bd9c6cf295c13c391ff11bf4d9ca046b94f2ae11 100755 (executable)
@@ -82,6 +82,7 @@ class FedoraVM(basevm.BaseVM):
         self.boot(img_tmp, extra_args = [
             "-bios", "pc-bios/bios-256k.bin",
             "-machine", "graphics=off",
+            "-device", "VGA",
             "-cdrom", iso
         ])
         self.console_init(300)
index 86770878b67b3d8287698ac08aae728ca054c1cb..58166766d9154d04dbfc0ede994b7fb6cbe842c5 100755 (executable)
@@ -92,6 +92,7 @@ class FreeBSDVM(basevm.BaseVM):
         self.boot(img_tmp, extra_args = [
             "-bios", "pc-bios/bios-256k.bin",
             "-machine", "graphics=off",
+            "-device", "VGA",
             "-cdrom", iso
         ])
         self.console_init()
index 55590f4601520b983cf6b25531603a42ca654e6a..f3257bc245a3767d2c5c1848d2105642131b9d32 100755 (executable)
@@ -86,6 +86,7 @@ class NetBSDVM(basevm.BaseVM):
         self.boot(img_tmp, extra_args = [
             "-bios", "pc-bios/bios-256k.bin",
             "-machine", "graphics=off",
+            "-device", "VGA",
             "-cdrom", iso
         ])
         self.console_init()
index ab6abbedab575bf4cae193963b31d56b9274e799..0b705f494527b7351eb020561652fdf9d6ebc3e5 100755 (executable)
@@ -82,6 +82,7 @@ class OpenBSDVM(basevm.BaseVM):
         self.boot(img_tmp, extra_args = [
             "-bios", "pc-bios/bios-256k.bin",
             "-machine", "graphics=off",
+            "-device", "VGA",
             "-cdrom", iso
         ])
         self.console_init()
index 3266038fbde503a2c40d6857278d024d778e67d1..157077533532f1c5f49d2b6accb9429cc05f66ac 100755 (executable)
@@ -36,7 +36,10 @@ class UbuntuX86VM(basevm.BaseVM):
         img_tmp = img + ".tmp"
         subprocess.check_call(["cp", "-f", cimg, img_tmp])
         self.exec_qemu_img("resize", img_tmp, "50G")
-        self.boot(img_tmp, extra_args = ["-cdrom", self.gen_cloud_init_iso()])
+        self.boot(img_tmp, extra_args = [
+            "-device", "VGA",
+            "-cdrom", self.gen_cloud_init_iso()
+        ])
         self.wait_ssh()
         self.ssh_root_check("touch /etc/cloud/cloud-init.disabled")
         self.ssh_root_check("apt-get update")