Running multiple containers with full ChromeOS integration

234 views
Skip to first unread message

Bill Wood

unread,
Aug 7, 2018, 2:39:11 PM8/7/18
to Chromium OS Discussion
I'd like to have separate containers for separate projects.

In this video, Zach Reizner says that its possible to run multiple containers as first class citizens of the UI integration:

However I can't figure out how to do it from the UI, and my attempts to run another container copied from penguin haven't worked well either.  I've been able to get Chrome browser integration working, but not Files integration or app integration in the launcher.

Does anyone know how to do this?

Mike Frysinger

unread,
Aug 7, 2018, 3:16:20 PM8/7/18
to wpwo...@gmail.com, Chromium OS discuss
it is not supported via the UI and most likely never will be

you'll need to use crosh + vmc to get into existing VMs and run/name your own containers
-mike

--
--
Chromium OS Discussion mailing list: chromium-...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-discuss

Keith I Myers

unread,
Aug 7, 2018, 3:32:31 PM8/7/18
to Mike Frysinger, wpwo...@gmail.com, Chromium OS discuss
Would it be possible to eventually see a local API to allow applications to be written that can create/manage Virtual Machines? - of course some restrictions should be in place for "Termina"

---
You received this message because you are subscribed to the Google Groups "Chromium OS Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dis...@chromium.org.


--
 
--
Keith I Myers
 


Mike Frysinger

unread,
Aug 7, 2018, 3:35:46 PM8/7/18
to Keith I Myers, wpwo...@gmail.com, Chromium OS discuss
i don't think anyone has proposed this before.  it's not outside the realm of possibility, but probably unlikely to happen this year.

feel free to file a bug at crbug.com/new with the proposal.
-mike

Bill Wood

unread,
Aug 7, 2018, 4:10:44 PM8/7/18
to Chromium OS Discussion, wpwo...@gmail.com
I've made several attempts to do it by creating my own containers, including renaming my penguin, then creating a new one through Terminal, then renaming the new one to something else and renaming the old penguin back to penguin.  When I ran the new non-penguin container it totally confused Files and Launcher because the container was still bind mounted to the original penguin's bind mounts for ssh keys and container token.

The issue seems to be how to launch my second container with the correct ssh keys and container token so that Files and the Launcher integrate my second container into the UI properly.  From the video it appears that Launcher should show apps from both penguin and the second container if this is done properly.  Is this possible?

Mike Frysinger

unread,
Aug 7, 2018, 4:20:54 PM8/7/18
to wpwo...@gmail.com, Chromium OS discuss
officially, the only automatic integration we plan on supporting is the VM named "termina" with a container named "penguin".  if you want to create other VMs/containers, you're certainly free to, but it's up to you to trigger things like mounting of those other containers or integrating the services we've provided or configuring keys/ssh access as the rest of the system expects.  e.g. garcon and such are required in order to automatically integrate desktop files into the launcher.  our docs cover this a bit more, but we don't currently have docs for power users to integrate the services themselves.  at this point, the code is the manual.  this should improve over time, but it isn't a priority for this year.

but if something breaks, our response generally is going to be "does it work with the default Terminal/penguin container?", and people would have to do more investigation on their side to see where the problem lies.  or submit CLs to fix the problem :).

yes, if you rename "penguin" to something else, i can easily see the system getting confused.  i think our answer would basically be "don't do that".

as time goes on, we'll probably expand test coverage to make sure some level of basic service works with differently named VMs/containers.
-mike

Mike Frysinger

unread,
Aug 7, 2018, 4:29:25 PM8/7/18
to wpwo...@gmail.com, Chromium OS discuss
sorry, i don't mean to sound all doom & gloom.  we're still at a pretty nascent stage and are chasing down a lot of low hanging fruit to make the official Crostini flow as smooth as possible.  we're trying not to block other flows, but we simply don't have the resources available currently to officially support them.  it's the conflict between making a polished official product we can put a brand behind and a rough tech demo that we only let other hackers play around with.
-mike

Bill Wood

unread,
Aug 7, 2018, 5:10:27 PM8/7/18
to Chromium OS Discussion, wpwo...@gmail.com
Thanks Mike.  I understand, although I was hoping for a pointer or two on how I could "hack" this.  :)

Bill Wood

unread,
Nov 18, 2018, 11:27:35 PM11/18/18
to Chromium OS Discussion, wpwo...@gmail.com
Hey Mike, looks like the new "vmc container" command does some of what I want :)

Trying it, I get launcher integration but still no Files integration.  Is that planned?

Mike Frysinger

unread,
Nov 18, 2018, 11:43:48 PM11/18/18
to Bill Wood, chromium-...@chromium.org
automatic Files integration only works with the default named VM/container.  if you want to connect other containers, you can use Secure Shell's SFTP mounting.
-mike

Bill Wood

unread,
Nov 19, 2018, 12:39:34 AM11/19/18
to Chromium OS Discussion, wpwo...@gmail.com
People are also using vmc share (see here)
Reply all
Reply to author
Forward
0 new messages