oxidecomputer / oxidecomputer/propolis

standalone: want option to hash contents of boot disk

Open
#1,071 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
270
Forks
42
Avg merge
4d 5h
Merged PRs (30d)
6

Description

Incremental work for #1067. Most useful for #1067 when built upon #1068, but technically we could merge this work indepdently.

An example TOML file. The new calc_boot_digest flag requires a boot order specified:

[main]
name = "boot-digest"
cpus = 4
bootrom = "/home/jordan/src/propolis/ovmf/OVMF_CODE.fd"
memory = 1024
calc_boot_digest = true
boot_order = [ "block01" ]

[block_dev.vm_attest_disk]
type = "file"
#path = "/dev/zvol/rdsk/rpool/propolis/vm-attest-img"
path = "/home/jordan/src/propolis/images/vm-instance_staging-a.raw"
read_only = true

[dev.block01]
driver = "pci-nvme"
block_dev = "vm_attest_disk"
pci-path = "0.7.0"


[dev.net0]
driver = "pci-virtio-viona"
vnic = "vnic_prop0"
pci-path = "0.5.0"

An initial pass at just file-backed disks (hashing a local file on disk), then printing out the hash on start is: https://github.com/oxidecomputer/propolis/tree/jhendricks/calc-boot-digest

Contributor guide

No contributing guide indexed for this repository

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 by reviewing the linked calc-boot-digest branch and the TOML example, focusing on how calc_boot_digest and boot_order are represented. The initial scope is file-backed disks: hash the local boot disk contents and print the digest when the VM starts, with the required boot order configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.