[Project] ChromeOS Flex in a Docker (dockur) container: KVM accel + GPU + browser viewer, no manual QEMU setup
I needed to test something on ChromeOS, but didnt want to pull out any other hardware. I have used Dockur windows/mac containers for years, so I packaged Chromeos flex into a similar Dockur style container that does it all for you.
It's built on the same [qemus/qemu](https://github.com/qemus/qemu) base as [dockur/windows](https://github.com/dockur/windows) and [dockur/macos](https://github.com/dockur/macos), so it'll feel familiar if you've used them.
What it does:
* Auto-downloads the current Flex recovery image at startup
* KVM acceleration out of the box
* Auto-detects your GPU and sets up hardware rendering, so no 3 fps software-rendering slideshow
* Browser-based viewer on port 8006
Basically one compose file:
yaml
services:
chromeos:
image: forkymcforkface/chromeos
container_name: chromeos
environment:
VERSION: "stable"
GPU: "Y"
devices:
- /dev/kvm
- /dev/net/tun
device_cgroup_rules:
- "c 226:* rwm"
cap_add:
- NET_ADMIN
ports:
- 8006:8006
volumes:
- ./chromeos:/storage
- /dev/dri:/dev/dri:rw
restart: always
Bring it up, open `localhost:8006`, click through the installer once, and it boots straight to the login screen after that.
Repo: [https://github.com/forkymcforkface/chromeos](https://github.com/forkymcforkface/chromeos)
Feedback welcome, especially on what breaks on other hardware.
https://redd.it/1tw2fdm
@r_linux
Post #42132
65