-
Notifications
You must be signed in to change notification settings - Fork 229
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
kitchen create with systemd as run_command affects OS session #336
Comments
I'm running into this as well trying to run an Ubuntu container on Arch. My
In my case, I can't even get back to my x11 session; it disconnects and the system becomes unusable. I'm thinking this might be an issue with docker specifically, but I don't know how to dig further. Is there a way to see exactly what dockerfile and docker command docker-kitchen is generating? |
I found a solution! This behavior was also reported upstream on Docker: docker/for-linux#106 (comment) The TL;DR is: don't use
I don't know if that |
Based on the link above, I found https://github.com/systemd/systemd/blob/aa0c34279ee40bce2f9681b496922dedbadfca19/src/basic/virt.c#L434 and the ubuntu Dockerfile (https://github.com/tianon/docker-brew-ubuntu-core/blob/bcdd3818e932eda677301ae5d81c80e010793c91/bionic/Dockerfile) which made me need to add |
Im following exactly the Saltstack Formula test platforms and I get this issue too, tried the options above and no luck so far. |
On ubuntu having
run_command: /lib/systemd/systemd
in kitchen.yml and callingkitchen test
orkitchen create
will spawn a new systemd "session".At first I thought I was being logged out and on some runs graphics got messed up completely. But then I found out that switching through Linux' different tty terminals (Ctrl+Alt+F1-F7) I could actually get back to my graphical session with everything still running.
Currently this setup is not usable I would say:
kubuntu 18.04
systemd 237 with
/lib/systemd/systemd
as run_commandkitchen-docker 2.9.0
kitchen-salt 0.6.0
kitchen-sync 2.2.1
test-kitchen 2.0.1
I was thinking maybe those are recent incompatibilities between the
kitchen-*
gems and switched to the versions that were recent when the article I was following was published (Jan 7). But these didn't help either:The text was updated successfully, but these errors were encountered: