feat(vm): Medien pro VM (disk/floppy/iso) + ARIA-Urteilswissen

vm_register + Registry + boot fassen jetzt das ECHTE Boot-Medium (disk/floppy/
iso) — Eintrag, Startbefehl und App-Start spiegeln die reale Config. Leer =
aria-vm erkennt disk.qcow2/floppy.img/cdrom.iso selbst.
- project_vms.add_vm: floppy/disk-Felder.
- main.py: VmAddBody + _vm_boot_args (baut --disk/--floppy/--iso), boot-Endpoint
  + boot_cmd nutzen sie.
- agent.py: vm_register-Tool bekommt disk/floppy/iso.
- Seed-Regel: URTEIL — VM nur wenn sinnvoll; Medium aus der Situation (Festplatte
  fuer DOS-Spiele, Diskette fuer OS-Dev, ISO fuer Installer); Architektur zum Task
  (ARM=aarch64, emuliert/langsam ok); Aenderungs-Zyklus stop→aendern→boot.

py_compile clean. aria-vm schon live auf dem Host.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-20 23:51:27 +02:00
co-authored by Claude Opus 4.8
parent 2a8cbc6c15
commit 055db7c059
4 changed files with 57 additions and 25 deletions
+11 -4
View File
@@ -1170,15 +1170,20 @@ META_TOOLS = [
"Traegt eine QEMU-VM in die VM-Liste des AKTUELLEN Projekts ein, "
"damit sie in Stefans Desktop-Panel (Cockpit) erscheint und er sie "
"starten/stoppen/verbinden kann. Rufe das auf, NACHDEM Du mit aria-vm "
"eine VM gebaut/gebootet hast (z.B. bei einem OS-Bau-Projekt). "
"vnc_display bestimmt den VNC-Port (Port = 5900+display)."
"eine VM gebaut/gebootet hast — mit den Medien, die zum Task passen: "
"disk (Festplatte, z.B. DOS-Spiele), floppy (Diskette, OS-Dev), iso "
"(Installer). Leer lassen = aria-vm erkennt disk.qcow2/floppy.img/"
"cdrom.iso im VM-Ordner selbst. vnc_display → Port 5900+display "
"(mehrere VMs = verschiedene Displays)."
),
"parameters": {
"type": "object",
"properties": {
"name": {"type": "string", "description": "VM-Name wie bei aria-vm (a-z0-9_-)."},
"arch": {"type": "string", "description": "z.B. i386, x86_64, aarch64, mips."},
"iso": {"type": "string", "description": "optional: Boot-ISO-Pfad auf dem Host."},
"arch": {"type": "string", "description": "z.B. i386, x86_64, aarch64, mips (Architektur zum Task waehlen)."},
"disk": {"type": "string", "description": "optional: qcow2-Pfad (Festplatte)."},
"floppy": {"type": "string", "description": "optional: Disketten-Image-Pfad (-fda)."},
"iso": {"type": "string", "description": "optional: Boot-ISO-Pfad."},
"vnc_display": {"type": "integer", "description": "VNC-Display (Default 1 → Port 5901)."},
"mem": {"type": "integer", "description": "RAM in MB (Default 1024)."},
},
@@ -2839,6 +2844,8 @@ class Agent:
pid, (arguments.get("name") or "").strip(),
(arguments.get("arch") or "i386").strip(),
(arguments.get("iso") or "").strip(),
(arguments.get("floppy") or "").strip(),
(arguments.get("disk") or "").strip(),
int(arguments.get("vnc_display") or 1),
int(arguments.get("mem") or 1024),
)