Skip to content

Instantly share code, notes, and snippets.

@superboum
Last active December 19, 2022 10:30
Show Gist options
  • Save superboum/dd71a4e9659869f4ef4afc23ee7e7802 to your computer and use it in GitHub Desktop.
Save superboum/dd71a4e9659869f4ef4afc23ee7e7802 to your computer and use it in GitHub Desktop.
qemu-system-x86_64 -enable-kvm \
    -m 4G -smp 4 \
    -device virtio-vga-gl,xres=1280,yres=720 \
    -serial mon:stdio \
    -display sdl,gl=on,show-cursor=on \
    -usb -device usb-mouse -device usb-kbd  -device usb-tablet \
    -net user,hostfwd=tcp::8022-:22 -net nic \
    -drive format=raw,file=chromiumos_qemu_image.bin
    
 # https://www.reddit.com/r/ChromiumOS/comments/qsu6g0/tutorial_using_official_prebuilt_chromium_os/
 # https://www.reddit.com/r/archlinux/comments/prmzeb/qemu_with_virgl_doesnt_work_anymore/
 
 qemu-system-x86_64 -enable-kvm \
    -m 8G -smp 8 \
    -cpu SandyBridge,-invpcid,-tsc-deadline,check \
    -device 'virtio-net,netdev=eth0' \
    -device 'virtio-scsi-pci,id=scsi' \
    -device virtio-rng \
    -device 'scsi-hd,drive=hd' \
    -vga virtio \
    -serial mon:stdio \
    -display sdl,gl=off,show-cursor=on \
    -usb -device usb-mouse -device usb-kbd  -device usb-tablet \
    -netdev 'user,id=eth0,net=10.0.2.0/27,hostfwd=tcp:127.0.0.1:9222-:22' \
    -drive 'if=none,id=hd,format=raw,cache=unsafe,file=chromiumos_qemu_image.bin'

# -device virtio-vga,xres=1280,yres=720 \
# -cpu host \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment