Live data from Hacker News

Android container in Chrome OS

chromium.googlesource.com

21–30 of 140 posts

Re: Android container in Chrome OS

#21
post #16

Earlier quoted context omitted.

You have it with ChromeOS 67. Docker without having to put in developer.

Can you share a specific example of this? I got lost in the parent article but was that in there?

Yes. Boot, launch chrome tab, type Ctrl alt t, then type vmc start dev.

You have a GNU/Linux kernel which you can do whatever you want.

For more info visit Reddit and the Crostini subreddit.

You can use Steam or really whatever.

Re: Android container in Chrome OS

#22
post #16

Earlier quoted context omitted.

Can you share a specific example of this? I got lost in the parent article but was that in there?

Yes. Boot, launch chrome tab, type Ctrl alt t, then type vmc start dev. You have a GNU/Linux kernel which you can do whatever you want. For more info visit Reddit and the Crostini subreddit. You can use Steam or really whatever.

What is happening is Google has enabled the KVM. You are using a second Linux kernel and can do whatever safely and away from the ChromeOS Linux kernel.

Even GUI works as forwarded to ChromeOS. So start xclock and opens.

Re: Android container in Chrome OS

#23
post #5

I wonder how hard it would be to get this working on, say, Fedora... At the very least, one would need to replace what sounds like a surfaceflinger wayland proxy.

Yeah, it would be pretty interesting to be able to use this as an Android development environment. It should be significantly faster than current approaches with emulation.

Supports AS. The thinking is this is why Google did it. You can now run GNU/Linux applications

Re: Android container in Chrome OS

#24
post #19

Earlier quoted context omitted.

Very easy with ChromeOS 67. Just boot, launch a chrome window and type Ctrl alt t. Then type vmc start dev. Then you can use whatever distribution you want as you have full GNU/Linux. Only works on Pixelbooks but Google will extend and will share more at Google IO. You can even package up gnu/Linux applications. One click and they run in a container but on a second Linux kernel. So Android shares the ChromeOS kernel…

And that helps me get an Android container running on an actual desktop OS how? That was the question, after all.

Yes it does. Well if you consider gnu/Linux a desktop OS.

Re: Android container in Chrome OS

#25
post #16

Earlier quoted context omitted.

Can you share a specific example of this? I got lost in the parent article but was that in there?

Yes. Boot, launch chrome tab, type Ctrl alt t, then type vmc start dev. You have a GNU/Linux kernel which you can do whatever you want. For more info visit Reddit and the Crostini subreddit. You can use Steam or really whatever.

Is it also enabled in old ARM only chrome books? Mine is in dev mode and I would switch it back to regular if I can run kvm inside.

Re: Android container in Chrome OS

#26
I just had a vision of all major OS projects providing developer containers for their projects. Like, you could just pull the latest Firefox dev container and run a single command to have a running debuggable app.

I know one of the major pains we have when on-boarding new people is the whole dance to get to that first working build / first meaningful change. I can imagine this being significantly more simple if a working dev environment was shipped as a container.

Re: Android container in Chrome OS

#27

I just had a vision of all major OS projects providing developer containers for their projects. Like, you could just pull the latest Firefox dev container and run a single command to have a running debuggable app. I know one of the major pains we have when on-boarding new people is the whole dance to get to that first working build / first meaningful change. I can imagine this being significantly more simple if a wor…

Gnome is moving in this direction by using Flatpak + Gnome Builder. They're also running CI inside the Flatpak environment.

Re: Android container in Chrome OS

#28

I just had a vision of all major OS projects providing developer containers for their projects. Like, you could just pull the latest Firefox dev container and run a single command to have a running debuggable app. I know one of the major pains we have when on-boarding new people is the whole dance to get to that first working build / first meaningful change. I can imagine this being significantly more simple if a wor…

Exactly what Google has done with ChromeOS 67. You can run GNU/Linux applications as containers. But extra safe as a container on a separate kernel through a VM using KVM.

Versus they did Android as a container on the same Linux kernel as ChromeOS. But locked to only an Android container.

Re: Android container in Chrome OS

#29
post #25

Earlier quoted context omitted.

Yes. Boot, launch chrome tab, type Ctrl alt t, then type vmc start dev. You have a GNU/Linux kernel which you can do whatever you want. For more info visit Reddit and the Crostini subreddit. You can use Steam or really whatever.

Is it also enabled in old ARM only chrome books? Mine is in dev mode and I would switch it back to regular if I can run kvm inside.

No not yet. It is also only on Pixel books right now. It uses hardware supports VM so possible on ARM.

But realize this losses cross platform support inheriently so you would have to use ARM gnu/Linux binaries.

Re: Android container in Chrome OS

#30

Interesting to see Chrome OS adopt process compartmentalization techniques such as this, specifically adopting `cgroups'. Afaik, cgroups isn't enabled by default and requires customizing the kernel before you can enable it. At the very least, container tools such as Docker require symlinks too to invoke chroot-like filesystem isolation and this is also not available. It'll interesting to see where they'll go with thi…

Speaking of which, it is now possible to run full linux and android apps on chromebooks which support containers (and vms?) in a tab with the new official Google Crostini project. Makes the Pixelbook more attractive. https://twitter.com/rothgar/status/981579699833880576 More info on Crostini https://www.reddit.com/r/chromeos/comments/7ytpb1/project_cr... …

Would this work on a ChromeOS that I install on, say, an aging PC Laptop?
Post reply on HN