Problem logging directly in a container from crosh

120 views
Skip to first unread message

Antoine Beaubien

unread,
Feb 12, 2025, 4:00:40 PMFeb 12
to ChromiumOS Development
Hi,

   I have problems logging directly in a container from crosh:

crosh> vsh termina debian12
ERROR vsh: [vsh.cc(173)] Failed to launch vshd for termina:debian12: requested container does not exist: debian12
ERROR - ERROR: command failed

   But, I'm sure that my machine debian12 exists:
(termina) chronos@localhost ~ $ lxc list
+----------+---------+------+------+-----------+-----------+
|   NAME   |  STATE  | IPV4 | IPV6 |   TYPE    | SNAPSHOTS |
+----------+---------+------+------+-----------+-----------+
| debian12 | STOPPED |      |      | CONTAINER | 1         |
+----------+---------+------+------+-----------+-----------+
| kali24   | STOPPED |      |      | CONTAINER | 0         |
+----------+---------+------+------+-----------+-----------+
| ubuntu   | STOPPED |      |      | CONTAINER | 0         |
+----------+---------+------+------+-----------+-----------+

But if I go in termina, than do: 
lxc start debian12 and 
lxc exec debian12 -- bash, this works.

Regards, Antoine

Daniel Verkamp

unread,
Feb 12, 2025, 6:05:14 PMFeb 12
to Antoine Beaubien, ChromiumOS Development
Hi Antoine,

vsh relies on a vshd server running in the container, which is
normally launched by garcon, which itself is started by a systemd unit
(cros-garcon.service). garcon registers itself with the cicerone
service running on the host, which is how the host learns about the
available containers. If you want to use vsh with a custom container,
you might be able to replicate this configuration yourself, although
it is not officially supported.

Antoine Beaubien

unread,
Feb 12, 2025, 6:19:02 PMFeb 12
to ChromiumOS Development, Daniel Verkamp, ChromiumOS Development, Antoine Beaubien
Thanks for those very precise informations. Much appreciated.

It there somewhere I can find the documentation on how to setup the crostini-guest-tool on a new container?
I understand this is done automatically when ChromeOS is setuping penguin, the default Linux Debian 12 container, but is there somewhere this is documentated?
Also, which script is run when setting up the default container?

Can I find it here in this repo: github.com/lubuoren/cros-container-guest-tools ?

Regards, Antoine

dragon788

unread,
Feb 13, 2025, 8:34:56 PMFeb 13
to Antoine Beaubien, ChromiumOS Development, Daniel Verkamp

Check on Reddit in the r/crostini wiki, they've documented alternative containers and the tooling with examples.


--
--
ChromiumOS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.

Antoine Beaubien

unread,
Feb 21, 2025, 12:03:47 AMFeb 21
to ChromiumOS Development, dragon788, ChromiumOS Development, Daniel Verkamp, Antoine Beaubien
Thank you very much. I went a lot on the Reddit r/crostini, but I didn’t know there was a wiki. This is a perfect source for my questions.

Best Regards,
   Antoine

Reply all
Reply to author
Forward
0 new messages