Run ChromeOS Flex in QEMU
First we need to find the chromeos flex recovery image. We can find a link to it here,
https://dl.google.com/dl/edgedl/chromeos/recovery/cloudready_recovery.json
At the time, the image is here,
Download it and unzip. Then create a disk image to install chromeos.
|
|
Then run qemu with both images attached, makes sure the recovery image is hda.
|
|
The important sections are -device virtio-vga-gl
and -display **,gl=on,
which attaches a hardware accelerated graphics device using virgl and then use that for displaying stuff. Without this Chromeos will try to cpu render graphics and it will be supper laggy.
-usb -device usb-tablet
is there because Chromeos doesn’t seem to play nice with the qemu mouse device. usb-tablet works okay, but we don’t get scrolling
Follow the on screen instructions to install Chromeos into disk.img. After it’s done, shout down the VM, stop qemu and then run this to start using ChromeOS from disk.img.
|
|
These commands worked for me on ubuntu 22.04.01 LTS and let me use Chromeos on guest mode. I didn’t try to log in.
I found some of the info from this Japanese blog https://blog.oyasu.info/2022/05/02/8439/
Written on October 4, 2022 by Madushan Nishantha.
Originally published on Medium