File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ cp configs/board/qemu-aarch64.toml tmp/configs/
8484
8585 # 修改 Linux 客户机配置
8686 sed -i " s|kernel_path = \" tmp/Image\" |kernel_path = \" ../images/qemu_aarch64_linux/qemu-aarch64\" |g" tmp/configs/linux-aarch64-qemu-smp1.toml
87+ sed -i ' s/^id = 1$/id = 2/' tmp/configs/linux-aarch64-qemu-smp1.toml
8788 ` ` `
8889
8990# ## 准备 QEMU 配置文件
@@ -102,7 +103,9 @@ QEMU 配置文件定义了 QEMU 的启动参数,包括 CPU 类型、内存大
102103
103104 # 更新配置文件中的路径
104105 sed -i ' s|file=${workspaceFolder}/tmp/rootfs.img|file=' " $ROOTFS_PATH " ' |g' tmp/configs/qemu-aarch64-info.toml
105-
106+ # 将 success_regex 改为空数组
107+ sed -i ' s/^success_regex = \[.*\]/success_regex = []/' tmp/configs/qemu-aarch64-info.toml
108+
106109 # 验证修改
107110 grep " rootfs.img" tmp/configs/qemu-aarch64-info.toml
108111 ` ` `
@@ -149,7 +152,7 @@ AxVisor 构建系统集成了 QEMU 启动脚本,使用 `cargo xtask qemu` 命
149152 cargo xtask qemu \
150153 --build-config tmp/configs/qemu-aarch64.toml \
151154 --qemu-config tmp/configs/qemu-aarch64-info.toml \
152- --vmconfigs tmp/configs/arceos-aarch64-qemu-smp1.toml
155+ --vmconfigs tmp/configs/arceos-aarch64-qemu-smp1.toml \
153156 --vmconfigs tmp/configs/linux-aarch64-qemu-smp1.toml
154157 ` ` `
155158
You can’t perform that action at this time.
0 commit comments