This repository has been archived on 2026-08-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
pve_toss_notes/4.PVE制作虚拟机模板.md
T

39 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 0.前期准备
将虚拟机制作成模板,可以在后续新建虚拟机时快速从模板中创建,减少系统安装配置时间。
本文将使用 Debian 的云镜像 `debian-11-genericcloud-amd64.qcow2` 作为虚拟机模板镜像。
访问 [Debian Official Cloud Images](https://cloud.debian.org/images/cloud/) 官方网站,下载最新版 `Bullseye` 云镜像以及对应的校验文件:
![下载镜像](img/Template/download_genericcloud_image_qcow2.png)
该虚拟机模板主要作为内网 DNS 服务器使用,并会安装 Adguard Home 。
## 1.创建虚拟机
### 1.1.常规
登录到 PVE 后台后,进入新建虚拟机流程,并勾选底部 “高级” ,打开虚拟机创建页面的高级选项。
节点即本机,`VM ID``名称` 可以自由定义。
![虚拟机名称](img/Template/vm_id.png)
### 1.2.操作系统
无需使用任何安装介质。
操作系统类别选择 `Linux` 、版本选择 `5.x - 2.6 Kernel` 即可。
![虚拟机操作系统](img/Template/vm_os.png)
### 1.3.系统
系统部分需要修改一些内容,以满足 Debian 使用 `UEFI` 启动需求。
显卡使用 `SPICE` ,机型使用 `q35` SCSI 控制器选择 `VirtIO SCSI single` ,勾选 `Qemu代理` 选项。
在固件处需要针对 `UEFI` 进行调整,BIOS 选择 `OVMF (UEFI)` ,勾选 `添加EFI磁盘` EFI 存储选择 `local-lvm`
![虚拟机系统](img/Template/vm_system.png)