nspawn: machinectl show - should show also used image
Open
Nobody has claimed this yet.
machine
nspawn
RFE 🎁
- Dominant language
- C
- Stars
- 16.7k
- Forks
- 4.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 140
Description
I wanted to find used image for running nspawn container
command like:
machinectl show CONU.grawscsxdw
shows
Name=CONU.grawscsxdw
Id=01fd2ecc6d604891b9aa5f96cd888f89
Timestamp=Thu 2018-10-11 12:56:24 CEST
TimestampMonotonic=13447825430
Service=systemd-nspawn
Unit=machine-CONU.grawscsxdw.scope
Leader=563
Class=container
RootDirectory=/tmp/nspawn-root-2V9Brk
State=running
but there is not link to image what were used for machine boot
there could be some item like: image=/var/lib/machines/image.raw
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the machinectl show entry point and the systemd-nspawn machine startup path described in the issue. Trace how the booted machine's image is represented, then verify that machinectl show CONU.grawscsxdw reports the image path for a running container.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100