在我的设备中成功集成 QEMU 并尝试启动 cuttlefish,但出现“qemu-system-aarch64: kvm_init_vcpu failed: Invalid argument”相关问题。
$ qemu-system-aarch64 --版本
QEMU模拟器版本4.2.1 版权所有 (c) 2003-2019 Fabrice Bellard 和 QEMU 项目开发人员
为了更清楚起见,我的设备(Linux 操作系统 ARM64 处理器)中启用了 KVM。
$ ls -l /dev/kvm crw-rw-rw- 1 根 kvm 10, 232 11 月 23 日 15:43 /dev/kvm
请查找截断的错误日志:
######################################################################
/usr/bin/qemu-system-aarch64
2023-11-20T22:27:38.422646Z qemu-system-aarch64: kvm_init_vcpu failed: Invalid
argument
Detected unexpected exit of monitored subprocess /usr/bin/qemu-system-aarch64
Subprocess /usr/bin/qemu-system-aarch64 (2336) has exited with exit code 1
failed to read from socket, retry.
failed to read from socket, retry.
Start modem simulator, server_fds: 64, Sim type: normal
Server listening on 0.0.0.0:7200
Metrics started
Metrics host received: VMStart
######################################################################
我陷入困境,无法理解为什么我会面临这个问题。
谢谢你。
尝试 -cpu 主机
这对我有用