Get some problems when running cuttlefish instance

2,511 views
Skip to first unread message

zaoyehuo

unread,
Apr 28, 2021, 10:54:56 AM4/28/21
to Android Building
Hi everyone, I followed https://android.googlesource.com/device/google/cuttlefish/ but when I run  HOME=$PWD ./bin/launch_cvd, I got :
===================================================================
NOTICE:

We collect usage statistics in accordance with our
Contributor License Agreement (https://cla.developers.google.com/),
===================================================================

Do you accept anonymous usage statistics reporting (Y/n)?: n
launch_cvd I 04-28 15:09:34 40118 40118 launch_cvd.cc:184] Host changed from last run: 1
assemble_cvd D 04-28 15:09:34 40139 40139 fetcher_config.cpp:212] Could not find file ending in kernel
assemble_cvd D 04-28 15:09:34 40139 40139 fetcher_config.cpp:212] Could not find file ending in initramfs.img
assemble_cvd I 04-28 15:09:34 40139 40139 flags.cc:819] Launching CVD using --config='phone'.
assemble_cvd D 04-28 15:09:34 40139 40139 subprocess.cpp:266] Started (pid: 40142): /home/cuttlefish/cvd/bin/extract-ikconfig
assemble_cvd D 04-28 15:09:34 40139 40139 subprocess.cpp:268] /home/cuttlefish/cvd/img/boot.img
Requested to continue an existing session, (the default) but the disk files have become out of date. Wiping the old session files and starting a new session for device CUTTLEFISHCVD011
Point your browser to https://0.0.0.0:8443 to interact with the device.
Serial console is disabled; use -console=true to enable it
The following files contain useful debugging information:
  Launcher log: /home/cuttlefish/cvd/cuttlefish_runtime.1/launcher.log
  Android's logcat output: /home/cuttlefish/cvd/cuttlefish_runtime.1/logcat
  Kernel log: / home  /cuttlefish/cvd/cuttlefish_runtime.1/kernel.log
  Instance configuration: /home/cuttlefish/cvd/cuttlefish_runtime.1/cuttlefish_config.json
  Instance environment: /home/cuttlefish/cvd/.cuttlefish.sh
[2021/04/28 15:09:36:6281] N:  Vhost 'localhost' using TLS mode
[2021/04/28 15:09:36:6286] N: openssl is too old to support lws_tls_vhost_cert_info
Size of OBJECT = 1204
Size of components in TPMT_SENSITIVE = 744
    TPMI_ALG_PUBLIC                 2
    TPM2B_AUTH                      50
    TPM2B_DIGEST                    50
    TPMU_SENSITIVE_COMPOSITE        642
MAX_CONTEXT_SIZE can be reduced to 1264 (1344)
[ERROR:external/crosvm/src/main.rs:2003] crosvm has exited with error: The architecture failed to build the vm: failed to set tss addr: File exists (os error 17)

Here is the whole launcher.log:
assemble_cvd D 04-28 15:09:35 40139 40139 clean.cc:97] Assuming prior files of /home/cuttlefish/cvd/cuttlefish_assembly /home/cuttlefish/cvd/.cuttlefish.sh /home/cuttlefish/cvd/.cuttlefish_config.json /home/cuttlefish/cvd/cuttlefish_runtime
assemble_cvd D 04-28 15:09:35 40139 40139 clean.cc:146] Setting up /home/cuttlefish/cvd/cuttlefish_assembly
assemble_cvd D 04-28 15:09:35 40139 40139 clean.cc:146] Setting up /home/cuttlefish/cvd/cuttlefish_runtime.1
assemble_cvd D 04-28 15:09:35 40139 40139 clean.cc:146] Setting up /home/cuttlefish/cvd/cuttlefish_runtime.1/internal
assemble_cvd D 04-28 15:09:35 40139 40139 clean.cc:146] Setting up /home/cuttlefish/cvd/cuttlefish_runtime.1/shared
assemble_cvd D 04-28 15:09:35 40139 40139 clean.cc:146] Setting up /home/cuttlefish/cvd/cuttlefish_runtime.1/recording
assemble_cvd D 04-28 15:09:35 40139 40139 data_image.cpp:194] misc partition image: use existing
assemble_cvd D 04-28 15:09:35 40139 40139 data_image.cpp:185] /home/cuttlefish/cvd/img/userdata.img exists. Not creating it.
assemble_cvd D 04-28 15:09:35 40139 40139 subprocess.cpp:266] Started (pid: 40378): /home/cuttlefish/cvd/bin/unpack_bootimg
assemble_cvd D 04-28 15:09:35 40139 40139 subprocess.cpp:268] --boot_img
assemble_cvd D 04-28 15:09:35 40139 40139 subprocess.cpp:268] /home/cuttlefish/cvd/img/vendor_boot.img
assemble_cvd D 04-28 15:09:35 40139 40139 subprocess.cpp:268] --out
assemble_cvd D 04-28 15:09:35 40139 40139 subprocess.cpp:268] /home/cuttlefish/cvd/cuttlefish_assembly
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:266] Started (pid: 40379): /bin/bash
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -c
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] cat /home/cuttlefish/cvd/cuttlefish_assembly/vendor_ramdisk*
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] Bootconfig parameters from vendor boot image and config are hardware=cutf_cvm
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] kernel.mac80211_hwsim.radios=0
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] kernel.snd-hda-intel.enable=0
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] kernel.vmw_vsock_virtio_transport_common.virtio_transport_max_vsock_pkt_buf_size=16384
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.fstab_suffix=f2fs
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.console=invalid
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.boot_devices=pci0000:00/0000:00:07.0,pci0000:00/0000:00:08.0
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.cpuvulkan.version=4198400
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.hardware.gralloc=minigbm
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.hardware.hwcomposer=ranchu
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.hardware.egl=angle
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.hardware.vulkan=pastel
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.serialno=CUTTLEFISHCVD011
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.lcd_density=320
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.setupwizard_mode=DISABLED
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.vsock_tombstone_port=6600
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.cuttlefish_config_server_port=6800
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.vendor.audiocontrol.server.cid=3
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.vendor.audiocontrol.server.port=9410
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.vsock_frames_port=6900
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.wifi_mac_address=40:1:2:3:4:1
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267] androidboot.verifiedbootstate=orange
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:267]
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:288] Cmdline from vendor boot image is printk.devkmsg=on firmware_class.path=/vendor/etc/ init=/init kfence.sample_interval=500 loop.max_part=7 bootconfig buildvariant=userdebug
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:266] Started (pid: 40380): /home/cuttlefish/cvd/bin/mkbootimg
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] --vendor_ramdisk
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] /home/cuttlefish/cvd/cuttlefish_assembly/concatenated_vendor_ramdisk
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] --header_version
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 4
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] --vendor_cmdline
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] printk.devkmsg=on firmware_class.path=/vendor/etc/ init=/init kfence.sample_interval=500 loop.max_part=7 bootconfig buildvariant=userdebug
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] --vendor_boot
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] /home/cuttlefish/cvd/cuttlefish_runtime.1/vendor_boot_repacked.img.tmp
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] --dtb
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] /home/cuttlefish/cvd/cuttlefish_assembly/dtb
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] --vendor_bootconfig
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] /home/cuttlefish/cvd/cuttlefish_runtime.1/bootconfig
assemble_cvd D 04-28 15:09:36 40139 40139 files.cpp:131] Renaming /home/cuttlefish/cvd/cuttlefish_runtime.1/vendor_boot_repacked.img.tmp to /home/cuttlefish/cvd/cuttlefish_runtime.1/vendor_boot_repacked.img
assemble_cvd D 04-28 15:09:36 40139 40139 boot_image_utils.cc:65] Updated /home/cuttlefish/cvd/cuttlefish_runtime.1/vendor_boot_repacked.img
assemble_cvd D 04-28 15:09:36 40139 40139 data_image.cpp:73] Creating /home/cuttlefish/cvd/cuttlefish_runtime.1/access-kregistry
assemble_cvd D 04-28 15:09:36 40139 40139 data_image.cpp:73] Creating /home/cuttlefish/cvd/cuttlefish_runtime.1/pstore
assemble_cvd D 04-28 15:09:36 40139 40139 data_image.cpp:73] Creating /home/cuttlefish/cvd/cuttlefish_runtime.1/sdcard.img
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:266] Started (pid: 40381): /home/cuttlefish/cvd/bin/newfs_msdos
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -F
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 32
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -m
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 0xf8
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -a
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 4088
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -o
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 0
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -c
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 8
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -h
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 255
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -u
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 63
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -S
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 512
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -s
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 4192256
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -C
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 2048M
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -@
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 1048576
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] /home/cuttlefish/cvd/cuttlefish_runtime.1/sdcard.img
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:266] Started (pid: 40382): /home/cuttlefish/cvd/bin/mkenvimage
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -s
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] 4096
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] -o
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] /home/cuttlefish/cvd/cuttlefish_runtime.1/uboot_env.img.tmp
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] /home/cuttlefish/cvd/cuttlefish_runtime.1/mkenvimg_input
assemble_cvd D 04-28 15:09:36 40139 40139 files.cpp:131] Renaming /home/cuttlefish/cvd/cuttlefish_runtime.1/uboot_env.img.tmp to /home/cuttlefish/cvd/cuttlefish_runtime.1/uboot_env.img
assemble_cvd D 04-28 15:09:36 40139 40139 boot_config.cc:112] Updated bootloader environment image.
assemble_cvd D 04-28 15:09:36 40139 40139 data_image.cpp:73] Creating /home/cuttlefish/cvd/cuttlefish_runtime.1/internal/factory_reset_protected.img
assemble_cvd D 04-28 15:09:36 40139 40139 files.cpp:131] Renaming /home/cuttlefish/cvd/cuttlefish_runtime.1/persistent_composite_disk_config.txt.tmp to /home/cuttlefish/cvd/cuttlefish_runtime.1/persistent_composite_disk_config.txt
assemble_cvd D 04-28 15:09:36 40139 40139 disk_flags.cc:278] Disk Config has changed since last boot. Regenerating composite disk.
assemble_cvd D 04-28 15:09:36 40139 40139 files.cpp:131] Renaming /home/cuttlefish/cvd/cuttlefish_runtime.1/os_composite_disk_config.txt.tmp to /home/cuttlefish/cvd/cuttlefish_runtime.1/os_composite_disk_config.txt
assemble_cvd D 04-28 15:09:36 40139 40139 disk_flags.cc:278] Disk Config has changed since last boot. Regenerating composite disk.
assemble_cvd I 04-28 15:09:36 40139 40139 disk_flags.cc:525] Requested to continue an existing session, (the default) but the disk files have become out of date. Wiping the old session files and starting a new session for device CUTTLEFISHCVD011
assemble_cvd D 04-28 15:09:36 40139 40139 disk_flags.cc:332] Available space: 1567461072896
assemble_cvd D 04-28 15:09:36 40139 40139 disk_flags.cc:333] Sparse size of "/home/cuttlefish/cvd/img/userdata.img": 6442450944
assemble_cvd D 04-28 15:09:36 40139 40139 disk_flags.cc:335] Disk size of "/home/cuttlefish/cvd/img/userdata.img": 6442450944
assemble_cvd D 04-28 15:09:36 40139 40139 data_image.cpp:73] Creating /home/cuttlefish/cvd/cuttlefish_runtime.1/access-kregistry
assemble_cvd D 04-28 15:09:36 40139 40139 data_image.cpp:73] Creating /home/cuttlefish/cvd/cuttlefish_runtime.1/pstore
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:266] Started (pid: 40383): /home/cuttlefish/cvd/bin/crosvm
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] create_qcow2
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] --backing_file=/home/cuttlefish/cvd/cuttlefish_runtime.1/os_composite.img
assemble_cvd D 04-28 15:09:36 40139 40139 subprocess.cpp:268] /home/cuttlefish/cvd/cuttlefish_runtime.1/overlay.img
run_cvd D 04-28 15:09:36 40387 40387 subprocess.cpp:266] Started (pid: 40391): /bin/bash
run_cvd D 04-28 15:09:36 40387 40387 subprocess.cpp:268] -c
run_cvd D 04-28 15:09:36 40387 40387 subprocess.cpp:268] egrep -h -e "^iff:.*" /proc/*/fdinfo/*
run_cvd I 04-28 15:09:36 40387 40387 main.cc:348] Point your browser to https://0.0.0.0:8443 to interact with the device.
run_cvd I 04-28 15:09:36 40387 40387 main.cc:467] Serial console is disabled; use -console=true to enable it
run_cvd I 04-28 15:09:36 40387 40387 main.cc:472] The following files contain useful debugging information:
run_cvd I 04-28 15:09:36 40387 40387 main.cc:475]   Launcher log: /home/cuttlefish/cvd/cuttlefish_runtime.1/launcher.log
run_cvd I 04-28 15:09:36 40387 40387 main.cc:478]   Android's logcat output: /home/cuttlefish/cvd/cuttlefish_runtime.1/logcat
run_cvd I 04-28 15:09:36 40387 40387 main.cc:481]   Kernel log: /home/cuttlefish/cvd/cuttlefish_runtime.1/kernel.log
run_cvd I 04-28 15:09:36 40387 40387 main.cc:484]   Instance configuration: /home/cuttlefish/cvd/cuttlefish_runtime.1/cuttlefish_config.json
run_cvd I 04-28 15:09:36 40387 40387 main.cc:487]   Instance environment: /home/cuttlefish/cvd/.cuttlefish.sh
run_cvd D 04-28 15:09:36 40387 40387 launch.cc:410] Modem simulator not enabled
run_cvd D 04-28 15:09:36 40387 40387 launch.cc:248] Setting up /home/cuttlefish/cvd/cuttlefish_runtime.1/tombstones
run_cvd D 04-28 15:09:36 40397 40397 process_monitor.cc:140] Starting monitoring subprocesses
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:266] Started (pid: 40398): /home/cuttlefish/cvd/bin/kernel_log_monitor
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -log_pipe_fd=7
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -subscriber_fds=10,13,16
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:266] Started (pid: 40399): /home/cuttlefish/cvd/bin/logcat_receiver
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -log_pipe_fd=18
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:266] Started (pid: 40400): /home/cuttlefish/cvd/bin/config_server
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -server_fd=20
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:266] Started (pid: 40401): /home/cuttlefish/cvd/bin/tombstone_receiver
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -server_fd=22
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -tombstone_dir=/home/cuttlefish/cvd/cuttlefish_runtime.1/tombstones
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:266] Started (pid: 40402): /home/cuttlefish/cvd/bin/secure_env
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -keymaster_fd_out=27
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -keymaster_fd_in=28
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -gatekeeper_fd_out=29
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -gatekeeper_fd_in=30
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -keymint_impl=tpm
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -gatekeeper_impl=tpm
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:266] Started (pid: 40403): /home/cuttlefish/cvd/bin/webrtc_operator
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -assets_dir=/home/cuttlefish/cvd/usr/share/webrtc/assets
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -certs_dir=/home/cuttlefish/cvd/usr/share/webrtc/certs
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -http_server_port=8443
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:266] Started (pid: 40404): /home/cuttlefish/cvd/bin/webRTC
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -touch_fd=35
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -keyboard_fd=36
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -switches_fd=38
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -frame_server_fd=40
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --command_fd=41
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -kernel_log_events_fd=42
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:266] Started (pid: 40405): /home/cuttlefish/cvd/bin/crosvm
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] run
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --no-smt
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --gpu=2D,width=720,height=1280
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --wayland-sock=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/frames.sock
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --mem=2048
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --cpus=2
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --rwdisk=/home/cuttlefish/cvd/cuttlefish_runtime.1/overlay.img
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --rwdisk=/home/cuttlefish/cvd/cuttlefish_runtime.1/persistent_composite.img
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --rwdisk=/home/cuttlefish/cvd/cuttlefish_runtime.1/sdcard.img
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --socket=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/crosvm_control.sock
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --multi-touch=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/touch.sock:720:1280
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --keyboard=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/keyboard.sock
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --switches=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/switches.sock
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --tap-fd=44
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --tap-fd=46
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --rw-pmem-device=/home/cuttlefish/cvd/cuttlefish_runtime.1/access-kregistry
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --pstore=path=/home/cuttlefish/cvd/cuttlefish_runtime.1/pstore,size=2097152
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --disable-sandbox
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --cid=3
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --serial=hardware=virtio-console,num=1,type=file,path=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/kernel-log-pipe,console=true
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --serial=hardware=serial,num=1,type=file,path=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/kernel-log-pipe,earlycon=true
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --serial=hardware=virtio-console,num=2,type=sink
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --serial=hardware=virtio-console,num=3,type=file,path=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/logcat-pipe
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --serial=hardware=virtio-console,num=4,type=file,path=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/keymaster_fifo_vm.out,input=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/keymaster_fifo_vm.in
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --serial=hardware=virtio-console,num=5,type=file,path=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/gatekeeper_fifo_vm.out,input=/home/cuttlefish/cvd/cuttlefish_runtime.1/internal/gatekeeper_fifo_vm.in
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --serial=hardware=virtio-console,num=6,type=sink
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --bios=/home/cuttlefish/cvd/img/bootloader
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:266] Started (pid: 40406): /home/cuttlefish/cvd/bin/log_tee
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --process_name=crosvm
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --log_fd_in=51
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:266] Started (pid: 40407): /home/cuttlefish/cvd/bin/socket_vsock_proxy
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] -adbd_events_fd=52
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --server=tcp
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --vsock_port=5555
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --server_fd=53
run_cvd D 04-28 15:09:36 40397 40397 subprocess.cpp:268] --vsock_cid=3
run_cvd D 04-28 15:09:36 40397 40397 process_monitor.cc:167] Monitoring subprocesses
run_cvd D 04-28 15:09:36 40397 40408 process_monitor.cc:150] Waiting for a `stop` message from the parent.
tombstone_receiver D 04-28 15:09:36 40401 40401 main.cpp:67] Host is starting server on port 6600
socket_vsock_proxy D 04-28 15:09:36 40407 40407 main.cpp:281] Wating AdbdStarted boot event from the kernel log
crosvm D 04-28 15:09:36 40406 40406 log_tee.cpp:58] Starting to read from process crosvm
secure_env D 04-28 15:09:36 40402 40402 in_process_tpm.cpp:110] Manufacturing TPM state
secure_env D 04-28 15:09:36 40402 40402 fragile_tpm_storage.cpp:37] Initializing secure index file
secure_env D 04-28 15:09:36 40402 40402 insecure_fallback_storage.cpp:37] Initializing secure index file
config_server D 04-28 15:09:36 40400 40400 host_device_config.cpp:51] Network config:
config_server D 04-28 15:09:36 40400 40400 host_device_config.cpp:52] ipaddr = 192.168.97.2
config_server D 04-28 15:09:36 40400 40400 host_device_config.cpp:53] gateway = 192.168.97.1
config_server D 04-28 15:09:36 40400 40400 host_device_config.cpp:54] dns = 8.8.8.8
config_server D 04-28 15:09:36 40400 40400 host_device_config.cpp:55] broadcast = 192.168.97.3
config_server D 04-28 15:09:36 40400 40400 host_device_config.cpp:56] prefix length = 30
crosvm E 04-28 15:09:36 40406 40406 log_tee.cpp:69] [ERROR:external/crosvm/src/main.rs:2003] crosvm has exited with error: The architecture failed to build the vm: failed to set tss addr: File exists (os error 17)
run_cvd I 04-28 15:09:36 40397 40397 process_monitor.cc:121] Detected exit of monitored subprocess /home/cuttlefish/cvd/bin/crosvm
run_cvd I 04-28 15:09:36 40397 40397 process_monitor.cc:123] Subprocess /home/cuttlefish/cvd/bin/crosvm (40405) has exited with exit code 1
crosvm D 04-28 15:09:47 40406 40406 log_tee.cpp:84] Finished reading from process crosvm
run_cvd F 04-28 15:09:47 40397 40408 process_monitor.cc:153] Check failed: ReadExactBinary(monitor_socket_, &message) == sizeof(message) Could not read message from parent.

And I notice that kernal.log and logcat are empty. In any case, I hope you can help regarding this issue.

Thanks a lot.

Tim Froehlich

unread,
May 5, 2021, 10:43:24 AM5/5/21
to Android Building
Yep, your kernel log and logcat are empty because the CrosVM virtual machine monitor didn't get close to starting up the VM. It failed while trying to configure the memory layout for your VM. CrosVM is trying to launch the VM in unrestricted mode, and that requires Extended Page Tables. I'm not 100% sure that this is the problem, but I would make sure that your processor supports it and it's enabled in your BIOS / UEFI Firmware. What processor do you have?

Alex Ling

unread,
May 17, 2021, 5:15:52 PM5/17/21
to Android Building
Are you running launch_cvd on a virtual machine instead of a physical Linux host? My understanding is CrosVM depends on KVM on physical Linux host.

NIKILESH K SALIAN

unread,
May 18, 2021, 4:49:38 PM5/18/21
to Android Building
Even i had the same issue when running linux as guest inside the MAC or Windows host. But solved after running it in linux host with the same intel processor. CrosVM seem to have problem in nesting here. I do not see any known issue documented any where about running it in linux as a guest.
Reply all
Reply to author
Forward
0 new messages