admin 管理员组

文章数量: 1184232

零、环境介绍

宿主机:

Ubuntu 22.04.1 LTS

Windows 10镜像:

Windows10_20H2.iso

QEMU版本:

qemu-img version 7.1.0
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers

一、安装过程

1. 创建镜像文件

使用qemu-img命令创建镜像文件。命令及结果如下所示:

$ qemu-img create -f qcow2 Win10.img 80G
Formatting 'Win10.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=85899345920 lazy_refcounts=off refcount_bits=16

上述命令使用qemu-img create命令创建了一个空白的客户机镜像文件,格式为qcow2,名字为Win10.img,最大容量为80G。

2. 安装系统

使用qemu-system-x86_64启动客户机,并在其中用准备好的ISO安装系统。命令如下:

            
            
            

本文标签: 完整 过程 qemu Windows