feat: new vm
All checks were successful
build / image (push) Successful in 2m6s

This commit is contained in:
Antoine Pelletier 2026-11-07 11:41:54 +01:00
parent 1f0a037723
commit ff485aadc3
2 changed files with 12 additions and 1 deletions

View file

@ -4,7 +4,7 @@ A page to start and stop the VMs of the server, one at a time. **Rust** backend
(axum + sqlx + aide) driving **libvirt**, serving a **Vue 3** frontend (TypeScript +
vue-query + shadcn-vue), on **PostgreSQL** with **dbmate** migrations.
The VMs (`win11`, `arch-hyprland` and `cs-477`) share the same hardware and may never run
The VMs (`win11`, `arch-hyprland`, `cs-477` and `cs477-project`) share the same hardware and may never run
together: starting one while the other is up asks first, shuts that one down, waits
for it to be really off, and only then boots the wanted one. The state is read from
libvirt on every request, so a VM shut down from inside the guest shows up as

View file

@ -0,0 +1,11 @@
-- migrate:up
-- Fourth VM: the CS-477 project guest. Like the others it is configuration, not
-- demo data, so a fresh deployment shows it without manual seeding.
--
-- `domain` must match the libvirt domain name exactly (`virsh list --all`).
INSERT INTO vms ("domain", "display_name", "icon", "position") VALUES
('cs477-project', 'CS-477 Project', 'server', 4)
ON CONFLICT ("domain") DO NOTHING;
-- migrate:down
DELETE FROM vms WHERE "domain" = 'cs477-project';