Skip to content

Instantly share code, notes, and snippets.

@rm77
Forked from tejasraman/chromeos-win-qemu-guide.md
Created September 29, 2025 02:13
Show Gist options
  • Select an option

  • Save rm77/bcc0277e89892f191d1a1a1805ea80b4 to your computer and use it in GitHub Desktop.

Select an option

Save rm77/bcc0277e89892f191d1a1a1805ea80b4 to your computer and use it in GitHub Desktop.

Revisions

  1. @tejasraman tejasraman revised this gist Jul 26, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion chromeos-win-qemu-guide.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Installing ChromeOS Flex (hardware accelerated) on QEMU for Windows
    *** A word of warning. This will be slow and buggy. Do not attempt to use this as a daily driver. ***
    ***A word of warning. This will be slow and buggy. Do not attempt to use this as a daily driver.***
    ## Requirements:

    - Windows 10 or 11 (x64)
  2. @tejasraman tejasraman revised this gist Jul 26, 2023. No changes.
  3. @tejasraman tejasraman revised this gist Jul 26, 2023. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions chromeos-win-qemu-guide.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Installing ChromeOS Flex (hardware accelerated) on QEMU for Windows

    *** A word of warning. This will be slow and buggy. Do not attempt to use this as a daily driver. ***
    ## Requirements:

    - Windows 10 or 11 (x64)
    @@ -12,7 +12,7 @@

    ## Steps:

    - Enable Windows Hypervisor Platform from Control Pane;
    - Enable Windows Hypervisor Platform from Control Panel and reboot

    - Install QEMU. Make sure "Tools" is enabled.

    @@ -28,12 +28,12 @@

    - Rename the .bin to cros.raw (Ctrl+A to select file extension)

    - Type `'C:\Program Files\qemu\qemu-system-x86_64.exe' -vga virtio -m 8G -drive file=flex.vdi,format=vdi,index=1 -accel whpx,kernel-irqchip=on -drive file=cros.raw,format=raw,index=0 -device qemu-xhci -device usb-kbd -smp 4`
    - Type `'C:\Program Files\qemu\qemu-system-x86_64.exe' -vga virtio -m 8G -drive file=flex.vdi,format=vdi,index=1 -accel whpx,kernel-irqchip=on -drive file=cros.raw,format=raw,index=0 -device qemu-xhci -device usb-kbd -smp x` (where x is a number of cores (if you have a 4c/8t use 4)

    - Click "Install" and install to the vdi

    - Next boot, type `'C:\Program Files\qemu\qemu-system-x86_64.exe' -vga virtio -m 8G -drive file=flex.vdi,format=vdi,index=0 -accel whpx,kernel-irqchip=on -device qemu-xhci -device usb-kbd -smp 4` to boot into the VDI.
    - Next boot, type `'C:\Program Files\qemu\qemu-system-x86_64.exe' -vga virtio -m 8G -drive file=flex.vdi,format=vdi,index=0 -accel whpx,kernel-irqchip=on -device qemu-xhci -device usb-kbd -smp x` to boot into the VDI.

    - Profit (or not; this will be laggy. disabling 2d canvas accel will help a LOT and using the "new" blur engine in high res does too.)
    - Profit (or not; this will be laggy. Flags: disabling 2d canvas accel will help a LOT and using the "new" blur engine in high res does too.)

    (If you have an Intel CPU, you can use HAX accel (replace whpx with hax after installing intel Android tools)
    (If you have an Intel CPU, you can use HAX accel which will be faster (replace whpx with hax after installing intel Android tools)
  4. @tejasraman tejasraman created this gist Jul 25, 2023.
    39 changes: 39 additions & 0 deletions chromeos-win-qemu-guide.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    # Installing ChromeOS Flex (hardware accelerated) on QEMU for Windows

    ## Requirements:

    - Windows 10 or 11 (x64)

    ## Download Files:

    - Download [QEMU](https://qemu.weilnetz.de/w64/2023/)
    - Download [ChromeOS Flex](https://support.google.com/chromeosflex/answer/11541904?hl=en&ref_topic=11551271&sjid=18367939272423146231-NA) (remember to download the file; do NOT use Chromebook Recovery Utility)
    - Download Windows Terminal (if on Windows 10, included on 11)

    ## Steps:

    - Enable Windows Hypervisor Platform from Control Pane;

    - Install QEMU. Make sure "Tools" is enabled.

    - Open the Start menu and search for "Edit environment variables for your account". Click "Path", "Edit", "New" and then type `C:\Program Files\qemu`

    - Log out and log back in (to load the PATH variable)

    - Create a directory on yout system to store all your files. Move the downloaded Flex zip to this folder and unzip it. You will see a .bin file. Enable showing file extensions in your Explorer for this part

    - Right-click inside the folder and click "Open in Terminal". You will see a PowerShell window.

    - Type `qemu-img create -f vdi flex.vdi xG` (x represents number of GB)

    - Rename the .bin to cros.raw (Ctrl+A to select file extension)

    - Type `'C:\Program Files\qemu\qemu-system-x86_64.exe' -vga virtio -m 8G -drive file=flex.vdi,format=vdi,index=1 -accel whpx,kernel-irqchip=on -drive file=cros.raw,format=raw,index=0 -device qemu-xhci -device usb-kbd -smp 4`

    - Click "Install" and install to the vdi

    - Next boot, type `'C:\Program Files\qemu\qemu-system-x86_64.exe' -vga virtio -m 8G -drive file=flex.vdi,format=vdi,index=0 -accel whpx,kernel-irqchip=on -device qemu-xhci -device usb-kbd -smp 4` to boot into the VDI.

    - Profit (or not; this will be laggy. disabling 2d canvas accel will help a LOT and using the "new" blur engine in high res does too.)

    (If you have an Intel CPU, you can use HAX accel (replace whpx with hax after installing intel Android tools)