mirror of https://git.48k.eu/ogclient
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
parent
621fb7a786
commit
2e6b73da53
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue