<div dir="ltr">Hi:<div><br></div><div>to get a shell on your running container , you need to get it's name (execute `machinectl` to get a list of containers) and then</div><div><br></div><div>if you just want a shell you can run `systemd-run --machine=<name> --pty /bin/bash` or `machinectl shell <name> /bin/bash`</div><div><br></div><div>and if you want a real login promp</div><div>  <br></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">machinectl login <name></span><br><br></div><div>is your best bet</div><div><br></div><div>hope it helps</div><div dir="ltr">Alvaro Leiva Geisse<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jun 23, 2018 at 7:13 AM Nikolaus Rath <<a href="mailto:Nikolaus@rath.org">Nikolaus@rath.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
How would I go about starting an additional shell in an existing<br>
container? I am starting the container with:<br>
<br>
$ systemd-nspawn -M foo --as-pid2 --register=no<br>
<br>
"foo" is a raw image retrieved with machinectl. If I simply execute the<br>
above command again, I am getting a "Disk image<br>
/var/lib/machines/foo.raw is currently busy." error.<br>
<br>
I've looked into the systemd-nspawn manpage, but couldn't find anything<br>
appropriate.<br>
<br>
What am I missing?<br>
<br>
<br>
Thanks!<br>
-Nikolaus<br>
<br>
-- <br>
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F<br>
<br>
             »Time flies like an arrow, fruit flies like a Banana.«<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>