How to set the VNC resolution of a QEMU virtual machine

Introduction I last blogged about how to run simple QEMU virtual machines in 2021 in this article . I often use these commands to spawn virtual machines that I only access via SSH, but it was never for their GUI! Now the need arose and the necessary bits were harder to piece together than I expected. Installation I updated the VNC and drive sections for modern QEMU flags compared to the last…