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

s390x: zVM Secure IPL enablement #10

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

nikita-dubrovskii
Copy link
Contributor

No description provided.

os/20231024-s390x-zvm-secure-boot.md Outdated Show resolved Hide resolved
os/20231024-s390x-zvm-secure-boot.md Outdated Show resolved Hide resolved
os/20231024-s390x-zvm-secure-boot.md Outdated Show resolved Hide resolved

It is the customer's responsibility to ensure that the security keys that are required by a guest are present on the destination system.Security keys are required on all members of a relocation domain where a guest might be relocated and later IPLed with the secure option. For more information, see [How to enable secure boot on the HMC](https://www.ibm.com/support/pages/how-enable-secure-boot-hmc).

### The IPL device number and the SECURE option load parameters are set
Copy link
Member

Choose a reason for hiding this comment

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

This seems to detail how to turn on Guest Secure IPL day 2, which is much less interesting than day 1. I almost think we should remove that section entirely.

The bit about verifying that RHCOS booted in that mode is helpful though. We could keep that in a separate section under the Proposal header.

os/20231024-s390x-zvm-secure-boot.md Outdated Show resolved Hide resolved

Assuming zVM is ready for secure boot, we can setup LOADDEV at installation time

## coreos-installer
Copy link
Member

Choose a reason for hiding this comment

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

Minor: space

Copy link
Contributor Author

Choose a reason for hiding this comment

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

where? ))

os/20231024-s390x-zvm-secure-boot.md Outdated Show resolved Hide resolved
## coreos-installer
1) Add new `coreos.inst.secureboot` karg and `--with-secure-boot` option. `coreos-installer-generator` appends the switch when karg is provided
2) During isntallation we check for `--with-secure-boot` and use `vmcp` tool to set LOADDEV
3) Add new systemd unit `coreos-installer-reboot-secure.service` to restart from LOADDEV or modify `coreos-installer-reboot.service` to do the same (which immediatly termintes running CoreOS VM)
Copy link
Member

Choose a reason for hiding this comment

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

I.e. a simple systemctl reboot won't work? It needs to be done via cp ipl loaddev? Is this true on reboots of the installed system too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately we must use cp ipl loaddev. Luckily any subsequent reboot just works (until we shutdown zVM itself)

@nikita-dubrovskii nikita-dubrovskii force-pushed the s390x_zvm_secure_boot branch 4 times, most recently from f96bcfa to 5e54975 Compare November 16, 2023 14:00
@nikita-dubrovskii nikita-dubrovskii changed the title WIP: s390x: SecureBoot enablement WIP: s390x: zVM Secure IPL enablement Nov 16, 2023
os/20231024-s390x-zvm-secure-ipl.md Outdated Show resolved Hide resolved
os/20231024-s390x-zvm-secure-ipl.md Outdated Show resolved Hide resolved
os/20231024-s390x-zvm-secure-ipl.md Show resolved Hide resolved
Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
@nikita-dubrovskii nikita-dubrovskii changed the title WIP: s390x: zVM Secure IPL enablement s390x: zVM Secure IPL enablement Nov 23, 2023
@jlebon jlebon merged commit 9c168b0 into coreos:main Nov 23, 2023
@nikita-dubrovskii nikita-dubrovskii deleted the s390x_zvm_secure_boot branch November 24, 2023 13:09
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.

None yet

2 participants