Cuttlefish Android failed to start

22 views
Skip to first unread message

Qinglin Li

unread,
Jun 21, 2024, 1:11:38 PMJun 21
to crosvm-dev
Hello, everyone.
I'm using cuttlefish android and I'm getting errors when running it, the key issue seems to be an error in crosvm,My operating system is Ubuntu 24.04.

The logs are shown below:

openwrt D 06-21 23:00:51 26059 26059 log_tee.cpp:175] crosvm[1]: libminijail[1]: unshare(CLONE_NEWNS) failed: Operation not permitted
crosvm D 06-21 23:00:51 26088 26088 log_tee.cpp:175] crosvm[1]: libminijail[1]: unshare(CLONE_NEWNS) failed: Operation not permitted
metrics I 06-21 23:00:51 26079 26094 utils.cc:203] Metrics posted to ClearCut
casimir D 06-21 23:00:52 26082 26082 log_tee.cpp:142] [INFO  casimir] Incoming NCI connection from 127.0.0.1:37600
casimir D 06-21 23:00:52 26082 26082 log_tee.cpp:142] [INFO  casimir] Accepted NCI connection from 127.0.0.1:37600 in slot 0
webRTC E 06-21 23:00:52 26064 26388 vsock_connection.cpp:218] Failed to connect:No such device
openwrt E 06-21 23:00:52 26059 26059 log_tee.cpp:155] [2024-06-21T15:00:52.444563884+00:00 ERROR crosvm] exiting with error 1: the architecture failed to build the vm
openwrt E 06-21 23:00:52 26059 26059 log_tee.cpp:155]
openwrt E 06-21 23:00:52 26059 26059 log_tee.cpp:155] Caused by:
openwrt E 06-21 23:00:52 26059 26059 log_tee.cpp:155]     failed to create a PCI root hub: failed to create proxy device: Failed to configure tube: failed to receive packet: Connection reset by peer (os error 104)
run_cvd I 06-21 23:00:52 26056 26056 process_monitor.cc:59] Detected unexpected exit of monitored subprocess /home/kyle/source/out/host/linux-x86/bin/process_restarter
run_cvd I 06-21 23:00:52 26056 26056 process_monitor.cc:61] Subprocess /home/kyle/source/out/host/linux-x86/bin/process_restarter (26060) has exited with exit code 1
webRTC E 06-21 23:00:53 26064 26388 vsock_connection.cpp:218] Failed to connect:No such device
webRTC E 06-21 23:00:53 26064 26412 server.cpp:368] Client closed the connection
webRTC E 06-21 23:00:53 26064 26498 server.cpp:368] Client closed the connection
webRTC E 06-21 23:00:53 26064 26497 server.cpp:368] Client closed the connection
crosvm E 06-21 23:00:53 26088 26088 log_tee.cpp:155] [2024-06-21T15:00:53.514986197+00:00 ERROR crosvm] exiting with error 1: the architecture failed to build the vm
crosvm E 06-21 23:00:53 26088 26088 log_tee.cpp:155]
crosvm E 06-21 23:00:53 26088 26088 log_tee.cpp:155] Caused by:
crosvm E 06-21 23:00:53 26088 26088 log_tee.cpp:155]     failed to create a PCI root hub: failed to create proxy device: Failed to configure tube: failed to receive packet: Connection reset by peer (os error 104)
run_cvd I 06-21 23:00:53 26056 26056 process_monitor.cc:59] Detected unexpected exit of monitored subprocess /home/kyle/source/out/host/linux-x86/bin/process_restarter
run_cvd I 06-21 23:00:53 26056 26056 process_monitor.cc:61] Subprocess /home/kyle/source/out/host/linux-x86/bin/process_restarter (26089) has exited with exit code 1
run_cvd E 06-21 23:00:53 26056 26056 process_monitor.cc:122] Stopping all monitored processes due to unexpected exit of critical process
run_cvd D 06-21 23:00:53 26056 26056 subprocess.cpp:503] Started (pid: 26548): /home/kyle/source/out/host/linux-x86/bin/stop_cvd
metrics I 06-21 23:00:53 26079 26094 host_receiver.cc:49] Metrics host received: VMStop
run_cvd D 06-21 23:00:53 26056 26056 process_monitor.cc:134] Stopping monitored subprocesses
crosvm D 06-21 23:00:53 26088 26088 log_tee.cpp:196] Finished reading from process crosvm
webRTC I 06-21 23:00:53 26064 26411 main.cpp:353] Received command to stop recording in main.cpp.
run_cvd I 06-21 23:00:53 26056 26056 process_monitor.cc:75] Detected unexpected exit of monitored subprocess /home/kyle/source/out/host/linux-x86/bin/webRTC
run_cvd E 06-21 23:00:53 26056 26056 process_monitor.cc:80] Subprocess /home/kyle/source/out/host/linux-x86/bin/webRTC (26064) was interrupted by a signal 'Killed' (9)
modem_simulator I 06-21 23:00:53 26057 26057 main.cpp:145] Exit request from parent process
run_cvd D 06-21 23:00:53 26056 26056 process_monitor.cc:468] Done monitoring subprocesses


launcher.log

Dennis Kempin

unread,
Jun 21, 2024, 1:17:02 PMJun 21
to Qinglin Li, crosvm-dev, Cloud Android [External]
This is probably a question for cuttlefish folks at cloud-an...@google.com
Anyone has any ideas?

This error sounds like some device process failed during init, but it doesn't really say which one:

`failed to create a PCI root hub: failed to create proxy device: Failed to configure tube: failed to receive packet: Connection reset by peer (os error 104)`

Maybe caused by this earlier issue? `unshare(CLONE_NEWNS) failed: Operation not permitted`, which I suspect means the seccomp policy is missing an entry?


--
You received this message because you are subscribed to the Google Groups "crosvm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crosvm-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/crosvm-dev/20bbc32d-fa55-4afd-9124-0c1b47456df7n%40chromium.org.

Frederick Mayle

unread,
Jun 25, 2024, 3:48:43 PM (13 days ago) Jun 25
to Dennis Kempin, Qinglin Li, crosvm-dev, Cloud Android [External]
That error is inside minijail_enter. Seems like you don't have enough permissions to setup the sandboxing. If it is acceptable for you, you could disable sandboxing by passing `--enable-sandbox=false` to `launch_cvd` (or `cvd start`)

Reply all
Reply to author
Forward
0 new messages