站点图标 Linux-技术共享

PVE懒人无错版Linux操作系统OS模板下载直接使用(更新了Windows系统)

首先创建模板虚拟机必须同时命名为如下规则,Linux系统root默认登录密码为000000;CDN的系统数据库和系统端口号:7788,用户名和密码都为root和000000;Windows所有系统默认密码为:Windows@2019
虚拟机999000 (Windows7-64Bit)
虚拟机999001 (Debiban-11-64Bit)
虚拟机999002 (Ubuntu-22-64Bit)
虚拟机999003 (CentOS-7-64Bit)
虚拟机999004 (WindowsServer2019)
虚拟机999005 (CentOS-8-64Bit)
虚拟机999006 (Debian-MySQL-CDN)
虚拟机999007 ((Debiban-12-64Bit)
虚拟机999008 (WindowsServer2008)


制作模板所需要的命令
timedatectl set-timezone Asia/Shanghai
yum -y update && yum -y upgrade && yum -y install vim screen curl wget openssl socat gawk file zip unzip zip cloud-utils yum-utils cloud-init bash-completion qemu-guest-agent && screen -S update
systemctl enable qemu-guest-agent
history -c && history -w && poweroff
vi /etc/cloud/cloud.cfg
1. 如果希望 root 能够直接登录 instance(默认不允许 root 登录),设置:
disable_root: 0
2. 如果希望能以 ssh passwod 方式登录(默认只能通过 private key 登录),设置:
ssh_pwauth: 1
懒人模板库下载地址https://linuxword.com/wp-content/uploads/PVE/dump.zip
目录为: /var/lib/vz/dump
恢复命令: cd /var/lib/vz/dump && unzip dump.zip
或者执行: apt -y install wget screen unzip zip nano curl && cd /var/lib/vz/dump && wget https://linuxword.com/wp-content/uploads/PVE/dump.zip && unzip dump.zip

退出移动版