Linked clones break if the VMs folder is moved

Offen
#71 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
70/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
electron, typescript
Bereich
backend, desktop

Rechercherichtung

Find the code that creates linked clone overlays with qemu-img create -b and check how it handles existing overlays. Start by locating the QEMU disk creation entry point and any related tests; the issue does not name specific files. Update overlay creation to use a relative backing path, and ensure existing overlays can be handled with the described qemu-img rebase -u approach. Done when linked clones still open after the VMs folder is moved.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

backend bug

qemu-img create -b <base> stores the backing file as the full path we pass in, for example C:\Users\me\VMs\disks\Kali.base-m3x1.qcow2. If the VMs folder is moved (copied to another drive, restored from a backup into a different user folder, or changed with the data folder setting from #14), every linked clone's overlay still points at the old path and QEMU fails to open the disk.

Fix: create overlays with a backing path relative to the overlay (-b Kali.base-m3x1.qcow2 with the overlay in the same folder, qemu-img resolves it relative to the overlay's directory). Existing overlays can be rewritten in place with qemu-img rebase -u -b <relative name>, which only changes the header.

Related to #65 and #14.

Vorherrschende Sprache
TypeScript
Sterne
3
Forks
0
Ø Merge
2 Min.
Gemergte PRs (30 T.)
41

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus A21-devs/Virtual-Machine-Manager

Alle Issues in A21-devs/Virtual-Machine-Manager

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.