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

Setting SECURETTY=YES in the context does not appear to work to enable the console #17

Open
jamie-pate opened this issue Jul 31, 2023 · 0 comments
Labels
category: context linux Linux OS contextualization packages community Issue created by OpenNebula Community status: pending Issue needs to be processed by the team type: bug Something isn't working

Comments

@jamie-pate
Copy link

jamie-pate commented Jul 31, 2023

This is the context code for SECURETTY=YES
https://github.com/OpenNebula/addon-context-linux/blob/27b1b1febabd8d0b2eda8fa4e7c59b0f452d72f0/src/etc/one-context.d/loc-35-securetty#L51

If you create a debian11 vm then the contents of /etc/pam.d/login matches this file:
https://sources.debian.org/src/shadow/1%3A4.8.1-1/debian/login.pam/

It doesn't appear to contain the correct line to match against to update the configuration correctly. Maybe a new file should just be added if the grep fails?

I have followed the instructions here:
https://docs.opennebula.io/6.6/open_cluster_deployment/kvm_node/kvm_driver.html#additional-attributes

to add the following to the kvm config:

<devices><serial type="pty"><source path="/dev/pts/5"/><target port="0"/></serial><console type="pty" tty="/dev/pts/5"><source path="/dev/pts/5"/><target port="0"/></console></devices>

And set SECURETTY=YES, but that did not enable the console in debian.

I also need to run the following inside my startup script: systemctl start [email protected]

It took me a while to figure out that I should run virsh console one-<vmid> in order to connect to the console on the correct host.

I don't know if this is a new consequence of debian's switch to systemd?

@rsmontero rsmontero transferred this issue from OpenNebula/addon-context-linux Jan 16, 2024
@rsmontero rsmontero added type: bug Something isn't working category: context linux Linux OS contextualization packages status: pending Issue needs to be processed by the team community Issue created by OpenNebula Community labels Jan 16, 2024
@rsmontero rsmontero added this to the Release 6.10.0 milestone Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: context linux Linux OS contextualization packages community Issue created by OpenNebula Community status: pending Issue needs to be processed by the team type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants