Unable to start Fuchsia Emulator on Ubuntu

조회수 209회
읽지 않은 첫 메시지로 건너뛰기

Rohan Thacker

읽지 않음,
2021. 5. 15. 오후 3:51:2221. 5. 15.
받는사람 discuss
Hello Everyone,

Hope you're well, I am trying to build Fuchsia OS and run it on the Fuchsia Emulator femu, but after waiting for the emulator to start the fx command exists and displays the error below.

failed to create Fuchsia device device health check failed. Unable to ssh due to error: Error: Cannot start Fuchsia Emulator. Exit status is 1

I have followed the instructions provided at fuchsia.dev, the build completes successfully and the commands used to build the OS was

fx set core.qemu-x64 --with //examples/hello_world fx build

Subsequently, I tried running with headless mode turned on "fx vdl start -N --headless" however this results in the same error as above, I also tried to build the OS without the --with argument but received the same error.

On looking through the log file, we see a network error on the second last line of the log file, maybe this is of interest? it reads:

emu-system-x86_64-headless: network script /etc/qemu-ifdown failed with status 256

I am using Ubuntu 21.04 on my machine,

Note: I've also posted this question on the stackover flow community

Thank you,

Rohan Thacker

메시지가 삭제되었습니다.

Yilong Li

읽지 않음,
2021. 5. 16. 오후 8:03:0621. 5. 16.
받는사람 Rohan Thacker, dis...@fuchsia.dev
It seems that the network configuration scripts /etc/qemu-ifup and /etc/qemu-ifdown are missing. You can work around it by installing the qemu package: 
$ sudo apt install qemu

I am using Ubuntu 21.04 on my machine.

P.S: I've also posted this question on the stackover flow community

Thank you,

Rohan Thacker

--
All posts must follow the Fuchsia Code of Conduct https://fuchsia.dev/fuchsia-src/CODE_OF_CONDUCT or may be removed.
---
You received this message because you are subscribed to the Google Groups "discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+u...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/discuss/CAGgOCsm7rXXHj%2BKqhThFnGwWa%2BwQbAx1iSo643UDs1zPVjbCvA%40mail.gmail.com.


--
-Yilong

Rohan Thacker

읽지 않음,
2021. 5. 16. 오후 8:59:5521. 5. 16.
받는사람 Yilong Li, dis...@fuchsia.dev
Thank you Yilong, installing qemu resolved the network issues. Does this mean qemu is a required dependency? In other words, should this line in the docs be updated "sudo apt-get install curl git unzip" to include qemu?

Amit Uttamchandani

읽지 않음,
2021. 5. 17. 오전 12:19:4821. 5. 17.
받는사람 Rohan Thacker, Gabe Schine, Yilong Li, discuss

Gabe Schine

읽지 않음,
2021. 5. 17. 오후 1:09:3221. 5. 17.
받는사람 Amit Uttamchandani, Rohan Thacker, Yilong Li, discuss
Yes, if this is a prereq, preflight should check for it.


It'd be an excessively simple CL ;).
--
Gabe Schine
Software Engineer / Manager

Rohan Thacker

읽지 않음,
2021. 5. 17. 오후 1:22:5721. 5. 17.
받는사람 Gabe Schine, Amit Uttamchandani, Yilong Li, discuss
May I do this?

If I understand correctly, Adding "qemu" to line 13 of this file is required?

Gabe Schine

읽지 않음,
2021. 5. 17. 오후 1:27:5721. 5. 17.
받는사람 Rohan Thacker, Amit Uttamchandani, Yilong Li, discuss
That's correct, and yes, please go ahead! You can send the review to me.

James Tucker

읽지 않음,
2021. 5. 17. 오후 1:30:5421. 5. 17.
받는사람 Gabe Schine, Rohan Thacker, Amit Uttamchandani, Yilong Li, discuss
We ship a prebuilt for qemu, actually two, one qemu, one femu.

I don't see any of our scripts depending on this path in /etc. Some distros wouldn't put a file there, also, as they're trending toward not writing package static files to /etc.

Is this a bug in femu that needs to be filed?

Yilong Li

읽지 않음,
2021. 5. 17. 오후 2:48:4521. 5. 17.
받는사람 James Tucker, Gabe Schine, Rohan Thacker, Amit Uttamchandani, discuss
On Mon, May 17, 2021 at 10:30 AM James Tucker <ra...@google.com> wrote:
We ship a prebuilt for qemu, actually two, one qemu, one femu.

I don't see any of our scripts depending on this path in /etc. Some distros wouldn't put a file there, also, as they're trending toward not writing package static files to /etc.

QEMU/AEMU use /etc/qemu-(ifup|ifdown) as fallback scripts if "script=" or "downscript=" are not specified in QEMU command arguments.

AEMU has its own fallback logic but it seems we didn't use this if it runs Fuchsia (using its min-config mode): 

 
Is this a bug in femu that needs to be filed?



--
-Yilong

Camden Bruce

읽지 않음,
2021. 5. 20. 오전 4:42:5321. 5. 20.
받는사람 discuss, Yilong Li, Gabe Schine, thacke...@gmail.com, Amit Uttamchandani, discuss, James Tucker

Does this affect other versions of Ubuntu, or Debian? Last I checked it was working fine for me on 20.04.

Yilong Li

읽지 않음,
2021. 5. 20. 오전 7:31:0821. 5. 20.
받는사람 Camden Bruce, discuss, Gabe Schine, thacke...@gmail.com, Amit Uttamchandani, James Tucker
The change has landed on both "fx vdl" and "fx emu" scripts (https://fuchsia-review.googlesource.com/c/fuchsia/+/530910) to set "downscripts" argument correctly, so it should work now for any distros.



--
-Yilong

Camden Bruce

읽지 않음,
2021. 5. 20. 오후 7:45:5121. 5. 20.
받는사람 discuss, Yilong Li, discuss, Gabe Schine, thacke...@gmail.com, Amit Uttamchandani, James Tucker, Camden Bruce
Okay cool
전체답장
작성자에게 답글
전달
새 메시지 0개