qemu 设备虚拟化 相关的选项

理论

  • qemu设备虚拟化

存储

-device virtio-blk-device,drive=hd0 \
-drive file=../rootfs.img,format=raw,id=hd0
-device virtio-blk-device,drive=hd0  \
-drive file=openEuler-preview.riscv64.qcow2,format=qcow2,id=hd0 

网络

-device virtio-net-device,netdev=net0 \
-netdev tap,ifname=tap0,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown,id=net0
-device virtio-net-device,netdev=usernet \
-netdev user,id=usernet,hostfwd=tcp::12055-:22
-device nic \
-netdev tap,ifname=tap0

你可能感兴趣的:(杂七杂八总览,qemu)