Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: add optional disk table to the VMGS file #373

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jstarks
Copy link
Member

@jstarks jstarks commented Nov 21, 2024

The disk table lists the disks that the host is allowed to offer, along with their encryption information (cipher + key). If the host offers a disk that is not in the list, fail to boot.

This is designed to support unenlightened guests, and is opt in via environment variable.

To use, prepopulate the VMGS file with the appropriate disk information, e.g.:

vmgstool disk-table -f vmgs.vmgs add --d 00000001-a4a3-11ef-9347-43f645bdedf8 -c xts-aes-256 -k key.bin

And in your OpenHCL configuration, ensure OPENHCL_USE_DISK_TABLE=1 is set.

If using an encrypted disk, be sure to build openvmm-hcl with the disk_crypt feature.

The disk table lists the disks that the host is allowed to offer, along
with their encryption information (cipher + key). If the host offers a
disk that is not in the list, fail to boot.

This is designed to support unenlightened guests, and is opt in via
environment variable.

To use, prepopulate the VMGS file with the appropriate disk information,
e.g.:

```
vmgstool disk-table -f vmgs.vmgs add --d 00000001-a4a3-11ef-9347-43f645bdedf8 -c xts-aes-256 -k key.bin
```

And in your OpenHCL configuration, ensure OPENHCL_USE_DISK_TABLE=1 is set.

If using an encrypted disk, be sure to build openvmm-hcl with the
`disk_crypt` feature.
@jstarks jstarks requested review from a team as code owners November 21, 2024 19:39
Remove {
/// The disk identifier
#[clap(long)]
disk: String,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be a Guid?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants