Slashdot Mirror


Chrome OS Could Be Getting Containers for Running Linux VMs (zdnet.com)

Chromebook users may soon have a simpler way to run their favorite Linux distribution and applications on Google's Chrome OS hardware. From a report: As spotted by Chrome Unboxed, there's a newly merged commit in Chromium Gerrit describing a "new device policy to allow Linux VMs on Chrome OS." A related entry suggests support could come with Chrome OS version 66, which is due out in stable release around April 24, meaning Google might announce it at its annual IO developer conference, which starts on May 8. Developers can already use a tool called Crouton to install and run Linux on Chrome OS, but there is a security trade-off because Chrome OS needs to be switched to developer mode to use it. There's also a Crouton extension called Xiwi to enable using an OS in a browser window on Chrome OS. However, it too requires developer mode to be enabled. A recent commit suggests Chrome developers are working on a project called Crostini that may solve the developer mode problem by allowing Linux VMs to run inside a container.

57 comments

  1. Hardware slogging. by Anonymous Coward · · Score: 0

    Aside from any security issues, is Chrome hardware really capable of running any kind of virtualization without feeling sluggish?

    1. Re:Hardware slogging. by Tyger-ZA · · Score: 1

      This should suffice: https://store.google.com/produ...

    2. Re:Hardware slogging. by ZeroNullVoid · · Score: 1

      I would be surprised if this was virtualization for containers. Think more of lxc, docker, etc.

    3. Re:Hardware slogging. by Anonymous Coward · · Score: 0

      $899? ELL OH ELL

    4. Re:Hardware slogging. by wierd_w · · Score: 1

      I have virtualbox installed on my hacked celes (Samsung chromebook 3). It is nothing to write home to mommy about, but it can run another OS fairly well, all things considered.

      To be fair though, the Celes has a celeron CPU, instead of the more "atom like" cpus in most other intel chromebooks.

      If you want one that is better suited to virtualization/daily driving, you want this guy (especially if you want to upgrade the internal storage to something more reliable than eMMC/microSD)

      https://www.amazon.com/dp/B015...

      Features an i3 processor, with NGFF SSD socket.

    5. Re:Hardware slogging. by WarJolt · · Score: 1

      Linux VMs to run inside a container

      That commit in the article has absolutely NOTHING to do with containers. There is almost no reason to run a VM inside of a container. Sometimes you run a container in a VM.

    6. Re:Hardware slogging. by Anonymous Coward · · Score: 0

      Loaded with shitty apps made by Google to act like Trojan horses against its owner's privacy, the PixelBook automatically downloads a deluge of personalized advertisements and throws them in the owner's at every moment possible. The PixelBook also accumulates every type of private information from its owner and uploads it to Google servers for analysis the moment it connects to the internet. This is the Google PixelBook.

    7. Re:Hardware slogging. by Anonymous Coward · · Score: 0

      de-creimerified link (non-amazon affiliate):

      https://www.amazon.com/dp/B015...

    8. Re:Hardware slogging. by Anonymous Coward · · Score: 0

      ...the PixelBook automatically downloads a deluge of personalized advertisements and throws them in the owner's at every moment possible.

      Um. No it doesn't.

    9. Re:Hardware slogging. by mdhoover · · Score: 2

      Well... as someone who still runs solaris (yeah yeah, get over it) I run virtualbox (VM) instances inside Solaris Zones (Proper Containers) on x86_64 (backed by ZFS vols)

      This setup has been my daily driver work desktop for years (ie: Run mandated windows SOE desktop, perform vagrant style spin ups of whatever the hell we are fighting then push the images to environment du jour).

    10. Re:Hardware slogging. by DickBreath · · Score: 1

      Running a container has exactly the same cost as launching a process. A container IS just a process -- restricted to a certain folder which it sees as the "root" folder, restricted to a particular artificial view of the filesystem as dictated by the container definition, and with limited permissions, and with network interfaces, IP addresses, etc defined by the container definition. Effectively the container is simply an elaborate definition of how to launch a process in a particular way, taking advantage of a number of Linux kernel features that can change the perceived environment seen by the process.

      The process launched within a container can even believe it is root, seemingly having all of the privileges of root -- within the restrictions defined by the container.

      Now that single process can launch other processes -- but those child processes also see the same environment as the parent process. So in principle, you could have a container that defines a root folder that "looks like" an Ubuntu distribution, and the single process you launch is /sbin/init to start things running.

      --

      I'll see your senator, and I'll raise you two judges.
    11. Re:Hardware slogging. by Anonymous Coward · · Score: 0

      is Chrome hardware really capable of running any kind of virtualization without feeling sluggish?

      Very likely. It's able to run web browsers, and those have vastly more overhead than Linux containers.

      Also, remember that a $400 computer today is going to be approximately as fast as a $4000 computer ten years ago. You wouldn't bat an eye at running a dozen containers on a 2008 machine.

  2. Embrace, Extend, Distinguish by Anonymous Coward · · Score: 0

    +sending your data back to Google servers and selling your data for profit

  3. Containers - ????? by Anonymous Coward · · Score: 0

    The update actually states

    "Add Crostini experiment to fieldtrial testing. This enables project Crostini, running Linux VM on chrome OS, for Chromium developer builds"

    and makes no mention of containers.

  4. I'd rather do the reverse. by Mal-2 · · Score: 3, Informative

    I'd rather flash the firmware and then install Cloud Ready, Windows, and GalliumOS. Or at least I would if I cared that much about CrOS. My C720 practically always runs Windows 10, booting into GalliumOS only when I need to unfuck something Windows won't let me unfuck.

    --
    How is the Riemann zeta function like Trump rallies? Both have an endless number of trivial zeros.
    1. Re:I'd rather do the reverse. by wierd_w · · Score: 4, Interesting

      Just link straight to MrChromebox.tech, since he has the needful to do the firmware portion in the bag right there for nearly all chromebooks in the wild.

      https://mrchromebox.tech/#devi...
      https://mrchromebox.tech/#fwsc...

      All you need to do is remove the write protect screw/jumper, turn on dev mode, then run his script. Booya, bob's your uncle. His firmware has added bonus features, in that it reprograms the chromebook's embedded microcontroller so that the keyboard emulates a PS2 interface, allowing more OSes to run without as much hassle, as well as poking the sound hardware to better approximate an HD Audio Bus device.

      Personally, I run GalliumOS as the primary on my Samsung chromebook 3 (celes). I have one of the older ones that only has 2gb of RAM, and I desperately need zram for it to be useful. With how weaksauce it is anyway, nearly any game that 'could' run on it, will also work in WINE, so I dont really need windows.

    2. Re:I'd rather do the reverse. by Mal-2 · · Score: 1

      I ran GalliumOS + WINE when I had a GNAWTY. I was also the tester for the initial attempts to run Windows on Bay Trail. Actually, we succeeded, but performance was so incredibly horrible that it was unusable. I ended up selling that off, and buying the (4GB) C720 for only $21 more than I got for the CB3-111. Then I dropped another $80 for a fast 250GB M.2 SSD.

      Windows support for the Bay Trail Chromebooks has matured a great deal in the past year and a half, enough that it runs about as well as could be expected for a machine with 2GB of RAM. I still wouldn't go back.

      --
      How is the Riemann zeta function like Trump rallies? Both have an endless number of trivial zeros.
  5. With CPU support, sure. Doesn't take much by raymorris · · Score: 1

    Modern CPUs that do virtualization on the die mean you don't need massive horsepower to do virtualization. You probably want text-mode Linux rather than a GUI in your VM unless you have extra RAM to spare, though.

    You also don't need virtualization for containers.

  6. Re:Hardware gay sex with msmash's jelly dildos by Anonymous Coward · · Score: 2, Informative

    And better yet, containers and VMs are two ENTIRELY DIFFERENT CONCEPTS.
     
    Docker: LXI Containers
    VirtualBox: Hardware Virtualization

     
    These are NOT INTERCHANGEABLE. They may be used as substitutes for each other or in conjunction with each other, but the connotations here are WRONG. Obviously, the "editors" here are too busy blaming things on Russia and Pai to bother checking articles and summaries. Now that I have gone back and reread the summary, I noticed that msmash wrote this which means that she is purely ignorant. Sad.

  7. Re:Hardware gay sex with msmash's jelly dildos by Anonymous Coward · · Score: 0

    Mod parent up.

  8. Why would anyone use ChromeOS? by Anonymous Coward · · Score: 0

    ChromeOS has been Google's biggest project dud. They've suckered everyone into everything else, but their OS still is not competitive.

    Plus, who would trust this? Hopefully no one who works in infosec. If anything, do the opposite: run Linux and put anything you need from Google in isolation.

    1. Re:Why would anyone use ChromeOS? by mark-t · · Score: 1

      Plus, who would trust this?

      People who don't think of themselves as so important that anyone else would find anything they might do interesting enough to bother to snoop on.

      In practice, the biggest potential security issue are passwords, and on ChromeOS, those are kept locally on the device, and never uploaded to Google.

      For most people, everything else that might get uploaded isn't going to be interesting enough for anybody else to care

    2. Re:Why would anyone use ChromeOS? by MightyYar · · Score: 1

      I don't know infosec from hookers and blow, but I can tell you that a Chromebook in the hands of your children (or older parents, for that matter) is pretty darned sweet. Kids try very hard to fuck things up - even Android tablets are not immune. But the most involved thing I've ever had to do on one of the Chromebooks is to uninstall a naughty extension. They are limited, but I really don't care if Google watches my kids do their homework or monitors how many variations of the Tide Pod Challenge they watch. Eventually they'll probably want a Mac or Windows machine, but for now it is family IT guy bliss.

      --
      W..w..W - Willy Waterloo washes Warren Wiggins who is washing Waldo Woo.
    3. Re:Why would anyone use ChromeOS? by Anonymous Coward · · Score: 0

      You're part of the problem. Nobody thinks google is spying on them but google is taking a little bit from everyone they can. Ever hear of something called "Big Data"? That's where google assembles the little bits it takes from everyone and mines that data for information. Information to help people, right? Wrong! That information is sold to people that seek to monitor and control populations. In a few generations they will know exactly how to tweak people to get them to do things they wouldn't normally do. Your grandchildren will be "friended" and "helped" and "liked" and "guided" to make choices that benefit the corporations that control them. Have a nice day!

    4. Re:Why would anyone use ChromeOS? by MightyYar · · Score: 1

      You're part of the problem.

      Well, yes, because you are defining something that has no effect on you to be a "problem". It might be, but it's not your problem.

      In a few generations they will know exactly how to tweak people to get them to do things they wouldn't normally do.

      They already do that. Advertising would be the most obvious example. But if you think the big corporations have more control over us now compared to when they controlled the 3 major TV networks and the one or two local newspapers, well let's just say we disagree.

      --
      W..w..W - Willy Waterloo washes Warren Wiggins who is washing Waldo Woo.
  9. Mod parent up! by Anonymous Coward · · Score: 0

    Slashdot has lost its mind. Mod up.

  10. Chrome Browser Support by Anonymous Coward · · Score: 0

    So when do we get this in the Chrome browser?
    Clearly the future of cloud web hosting is for the website to actually be hosted and run in the users browser.

  11. Containers, not full-blown emulation. by DrYak · · Score: 1

    In addition of testimony of other users about running Virtual Box and using VT-x CPUs extensions,
    keep in mind that TFS mentions *containers*.

    i.e.: sort of super-chroots that uses in-kernel features (Cgroups) to partition more than just file system directories, but every other ressources too like CPU scheduling, etc. (unlike vanilla chroot. So they are a bit more secure)

    Everything runs under the same kernel (so a bit less secure than full-blown emulators like qemu, virtualbox, etc.) there's no emulation at all, and a single kernel is responsible for scheduling all the resources among containers.

    So basically, containers (e.g.: LXC, Docker, etc.) are as light-weight as a chroot. You can run a couple of them even on a Raspberry Pi. Any half decent chrome book would have no problems at all.

    The only actual limits would be RAM depending on how much software will be running at the same time among all the containers.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:Containers, not full-blown emulation. by Anonymous Coward · · Score: 0

      The only actual limits would be RAM depending on how much software will be running at the same time among all the containers.

      Unless they let you store the containers on SD, storage is a big issue with Chromebooks since most top at at 16GB.

  12. doesn't make sense by ooloorie · · Score: 2

    allowing Linux VMs to run inside a container

    You don't run "Linux VMs inside a container", you run processes or Linux distributions inside containers.

    1. Re:doesn't make sense by Anonymous Coward · · Score: 0

      Yo dawg...

    2. Re:doesn't make sense by Anonymous Coward · · Score: 0

      you run processes or Linux distributions inside containers.

      Yep, put it in it's container. Where it belongs.

      -Google, Microsoft, Apple, HP, Dell, etc...

  13. Run VM on weak hardware? by Anonymous Coward · · Score: 0

    Most Chromebooks have pretty basic hardware like a Celeron CPU some even having a ARM CPU. Then you have like 2 to 4 GB RAM which I would say is not nearly enough to run any sort of VM even on Chrome OS. Let's face it, Chromebooks have never amounted to much because their just cloud based cheap devices. Yes a few really nice one's come out but then your faced with Chrome OS. Your better off buying a cheap Windows PC and install a Linux OS on it yourself.

    1. Re:Run VM on weak hardware? by TheRaven64 · · Score: 1

      I used to run Windows 98 and Fedora 1.0 in an x86 emulator on a 1.25GHz PowerPC Mac with 1GB of RAM. Even most low-end Chromebooks are more powerful than that old machine. The overhead of the virtualisation is pretty low (10-20%) and if it's a container then it's negligible. The real cost is from the stuff that you run inside the VM.

      --
      I am TheRaven on Soylent News
    2. Re:Run VM on weak hardware? by yithar7153 · · Score: 1

      The upside of Chromebooks is that Linux is almost guaranteed to have drivers that work with the hardware. Sure my Celeron 3215U isn't super powerful but it works for my needs. I probably should have gotten a Dell CB13, but eh, maybe in the future.

  14. Re:Hardware gay sex with msmash's jelly dildos by squiggleslash · · Score: 4, Interesting

    I went several layers deep into TFA and I must admit, I'm still confused as to what exactly is being added to ChromeOS, so I wouldn't blame the editors here who are unlikely to be as knowledgeable about the ins and outs of virtualization, containers, UML, chroot, etc.

    Here's the problem: The reports claim Google is using both terms. The commit reads this:

    New device policy to allow Linux VMs on Chrome OS.

    If the policy is unset or set to true, running Linux VMs on Chrome OS is allowed. The unset is allowed means non-managed devices are allowed.

    Clears it up right? Well, kinda, except according to the same website, crosh has recently had commands added for "running programs inside a container".

    This could mean one of eleventeen things. They include:

    1. Both LXC style container technology and VMWare style VMs are coming to ChromeOS.
    2. Google is using the term "container" to describe some kind of lightweight VM type technology that'll appear in ChromeOS.
    5. Google has no idea what VMs are and/or has no idea what containers are, and has confused them, and is planning an LXC style sandboxing environment for ChromeOS.
    6. Like 5. but Google knows, it just doesn't care. 9. chromeunboxed is actually making shit up.

    I have no idea what the truth is. I'm guessing 6 simply because the low spec of most Chromebooks would make 2 less likely.

    --
    You are not alone. This is not normal. None of this is normal.
  15. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  16. still missing something... by Anonymous Coward · · Score: 0

    there is a need for some hardware choices for chrome os, including desktops with some expansion capabilities, that can actually run virtual machines (and without the ridiculous premium price tag of an intel core-based unit)......

    or

    an actual usable supported release of the software for install on *our choice* of hardware, not what google says is 'allowed'.

  17. Code check: How does this work? by twdorris · · Score: 1

    I know nothing about ChromeOS code. So clearly I shouldn't be surprised that I'm struggling to make since of this commit. But the size of this change seems small enough that I might expect to at least be able to make the two ends meet (the part storing and managing the new policy key and the part that reads that key and acts upon it).

    https://chromium-review.google...

    But I can't. All I see are things related to storing and managing the key. I don't understand how this newly created "thing" has any effect on the operation of the OS. Where is that policy checked? I assume there's some application layer outside of this structure that's acting upon the value of this new key, yes? Where could one find that?

    1. Re:Code check: How does this work? by TheRaven64 · · Score: 1

      I imagine that the ChromeOS (Linux) kernel is already built with KVM support, but the default security policy does not permit the user to create VMs. At first glance, it looks as if that commit is permitting the user to issue the KVM-related syscalls.

      --
      I am TheRaven on Soylent News
  18. Containers are not VMs by aglider · · Score: 1

    Come on!

    --
    Sent as ripples into the electromagnetic field. No single photon has been harmed in the process.
  19. Re:So... Android. by salesgeek · · Score: 1

    Touchscreen Chromebooks have been running android apps for about a year or so. ChromeOS has a full strength, desktop grade browser which is a much better experience than any mobile browser. Android apps are surprisingly good on ChromeOS now... Devices like Samsung's Chromebook Plus are basically what tablets want to be when they grow up. The bonus is being able to run Linux, and by adding container support, it would make that experience better and potentially much more secure than running crouton. One of the best features of ChromeOS devices is how easy to manage and restore they are compared to "full strength" OS devices.

    --
    -- $G
  20. Re:Surprised Oracle let's them use "containers"... by TheRaven64 · · Score: 1

    Container is a generic term. Solaris provides a service called Zones, which are based on FreeBSD Jails (but with a few improvements over the older Jails, such as full network-stack virtualisation and support for SysV IPC, both of which I think are now supported in FreeBSD). Linux provides a bunch of services that can be cobbled together to provide more or less the same abstractions.

    --
    I am TheRaven on Soylent News
  21. Finally a "feature" that I will use! by thecyber.ninja · · Score: 1

    This is Awesome! Currently using crouton, and it works well, it's just a hack. It would be exceptionally nice for it to be an officially supported feature. What other company would do this for the niche geek market? I am often tempted to boycott google products because of their work place politics and scary knowledge they posess about what I am thinking based on what I have entered into a search box... but if they keep producing things that work and are open... maybe they can have my data. Just layoff the stupid workplace politics...

    1. Re:Finally a "feature" that I will use! by Anonymous Coward · · Score: 0

      This is Awesome!

      Agreed. First thing I did after getting a chromebook was to put full Linux on it. After my wife accidentally left developer mode I never went back. Not having to go into developer mode bypass ChromeOS limitations would indeed be awesome.

  22. Re:So... Android. by drinkypoo · · Score: 1

    So, they're making Chrome OS move toward Android. Anyone surprised?

    I'm only surprised that Google can't make Chrome for Android worth half a shit, which is the only reason ChromeOS even exists. It remains grossly inferior to the real Chrome.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  23. Re:So... Android. by xvan · · Score: 1

    Android apps are surprisingly good on ChromeOS now.

    Dude, do you own a Chromebook?
    I have a samsung chromebook 3 and IMHO APK's on chromebook suck, at least on the graphic support, and that's the only thing you'd care about running an android application. It feels like running an android VM.

  24. Re:So... Android. by mark-t · · Score: 1

    He said "now"... that might suggest that the comment is only relevant to chromebooks that have come out more recently.

  25. Re:Surprised Oracle let's them use "containers"... by Hal_Porter · · Score: 1

    I think technically you're supposed to pay Oracle $1 each time you say, read or write the word 'container'.

    Container. Container. Container.

    I've got some S&P tracker ETFs so I guess that means I own some ORCL shares indirectly.

    --
    echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  26. Everybody is worth spying on by Sloppy · · Score: 1

    Everyone is worth spying on. If you have $10 in your bank account, you're worth a few seconds of a robot's time to try to rip off. As Geddy Lee explained: "Ten bucks is ten bucks."

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    1. Re:Everybody is worth spying on by mark-t · · Score: 1

      As I said, since passwords are never uploaded, there's not going to be any way for a robot to try and rip that money off.

      Also, chromebooks don't upload your bank balance because the chromebook doesn't actually know it. An app designed by your bank to check your bank accounts certainly could, but your bank isn't going to be interested in sending that information to google either.

  27. Re:So... Android. by farble1670 · · Score: 1

    Touchscreen Chromebooks have been running android apps for about a year or so. ChromeOS has a full strength, desktop grade browser which is a much better experience than any mobile browser. Android apps are surprisingly good on ChromeOS now.

    You know else runs Android apps surprisingly good? ANDROID.

  28. Re:Hardware gay sex with msmash's jelly dildos by dev-in-seattle · · Score: 1

    Yes, they containers and virt are different yet very related. So besides bashing the article, you should advise us of what the source changes are pointing towards.