- Download the latest version of the Fuchsia IDK (it doesn't matter whether you choose
Linux
orMacOS
). - Unzip it, and go to
device
and choose eitherqemu-x64.json
orqemu-arm64.json
, depending on which platform you'll like to emulate. - Open up your chosen
.json
file and copy everything aftergs://
under"images_url"
. Then, paste into your browser,storage.googleapis.com
+ whatever came after it. - Wait for the download to finish, then unzip it into a directory
- Create a tap interface and either bridge your ethernet or Wifi to it (for Windows, I've had success with OpenVPN and sharing my Wifi with my TAP interface in the Control Panel; for MacOS, you can use tuntaposx; for Linux, you can find instructions online).
- Convert the
storage-full.blk
to a qcow2 file withqemu-img convert -f raw -O qcow2 storage-full.blk storage-full.qcow2
- Resize the qcow2 file with
qemu-img resize -f qcow2 storage-full.qcow2 +5G
- Execute
qemu-system-x86_64 -kernel fuchsia/qemu-kernel.kernel -initrd fuchsia/zircon-a.zbi -drive file=fuchsia/storage-full.qcow2 -machine q35 -cpu Haswell,+smap,-fsgsbase -m 5G -netdev tap,id=mynet0,ifname=tap-test,script=no,downscript=no -device e1000,netdev=mynet0
. If you absolutely can not use HAXM, Hyper-V, KVM, etc., you can add-smp 4 -accel tcg,thread=multi
. Otherwise, addenable-
+ your accelerator of choice. - Enjoy!
Last active
June 1, 2021 20:22
-
-
Save DUOLabs333/4467e2e0c49e819307db090d6c1c0a5b to your computer and use it in GitHub Desktop.
Boot up Fuchsia VM without having to compile anything
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment