Portable Fuchsia Emulator
title: Portable Fuchsia Emulator (FImage)
permalink: os/fimage.html
FImage is provided for the convenience of developers and enthusiasts who don’t want to compile Fuchsia.
We are in no way affiliated Google. For more information, see fimage/LICENSE.
The windows method is highly unstable and should only be used if you cannot install or boot into linux on your device.
To quickly run FImage, use the commands below inside of its folder:
./ffx-linux-x64 platform preflight
./network-config
./fimage-gui 4096
See Explore Fuchsia for tips on what you can do next.
When you’re done, you can clean up via dm shutdown
.
linux
windows (wsl2)
First, download the latest Fimage tool at fimage/releases.
Extract the file fimage-<version>.zip
and go into the fimage folder.
Begin by checking your hardware, using the provided ffx
tool. FFX Documentation on fuchsia.dev
./ffx-linux-x64 platform preflight
This will print information about the hardware and software. If you are missing any dependencies or lacking hardware, it will let you know. The most common error is related to a lack of a supported GPU, to negate this, FImage uses software rendering by default, which may affect performance. If you have a supported GPU (Intel Ivy Bridge or newer), use the fimage-gui-hostGPU
script to run FImage.
After following the instructions generated by the ffx preflight checks, you will need to configure networking, using the command below. This will configure the network interfaces for FEMU.
./network-config
Finally, the emulator is ready to run! Select one of the different launch options and use that to launch the emulator.
The command syntax is the same for each option. For example, to launch an FImage instance with 4GiB of RAM and a GUI, use:
./fimage-gui 4096
The launch options are as follows:
Fimage can be installed on dahliaOS Linux with:
dap install fimage
A guide to Flutter development with FImage can be found here: Setting up FImage for Application Development
A WIP script is in testing thats should enable to atleast boot fuchsia in the terminal. Booting fuchsia with the fimage gui is possible but highly unstable.
First install wsl2 on windows by opening powershell or windows terminal and running this command.
wsl --install
After that reboot your machine and open up again powershell or windows terminal and running the first command to use fimage in cli mode recommended or the second command to use fimage in gui mode. If you use the gui mode and close fimage make sure you run the reset command afterwards.
cli command
wget https://docs.dahliaos.io/scripts/fimage/windows/wsl2/launch.sh && sudo chmod +x launch.sh; sudo ./launch.sh -cli
gui command
wget https://docs.dahliaos.io/scripts/fimage/windows/wsl2/launch.sh && sudo chmod +x launch.sh; sudo ./launch.sh -gui
reset command
wget https://docs.dahliaos.io/scripts/fimage/windows/wsl2/launch.sh && sudo chmod +x launch.sh; sudo ./launch.sh -reset
Command-line interface in gnome-terminal
Follow the documented steps from fuchsia.dev and then set the full target with tools, fx set workstation.qemu-x64 --with-base=//bundles:tools
export FUCHSIA_SSH_CONFIG=”/Users/nmcain/fuchsia/out/default/ssh-keys/ssh_config”