lima-vm / lima-vm/lima

Feature suggestion: labels for VMs and disks (and networks)

Open
#3,240 17 comments 0 reactions 1 assignee Claimed by @jandubois View on GitHub
enhancement
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

It would be helpful to have labels added to VM instances and disks. Example uses:

- Add roles to servers to use when creating multi-node clusters. E.g., for Kubernetes clusters, we could have control-plane and worker nodes with appropriate labels
- Add creation time and delete-after time to be able to delete VM instances and disks automatically

... and others, similar to what cloud providers do.

It could be implemented as a JSON file in the instance directory or as a BoltDB file, which supports the locking mechanism (using https://github.com/etcd-io/bbolt, of course).

To show the instance (or disk) labels, you would run `limactl list --show-labels.`

Labels could be added to the YAML config file before starting the instance or using `limactl edit.` Also, they could be added using the `--add-labels` flag with `limactl create` or `limactl start.`

Appreciate your feedback.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.