Hello,
I downloaded and installed Fuchsia in an arm64 Mac by running an x64 terminal (as suggested in the documentation).
I've built my Fuchsia image like so:
fx set workstation.qemu-x64 --release
fx build
... and now, when I try to run FEMU, I get this output:
frumiousj@dirtycomputer fuchsia % fx vdl start
2021/06/16 20:56:52 [info] FVD Properties:
device_spec: {
horizontal_resolution: 1280
vertical_resolution: 800
vm_heap: 192
ram: 8192
cache: 32
screen_density: 240
}
fvm_size: "2G"
gpu: "host"
2021/06/16 20:56:52 [info] images: using fvm tool from /Users/frumiousj/src/fuchsia/out/default/host_x64/fvm
2021/06/16 20:56:52 [info] images: using zbi tool from /Users/frumiousj/src/fuchsia/out/default/host_x64/zbi
2021/06/16 20:56:52 [info] Resizing /var/folders/5l/7f_8r141005d0dp1446cl3t80000gn/T/launcher500944086/femu_fvm file to 2G
2021/06/16 20:56:52 [info] found fuchsia board architecture: arm64
2021/06/16 20:56:52 [info] running on host architecture: amd64
2021/06/16 20:56:52 [info] device: DISPLAY=:0
2021/06/16 20:56:52 /Users/frumiousj/src/fuchsia/prebuilt/third_party/aemu/mac-x64/emulator -feature VirtioInput,GLDirectMem,Vulkan,RefCountPipe -metrics-collection -avd-arch arm64 -no-hidpi-scaling -gpu host -window-size 1280x800 -no-location-ui -fuchsia -kernel /var/folders/5l/7f_8r141005d0dp1446cl3t80000gn/T/vdl_staging_MmWNWh/femu_kernel -initrd /var/folders/5l/7f_8r141005d0dp1446cl3t80000gn/T/launcher500944086/femu_zircona-ed25519 -m 8192M -vga none -device virtio-keyboard-pci -smp 4,threads=2 -drive file=/var/folders/5l/7f_8r141005d0dp1446cl3t80000gn/T/launcher500944086/femu_fvm,format=raw,if=none,id=vdisk -device virtio-blk-pci,drive=vdisk -serial stdio -machine q35 -device isa-debug-exit,iobase=0xf4,iosize=0x04 -cpu Haswell,+smap,-check,-fsgsbase -device virtio_input_multi_touch_pci_1 -soundhw hda -netdev type=user,id=net0,restrict=off,hostfwd=tcp::48220-:22,hostfwd=tcp::54264-:22 -device virtio-net-pci,vectors=8,netdev=net0,mac=52:54:00:63:5e:7a -append "verbose kernel.serial=legacy TERM=xterm-256color kernel.entropy-mixin=42ac2452e99c1c979ebfca03bce0cbb14126e4021a6199ccfeca217999c0aaa0 kernel.halt-on-panic=true zircon.nodename=fuchsia-5254-0063-5e7a kernel.lockup-detector.critical-section-fatal-threshold-ms=0"
2021/06/16 20:56:52 Starting emulator
2021/06/16 20:56:52 [info] Failed ssh. Device is probably not up yet: dial tcp [::1]:48220: connect: connection refused
2021/06/16 20:56:52 [info] Waiting for emulator to start...
2021/06/16 20:56:53 [info] Failed ssh. Device is probably not up yet: dial tcp [::1]:48220: connect: connection refused
[... many more of the same messages]
2021/06/16 20:58:51 [info] Waiting for emulator to start...
2021/06/16 20:58:52 [info] Failed ssh. Device is probably not up yet: dial tcp [::1]:48220: connect: connection refused
2021/06/16 20:58:52 [info] Waiting for emulator to start...
2021/06/16 21:02:02 failed to start Fuchsia device: 4:device health check failed. Unable to ssh due to error:
When I run the 'emulator' directly, it says it needs to replace the executable, does that, and _still_ doesn't work:
frumiousj@dirtycomputer fuchsia % ./prebuilt/third_party/aemu/mac-x64/emulator -feature VirtioInput,GLDirectMem,Vulkan,RefCountPipe,HVF -metrics-collection -no-hidpi-scaling -gpu host -window-size 1280x800 -no-location-ui -fuchsia -kernel /var/folders/5l/7f_8r141005d0dp1446cl3t80000gn/T/vdl_staging_Bw2EMG/femu_kernel -initrd /var/folders/5l/7f_8r141005d0dp1446cl3t80000gn/T/launcher610636832/femu_zircona-ed25519 -m 8192M -vga none -device virtio-keyboard-pci -smp 4,threads=2 -drive file=/var/folders/5l/7f_8r141005d0dp1446cl3t80000gn/T/launcher610636832/femu_fvm,format=raw,if=none,id=vdisk -device virtio-blk-pci,drive=vdisk -serial stdio -machine q35 -device isa-debug-exit,iobase=0xf4,iosize=0x04 -enable-hvf -cpu Haswell -device virtio_input_multi_touch_pci_1 -soundhw hda -netdev type=user,id=net0,restrict=off,hostfwd=tcp::32824-:22,hostfwd=tcp::52103-:22 -device virtio-net-pci,vectors=8,netdev=net0,mac=52:54:00:63:5e:7a -append "verbose kernel.serial=legacy TERM=xterm-256color kernel.entropy-mixin=42ac2452e99c1c979ebfca03bce0cbb14126e4021a6199ccfeca217999c0aaa0 kernel.halt-on-panic=true zircon.nodename=fuchsia-5254-0063-5e7a kernel.lockup-detector.critical-section-fatal-threshold-ms=0 kernel.page-scanner.page-table-eviction-policy=never"
emulator: ERROR: process is translated under Rosetta. Attempting to replace emulator installation.
emulator: Replacing via command: /Users/frumiousj/src/fuchsia/prebuilt/third_party/aemu/mac-x64/darwin-aarch64-replace.sh (downloading ~120 MB)...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 651 100 651 0 0 2120 0 --:--:-- --:--:-- --:--:-- 2120
1 91.8M 1 1618k 0 0 306k 0 0:05:06 0:00:05 0:05:01 342k^Cemulator: Replacement done. Please relaunch the emulator. You will also need to be using an Apple Silicon-compatible system image.
Any clue as to how to get this working?
Cheers,
- johnk