diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-05-18 10:28:18 +0200 |
---|---|---|
committer | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-05-18 10:28:18 +0200 |
commit | 2e6b73da53ae530bdd0bda22a52824bc5d9f94bf (patch) | |
tree | 4ce46aea700aedf2d682aee63851a21e55b1f9fb /src | |
parent | 621fb7a786c724609690c480650b8a4ac01befa7 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/virtual/ogOperations.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |