Linked clones break if the VMs folder is moved

Đang mở
#71 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
70/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
electron, typescript
Lĩnh vực
backend, desktop

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
3
Fork
0
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của A21-devs/Virtual-Machine-Manager

Tất cả issue của A21-devs/Virtual-Machine-Manager

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.