PVE 安装及配置

发布时间 2023-04-09 00:34:51作者: NavyW

1 安装

1.1 下载ventoy并且准备一个U盘

1.2 用ventoy选择你准备的U盘创建启动盘

 

 

1.3 将下载的pve镜像放入Ventoy盘

 

1.4 需要装pve的主机,插上U盘,选择U盘启动,选择pve那个镜像

1.5 安装步骤略

2 配置

2.1 更改DNS(如果无法联网可能是DNS配置错误)

nano /etc/resolv.conf

2.2 更改软件源

# 先更新下证书,否则可能由于证书不可用导致 https 无法使用
apt install apt-transport-https ca-certificates

# 修改Debain软件源 nano
/etc/apt/sources.list # 复制下面的代码替换 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

# 修改pve软件源
nano /etc/apt/sources.list.d/pve-enterprise.list
# 复制下面的代码替换
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bullseye pve-no-subscription

# 从服务器拉取最新的可用包到本地
apt-get update

2.3 下载pvetools工具箱

介绍:这是一个为proxmox ve写的工具脚本(理论上debian9+可以用)。包括配置邮件sambaNFSzfs嵌套虚拟化docker硬盘直通等功能。

export LC_ALL=en_US.UTF-8
cd /root
apt -y install git && git clone https://github.com/ivanhao/pvetools.git

启动pvetools

cd pvetools
./pvetools.sh

 

 

 

 按Esc键可退出该界面