Skip to content

Allow eject commands to remove drives from an Incus instance #2093

@bensmrs

Description

@bensmrs

Is there an existing issue for this?

  • There is no existing issue for this feature

What are you currently unable to do

When the guest asks to eject a disk, it is still present in the instance configuration. This causes problems with some installation medias that should be ejected before reboot.

What do you think would need to be added

We could add an ejected (volatile?) key to indicate that a disk was ejected from the guest, and attach the disk only when it’s not set to yes. Care must be taken when modifying this (volatile) key if we support live modification (no/(absent)->yes sends a QMP eject, which may fail).
If the feature looks ok, I’d be happy to work on it.

The UI may need features to reinsert an ejected disk, and even eject one without detaching the drive.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions