Skip to content

run --help advertises --rom dir=... but the API rejects it with "Missing member 'image'" #468

Description

@garysassano

Environment

  • Unikraft CLI 0.4.2 (linux/amd64)
  • Metro: fra

Summary

The CLI's own help text offers a directory form for --rom. Using exactly that form fails with a 400 from the API.

Steps to reproduce

unikraft run --help prints, verbatim:

      --rom
          Attach ROM.
          [examples: image=myuser/my-rom:latest,at=/rom0,name=my-rom, dir=./mydata,at=/rom]

Using the advertised dir= form:

$ unikraft run --metro fra --name x --image python:3.13-alpine \
    --rom dir=./kernel,at=/rom -p 443:8080/http+tls -m 512MiB

error: failed on "fra" client: request failed: 400 Bad Request
request error: Missing member 'image' in auxiliary ROM description

Expected

Either the dir= form works and packages the directory, or it is removed from the help examples.

Actual

The help promises a form the backend will not accept.

Impact

Minor on its own, but dir= looks like exactly the escape hatch for injecting a small file without a full image build, so it is an attractive thing to reach for. I lost time assuming I had the syntax wrong.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions