仿真环境启动后无法访问

web登录形式:https://ip:10443 //10443端口有监听,但是无法访问。
另外ssh登录方式:ssh Administrator@ip -p 10022的密码是什么?

python3 build/works/packet/qemu_shells/vemake_1711.py
启动后,仿真串口环境一直在打印下面信息。
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
[ 992.694797] x_tables: disagrees about version of symbol module_layout
[ 992.697925] x_tables: disagrees about version of symbol module_layout
[ 993.528566] x_tables: disagrees about version of symbol module_layout
[ 993.531776] x_tables: disagrees about version of symbol module_layout
[ 994.670035] x_tables: disagrees about version of symbol module_layout
[ 994.688053] x_tables: disagrees about version of symbol module_layout
[ 995.703029] x_tables: disagrees about version of symbol module_layout
[ 995.711721] x_tables: disagrees about version of symbol module_layout
[ 1002.998702] x_tables: disagrees about version of symbol module_layout
[ 1003.011556] x_tables: disagrees about version of symbol module_layout
[ 1003.965861] x_tables: disagrees about version of symbol module_layout
[ 1003.976102] x_tables: disagrees about version of symbol module_layout
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1

ssh Administrator用户默认密码为Admin@90000
请使用curl --location ‘https://ip:10443/UI/Rest/Login’ -k查看接口返回确认web无法访问的报错信息
建议提供manifest/build/works/packet/qemu_shells/config.json文件以供我们进行详细分析
并在开发环境上查看SDK中RTOS的版本ls /opt/RTOS并提供给我们

manifest/build/works/packet/qemu_shells/config.json
{
“mapports”: {
“ssh”: 10022,
“https”: 10443,
“ipmi”: 10623,
“snmp”: 10161,
“telnet”: 10023,
“monitor”: 14444
},
“start_dependencies” : {
“qemu_setup_dir” : “temp/qemu_temp/qemu_start_temp” ,
“inner_path” : “output/packet/inner”,
“cpio_path” : “output/packet/inner/openUBMC_25.06.00.01_qemu.cpio.gz” ,
“zImage_path” : “output/packet/inner/zImage_openUBMC” ,
“dtb” : “hi1711_9p8c.dtb”,
“qemu”: “qemu-system-aarch64-release”,
“remote_qemu”: false,
“remote_cpio”: false,
“download_qemu” : “https://repo.openubmc.cn/25.03/tools/openUBMC-qemu.zip”,
“download_cpio” : “https://repo.openubmc.cn/25.03/firmware/openUBMC_25.06.00.01_qemu.cpio.gz
},
“container_cfg”:{
“container”: “hi1711”,
“wsl_enabled”: true,
“docker_enabled”: false,
“docker_num” : 2,
“docker_operator” : “create”,
“docker_image”: “swr.cn-north-4.myhuaweicloud.com/openubmc/qemu:latest
},
“qemu_cfg”:{
“core_num” : 4 ,
“memory” : 4
}
}

ls /opt/RTOS
208.9.0 dependency.md5sum

curl --location ‘https://ip:10443/UI/Rest/Login’ -k

  • Trying 192.168.2.2:10443…
  • Connected to 192.168.2.2 (192.168.2.2) port 10443
  • ALPN: curl offers h2,http/1.1
  • TLSv1.3 (OUT), TLS handshake, Client hello (1):
  • Recv failure: Connection reset by peer
  • OpenSSL SSL_connect: Connection reset by peer in connection to 192.168.2.2:10443
  • Closing connection
    curl: (35) Recv failure: Connection reset by peer
    被服务器断开了, TLS 监听服务有问题?

看了下config的json文件,当前的manifest似乎不是最新的?串口打印的内容应该是在表示驱动与RTOS系统镜像版本不匹配,请尝试拉取最新的manifest,删除manifest 中temp目录和output目录后重试

拉取最新的会编译BMC失败,bingo build -sc qemu。目前是用的25.06,这样编译才不会报错。
我们先试试拉取最新的试试。

具体是什么编译报错

目前manifest要切到25.06,bmc_sdk.zip也是下载的25.06,才可以编译。
任务 work.task_build_qemu_rootfs 完成
WARN: works.packet.work_run_qemu_bmc.TaskClass 已配置 ignore_not_exist 且为真, 跳过执行
任务 works.packet.work_run_qemu_bmc 完成
任务 work.task_build_rootfs_img 完成
任务 personal 执行成功

如果manifest取main的最新的代码,bmc_sdk.zip也是下载的25.06,编译报错。
不能从 yaml 文件中获取到键值 tosupporte/qemu/fixed_version, 没有相关配置
ERROR: [Errno 2] No such file or directory: ‘/home/bmc/workspace/manifest/temp/build_openUBMC_debug_dev/conan_install/openubmc/etc/version.json’
ERROR: 任务 personal 执行失败
ERROR: 请查看日志信息
timed out
timed out
timed out

是需要重新下载最新的manifest然后重新python3 init.py 初始后再bingo build -sc qemu编译构建吗?

拉取最新的不行,只能用25.06,你们有干净的环境吗?拉取下最新的然后python init.py看看报错不?用25.06编译没有问题,但是要仿真又连不上

不需要重新python3 init.py,拉去最新manifest 使用python3 build/works/packet/qemu_shells/vemake_1711.py使用远程归档的镜像包启动试一下,能否正常启动并链接web

也不行,也无法连接上

git pull
Already up to date.

qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1
qemu-system-aarch64-release: Slirp: Failed to send packet, ret: -1

Login timed out after 60 seconds.
仿真终端也无法登录了。报Login timed out after 60 seconds.

我这边尝试拉取最新的并启动没有复现问题,能够留个联系方式一起看下

我也遇到了同样的问题,你是怎么解决的?

您好!上述这个问题,您可以这样解决:

  • 拉最新的manifest, 执行一下python3 init.py
  • 升级bingo: bingo upgrade
  • 清除Conan缓存: rm -rf ~/.conan/data
  • 重新出包: bingo build -sc qemu
  • 启动qemu

如果还有问题,麻烦提供更多详细的日志信息,感谢!

此帖长时间无回复,关闭此帖,如有需求请重新发帖交流。