Linked clones: base disks are never cleaned up

Open
#70 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
electron, react, typescript
Domain
desktop, devtools

Research direction

Start by tracing linked clone creation and VM removal, then inspect how the app finds disk files and invokes qemu-img info. The issue proposes either offering cleanup after VM removal or adding an unused-base list with size and a Delete button. Done means unused bases can be identified safely, with every remaining disk checked to confirm its backing chain does not reference the base before deletion.

Written by the indexing model from the issue text.

Description

backend enhancement

A linked clone (#65) renames the source disk to <name>.base-<id>.qcow2 and makes it read-only. Nothing ever deletes it. Remove from library keeps disks on purpose, but once every VM that used a base is gone (or has been fully cloned and removed), the base just sits in disks\ taking the full size of the original disk, and it's read-only so deleting it by hand fails until you change the attribute.

Ideas:

  • When a VM is removed, check whether any remaining VM's disk has that base in its backing chain, and if none does, offer to delete it.
  • Or list unused base files somewhere (Settings, once #14 lands) with their size and a Delete button.

Needs care: only delete a base when qemu-img info on every remaining disk confirms nothing points at it.

Dominant language
TypeScript
Stars
3
Forks
0
Avg merge
2m
Merged PRs (30d)
59

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from A21-devs/Virtual-Machine-Manager

All issues in A21-devs/Virtual-Machine-Manager

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.