1.编译asm为目标文件
nasm src/boot/boot.asm -o ./boot.bin
2.新建虚拟img文件
dd if=/dev/zero of=Sunshine.img bs=512 count=2880
3.拷贝bin到img
dd if=boot.bin of=Sunshine.img bs=512 count=1 conv=notrunc
4.img转换为vdi
VBoxManage convertdd Sunshine.img Sunshine.vdi
5.放到VB上
网友评论