Request an invite
Docs menu

Displays and 3D in Linux

With a display, a Linux machine can use your Mac's GPU for 3D, draw at Retina resolution, and show more than one display.

Draw sharp on a Retina screen

Without Retina, a Linux display draws one pixel per point, which looks large and soft in a Retina window. With Retina on, it draws two.

To turn it on, choose Machine > Machine Settings, click Display, then turn on Retina. In Terminal, resize at a scale of 2:

sh
osmates vm resize dev 2880x1800 --scale 2

At scale 2, the height must be even. Widths go in steps of 8, up to 4088 by 4095 pixels.

Desktop With Retina on
Hyprland in Omarchy Draws at twice the size. Omarchy starts with Retina on.
GNOME Draws at twice the size with 3D acceleration on, and stays small without it
Xfce Keeps its own scale and looks small. Debian 13 Desktop starts with Retina off.

Use 3D acceleration

With 3D acceleration, programs draw on your Mac's GPU through Mesa's virgl driver. They get OpenGL ES 3.0 and desktop OpenGL 2.1. Linux 7.2 with Mesa 26.2.4 or later also gets Vulkan 1.4, through Mesa's Venus driver. Debian 13 has neither and stays on OpenGL.

Debian 13 Desktop and Omarchy start with it on. For another machine with a display:

  1. Shut the machine down.
  2. Choose Machine > Machine Settings, then click Display.
  3. Turn on 3D Acceleration, then start the machine. In the guest, eglinfo -B names virgl as the renderer.

In Terminal, run osmates vm set dev --3d. --no-3d returns to the software display at the next start, as the machine does if the GPU can't start. To create a machine with 3D, add a display:

sh
osmates vm create box --display 1600x900 --3d

For a server on the OSMates engine, add --engine hypervisor too.

Add Vulkan to Omarchy

Omarchy doesn't install Mesa's Venus driver. In a terminal in the guest, update Omarchy, which refuses pacman -Syu, then install the driver:

sh
omarchy update
sudo pacman -S --needed vulkan-virtio vulkan-tools

vulkaninfo --summary then names a Venus device. Vulkan programs and GTK 4 apps started after that draw on your Mac's GPU.

Use more than one display

A Linux machine on the OSMates engine has up to 4 displays. On Apple Virtualization it has one.

  1. Shut the machine down.
  2. Choose Machine > Machine Settings, then click Display.
  3. Choose a number in Displays.

In Terminal, run osmates vm set dev --displays 2. Each display opens in its own window once Linux draws on it. Type and point in the first window.

Limits

With 3D acceleration on Apple Virtualization OSMates engine
Keyboard and pointer Once the guest agent runs From the firmware's screen on
Boot menu Takes no keys Works
  • A machine with 3D on can't suspend or keep its memory in a snapshot. Automatic snapshots save its disks only.
  • Memory saved while 3D was off resumes on the software display until the next restart.
  • Desktop OpenGL stops at 2.1. For a program that needs more, set LIBGL_ALWAYS_SOFTWARE=1.
  • To use the boot menu on Apple Virtualization, turn 3D acceleration off first.

Report a problem with this page