Linked clones break if the VMs folder is moved

未关闭
#71 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
70/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
electron, typescript
领域
backend, desktop

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
3
派生
0
平均合并
2 分钟
30 天内合并 PR
35

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

A21-devs/Virtual-Machine-Manager 的其他 Issue

查看 A21-devs/Virtual-Machine-Manager 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。