Project

General

Profile

Actions

action #153760

closed

[qe-core]Adapt svirt backend to be able to boot systems with root ssh disabled

Added by jlausuch 11 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
High
Assignee:
Start date:
2024-01-17
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

ALP images (following Factory approach) do not allow root ssh by default, the best practices are to use a key-pair to ssh to the system.

There is a way to enable it, which consists of installing the package openssh-server-config-rootlogin, which is simply doing echo 'PermitRootLogin yes' >> /etc/sshd/sshd_config.d/root_login_config..

Our svirt backend rely on doing a root ssh to the machine after it's booted, therefore it fails to do so.

There are several ideas to workaround this:
1) Add echo 'PermitRootLogin yes' >> /etc/sshd/sshd_config.d/root_login_config >$pty to the svirt backend commands.
2) Create a keypair for each run and inject it to the VM using svirt backend commands.
3) Create new combustion script for s390x including the command `echo 'PermitRootLogin yes' >> /etc/sshd/sshd_config.d/root_login_config

Acceptance criteria

  • ALP s390x images boot with svirt backend
Actions

Also available in: Atom PDF