Qemu 命令行
安装
└─# apt install qemu-system # 主程序
└─# apt install qemu-system-x86_64 # x86-64模拟程序
└─# apt install qemu-utils # 常用工具
└─# apt install qemu-system-gui # 本地图形用户界面
└─# apt install virtinst virt-manager # 虚拟机管理器
转码
创建img
└─# qemu-img create disk.img 10G # 创建一个10G的镜像
└─# qemu-img create -f qcow2 -o size=10G ubuntu.img # 创建一个10G类型为qcow2的镜像
└─# qemu-img info ubuntu.img # 查看镜像信息
└─# qemu-img check ubuntu.img # 检测镜像错误信息