brunch icon indicating copy to clipboard operation
brunch copied to clipboard

Booting ChromeOS Intel recovery images with Nvidia / AMD / Vmware graphics only (no i915)

Open sebanc opened this issue 4 years ago • 12 comments

Currently, ChromeOS will not boot when there is no Intel GPU because only i915 graphics userspace drivers are included in the recovery images (you can easily confirm it by running "ls /usr/lib64/dri/").

During the last 2 days I have tried to build from source and add the full "libdrm" and "mesa" drivers to ChromeOS, however it did not succeed and I have no more time to spend on this.

If someone finds a proper way to add other userspace graphic drivers to chromeos recovery images, I don't mind implementing it but until then:

  • Issues related to booting Intel recovery images without i915 (only Nvidia / AMD GPU) will be instantly closed.
  • Issues related to ChromeOS not booting under Virtualbox (Vmware GPU) will also be instantly closed.

sebanc avatar Jun 12 '20 06:06 sebanc

FYI Ryzen and StoneyRidge/BristolRidge iGPUs work too.

tejasraman avatar Oct 21 '22 23:10 tejasraman

Hello, Installing ChromeOS on VMware Workstation Pro is what I want to do. There is a statement that "visual machines are not supported" on the GitHub downloads page. Is it possible to make work on VMware Workstation or VirtualBox? Please, if you can assist, I appreciate it.

Jhone-Harry avatar Nov 13 '22 21:11 Jhone-Harry

No - because the VMware GPU doesn't work with the chromeOS drivers.

Trust me, I tried (with Workstation Player 16).

@Jhone-Harry

tejasraman avatar Nov 13 '22 21:11 tejasraman

QEMU may be used to install Chrome OS, I believe. @tejasraman

Jhone-Harry avatar Nov 14 '22 00:11 Jhone-Harry

Yes - the QEMU/KVM engine can emulate chipsets so you can get an unaccelerated VM there. It'll be slow though 🐌

@Jhone-Harry

tejasraman avatar Nov 14 '22 00:11 tejasraman

Can't KVM do passthrough or something to achieve hardware acceleration?

xAffan avatar Jun 24 '23 10:06 xAffan

Can't KVM do passthrough or something to achieve hardware acceleration?

Yes, if you can pass through your iGPU you'd be good

tejasraman avatar Jun 24 '23 18:06 tejasraman

cna anyone send me there exported ova file i cant even get it to boot

zebn0710 avatar Jul 06 '23 23:07 zebn0710

cna anyone send me there exported ova file i cant even get it to boot

No one has an exported OVA file because unless you set up PCIe passthrough with KVM on Linux, you will not get it. (To do that you need an iGPU and a dGPU.

tejasraman avatar Jul 06 '23 23:07 tejasraman

So, I've been working on this for a while. Running ChromeOS in VMware requires vmwgfx (VMware SVGA 3D kernel module) built into the kernel itself. This is actually quite similar to how this works on a real Chromebook, there's no i915 module visible when running lsmod on my Pixelbook Go.

After booting with a kernel that has VMware's graphics drivers in the kernel (and not a module), the ChromeOS logo appears and then it tries to launch Chrome. And that's where it stops. Frecon seems to work at least since the bootsplash appears to depend on it to show up. There's clearly some graphics library issue since under FydeOS for VMware replacing the Chromium binary with one from a very close version of ChromeOS works just fine. Further experimentation is needed to figure out what is broken. I suspect that introducing new graphics drivers for other platforms would work very much the same way once we figure it out.

LagLifeYT avatar Feb 20 '24 01:02 LagLifeYT

I know vmwgfx is probably right out, but has this changed for amdgpu, with AMD APUs being in "real" Chromebooks now? What's the current DRM status in the brunch kernel? i915? radeon? amdgpu? Do we have Intel ARC/XE support now?

Forge64 avatar Feb 27 '24 01:02 Forge64

I know vmwgfx is probably right out, but has this changed for amdgpu, with AMD APUs being in "real" Chromebooks now? What's the current DRM status in the brunch kernel? i915? radeon? amdgpu? Do we have Intel ARC/XE support now?

DRM for all platforms are modules for some reason. Kind of silly since I believe Linux will choose the correct DRM driver when it finds a platform it has the driver for.

LagLifeYT avatar Mar 10 '24 04:03 LagLifeYT