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

podvm-mkosi: sshd failed for s390x fedora image #1820

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

genjuro214
Copy link
Contributor

For debug image, sshd service failed to start on s390x:

Apr 15 02:35:49 cdlleili-custom sshd[1353]: sshd: no hostkeys available -- exiting.
Apr 15 02:36:31 cdlleili-custom sshd[1395]: Unable to load host key: /run/ssh/ssh_host_rsa_key
Apr 15 02:36:31 cdlleili-custom sshd[1395]: Unable to load host key: /run/ssh/ssh_host_ecdsa_key
Apr 15 02:36:31 cdlleili-custom sshd[1395]: Unable to load host key: /run/ssh/ssh_host_ed25519_key
Apr 15 02:36:31 cdlleili-custom sshd[1395]: sshd: no hostkeys available -- exiting.

ssh config is overwritten by extra package: mkosi.skeleton-debug/etc/ssh/sshd_config

However, it conflicts with cloud-init on s390x, so failed to generate ssh host keys at /run/ssh. cloud-init will generate host keys at /etc/ssh.

So just keep the default ssh config for s390x

Config in mkosi.skeleton-debug conflicts with
cloud-init on s390x

Signed-off-by: Lei Li <[email protected]>
Signed-off-by: Lei Li <[email protected]>
Copy link
Member

@liudalibj liudalibj left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@huoqifeng huoqifeng left a comment

Choose a reason for hiding this comment

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

LGTM

@huoqifeng huoqifeng merged commit 4b128d7 into confidential-containers:main Apr 26, 2024
18 checks passed
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.

3 participants