Skip to content

Instantly share code, notes, and snippets.

@G-Ray
Created May 13, 2023 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save G-Ray/07c75e46df9c64ed58a337dd0a2779da to your computer and use it in GitHub Desktop.
Save G-Ray/07c75e46df9c64ed58a337dd0a2779da to your computer and use it in GitHub Desktop.
OSX-KVM-libvirt-resolution

To set a custom resolution > 1920x1080 in a OSX-KVM VM, edit the libvirt xml with:

<video>
  <model type="vga" vram="32768" heads="1" primary="yes">
    <resolution x="3440" y="1440"/>
  </model>
  <alias name="video0"/>
  <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
</video>

You might need to tweak vram size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment