Prerequisites: This process requires a graphical desktop environment. The steps below do not work in a headless SSH session.
Use the steps below to validate a code change in QEMU.
ffx emu stop --allfx build --quietmkdir -p localrm -f local/logs.qemu.*ffx emu start --engine qemu --net tap --log local/logs.qemuffx to exit. The last output line should be: Emulator is ready.ffx target waitffx emu start command above, the UART logs are at local/logs.qemu.serial. Example: grep --context=3 "virtio-gpu-display" local/logs.qemu.serialffx log dump > local/logs.qemu.fuchsiagrep --context=3 "ERROR" local/logs.qemu.serialUse the steps below to run shell tools in the emulator, such as display-tool.
fx serve --foregroundServing repository '/ssd/fuchsia/out/x64/amber-files' over address '[::]:8083'.ffx target ssh -- {COMMAND} [{ARGUMENTS...}]. Example: ffx target ssh -- display-tool infoCannot create child process: -25 (ZX_ERR_NOT_FOUND), wait a few seconds for the VM to connect to the package server, and try again.