2 Star 1 Fork 0

陈孝松/blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
update-base.sh 841 Bytes
一键复制 编辑 原始数据 按行查看 历史
ChenXiaoSong 提交于 2025-09-16 15:09 +08:00 . update x86_64 aarch64 update-base.sh
. ~/.top-path
# -M ubuntu \
# -cpu qemu64 \
# -append "quiet console=ttyS0 IP=192.168.122.2 root=/dev/vda1 rw kmemleak=on" \ # quiet: 不打印信息
kernel_version=stable
read stty_rows stty_cols < <(stty size)
qemu-system-x86_64 \
-enable-kvm \
-cpu host \
-smp 16 \
-m 4096 \
-kernel ${MY_CODE_TOP_PATH}/$kernel_version/x86_64-build/arch/x86/boot/bzImage \
-virtfs local,id=kmod_dev,path=${MY_CODE_TOP_PATH},mount_tag=9p,security_model=none \
-vga none \
-nographic \
-append "nokaslr console=ttyS0 root=/dev/vda rw kmemleak=on kernel_version=${kernel_version} stty_rows=${stty_rows} stty_cols=${stty_cols}" \
-device virtio-scsi-pci \
-drive file=x86_64-bullseye.qcow2,if=none,format=qcow2,cache=writeback,file.locking=off,id=root \
-device virtio-blk,drive=root,id=d_root \
-net tap \
-net nic,model=virtio,macaddr=00:11:22:33:44:55 \
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenxiaosonggitee/blog.git
git@gitee.com:chenxiaosonggitee/blog.git
chenxiaosonggitee
blog
blog
master

搜索帮助