Files
reims-vgpu/crates
Anees Iqbal c2be12ca83 🆕 Bring the VMs an older reims-ctl made up to date after an update
After an update, an x86-64 VM made by an older reims-ctl stayed on apple-gfx
with the ported drivers in its OpenCore image, and its user had to make the
image again, drop those drivers and switch its graphics by hand. Its settings
name no graphics: master's reims-ctl never wrote them.

reims-ctl now keeps a record of the migrations it ran, migrations.toml in its
config directory. Its first run after an update (the restart from the interface,
or any later command) runs migration 1 once, on each stopped x86-64 VM whose
settings name no graphics: it saves reims-vgpu as the VM's graphics where the
macOS on its disk runs the device's drivers (macOS 26.4 or later), and apple-gfx
where it doesn't, then makes the OpenCore image again for them, presenting the
same Mac, and keeps the old image beside it as <image>.pre-migration-1. Each
VM gets one line, which the interface shows first and a command writes to
stderr, after a line saying reims-ctl is updated. A running VM is migrated at
its next start. A VM that can't be migrated stays as it was, and its line says
why and names the manual command. A VM whose settings name graphics, set by
its user or by a reims-ctl that knew the device, keeps them.

A start of a VM on reims-vgpu whose image holds other builds of the device's
kexts than this reims-ctl carries now makes the image again with these, so a
later update of the kexts reaches the guest without a manual step.

Measured on um870: master's reims-ctl (1fe0acb68) made two VMs on copies of a
26.7.2 disk, one patched to read as 15.7.2, both on apple-gfx with the ported
kexts. After the update, reims-ctl list moved the first to reims-vgpu and kept
the second on apple-gfx, both images made again without the ported kexts. The
first then booted to its desktop on the 780M with the five kexts loaded and no
fatal line.
2026-11-07 11:10:40 -08:00
..