fuchsia

Fuchsia Emulator Start Reading SDK Version Errored


So I'm trying to run my fuchsia emulator but I keep running into the same problem. I'm running on a Virtualbox VM of Ubuntu v20.04. I set up and built core.qemu-x64 according to the getting started instructions on fuchsia.dev website. However, whenever I run fx vdl start -N while in the fuchsia directory I just get "[info] Waiting for emulator to start..." which it repeats endlessly. Looking at the logs it shows the error message "Reading sdk version errored: No such file or directory (os error 2)". This seems like why the emulator is failing to start. Looking online it seems to be a problem with how this version of Ubuntu resolves certain imports.

Is there a way I can start the emulator that would tell me what file(s) this error is coming from so I can manually resolve it? Otherwise, is there another solution that could fix this issue?

Thank you for any input, please let me know if I can provide any additional information.

Below is a screenshot of the output: enter image description here

Edit: I tried fx qemu -kN and got this output but no change to the original start behaviour: enter image description here

I also tried fx emu and got this output, still no change to the original start: enter image description here


Solution

  • So I was able to resolve it eventually and first of all, I'd recommend increasing the allocated RAM of your VM. I went from 2GB to 7GB and I'm pretty sure that resolved part of it. Then continue with Marco's recommendations. The command fx qemu -N (or fx qemu -Nk if you have kvm enabled) seemed to do it for me. After I ran that I got another error message with a different command to run. Once I ran that new command and reran fx qemu -N it seemed to start working. Finally opening another terminal and starting fuchsia with fx vdl start -N made the emulator start up just fine. Thanks for the help everyone!