systemd / systemd/systemd

nspawn: machinectl show - should show also used image

Open
#10,360 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.