Linked clones break if the VMs folder is moved

Abierto
#71 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
70/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
electron, typescript
Área
backend, desktop

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
3
Forks
0
Merge medio
2 min
PR fusionados (30 d)
35

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de A21-devs/Virtual-Machine-Manager

Todos los issues de A21-devs/Virtual-Machine-Manager

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.