# Download a Ubuntu server ISO file sudo apt-get install qemu-system-x86 # Create a QCOW2 disk image qemu-img create -f qcow2 femu.qcow2 80G
1.2 下载镜像
1 2
mkdir images && cd images wget https://mirrors.tuna.tsinghua.edu.cn/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso
1.3 挂载镜像
1 2 3 4 5
mkdir centos sudo mount CentOS-7-x86_64-Minimal-2009.iso ./centos -o loop # find the full path of vmlinuz and initrd find ./centos -name "vmlinuz" find ./centos -name "initrd"