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.
more_events
Roberto Hueso Gómez 2020-05-18 10:28:18 +02:00
parent 621fb7a786
commit 2e6b73da53
1 changed files with 2 additions and 2 deletions

View File

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