qemu-img create -f qcow2 lubuntu.qcow2 50G
// 安装
qemu-system-x86_64 -machine type=q35,accel=hvf -smp 4 -cpu host -hda lubuntu.qcow2 -m 8G -vga std -usb -device usb-tablet -display default,show-cursor=on -cdrom ~/Downloads/lubuntu-22.04-desktop-amd64.iso
//启动
qemu-system-x86_64 -machine type=q35,accel=hvf -smp 4 -cpu host -hda lubuntu.qcow2 -m 8G -vga std -usb -device usb-tablet -display default,show-cursor=on -net user,hostfwd=tcp::2222-:22 -net nic
// 不启动图形界面
qemu-system-x86_64 -machine type=q35,accel=hvf -smp 4 -cpu host -hda lubuntu.qcow2 -m 8G -usb -device usb-tablet -nographic -net user,hostfwd=tcp::2222-:22 -net nic
objdump -D -Mintel,i8086 -b binary -m i386 mbr.bin
objdump -D -Mintel,i386 -b binary -m i386 foo.bin # for 32-bit code
objdump -D -Mintel,x86-64 -b binary -m i386 foo.bin # for 64-bit code
image.png
image.png
网友评论