From 2e6b73da53ae530bdd0bda22a52824bc5d9f94bf Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Mon, 18 May 2020 10:28:18 +0200 Subject: Use virtio-vga to run VMs This is the device that has the best empirical performance right now and it seems like it is where most of the qemu development is directed towards for the future. --- src/virtual/ogOperations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/virtual/ogOperations.py') diff --git a/src/virtual/ogOperations.py b/src/virtual/ogOperations.py index 6ff9e0b..597ca58 100644 --- a/src/virtual/ogOperations.py +++ b/src/virtual/ogOperations.py @@ -24,7 +24,7 @@ import time class OgVM: DEFAULT_CPU = 'host' - DEFAULT_VGA = 'VGA' + DEFAULT_VGA = 'virtio-vga' DEFAULT_QMP_IP = 'localhost' DEFAULT_QMP_PORT = 4444 @@ -66,7 +66,7 @@ class OgVM: cmd = (f'qemu-system-x86_64 -accel kvm -cpu {self.cpu} -smp 4 ' f'-drive file={self.partition_path},if=virtio ' f'-qmp tcp:localhost:4444,server,nowait ' - f'-device {self.vga},vgamem_mb=128 -display gtk ' + f'-device {self.vga} -display gtk ' f'-m {self.mem}M -boot c -full-screen {vnc_str}') self.proc = subprocess.Popen([cmd], shell=True) -- cgit v1.2.3-18-g5258