PVE 专栏

1.2安装

2025/10/09·8 分钟阅读

PVE安装: #pve官网:Proxmox - Powerful open-source server solutions #pve wiki:Proxmox VE #安装前进入主板bios,开启以下功能 1.开启芯片虚拟化功能,Intel:VT-X,AMD:AMD-V *2.来电自启 3.wake…

PVE安装:

#pve官网:Proxmox - Powerful open-source server solutions
#pve wiki:Proxmox VE

#安装前进入主板bios,开启以下功能
1.开启芯片虚拟化功能,Intel:VT-X,AMD:AMD-V
*2.来电自启
3.wake on lan
*4.vGPU
*5.若有核显,提前分配好核心显卡显存

1.下载最新的pve镜像(.iso)(目前官网下载的是9.0,所以可能部分源是老的!!可以先用老的8.4先凑合
2.制作引导(略)
3.启动
4.选择“install pve”
5.依次选择“I agree”,“next”,“china”,上海时区,英文键盘布局
6.配置密码与通知邮箱
7.配置网络
1.管理口(一般直接选第一个有线网卡eno1,显示绿点为已经接入网线)
2.域名(解析后就是你填的ip地址,我一般无公网ip,无意义)
3.网关(写主路由的即可)
4.DNS服务器(任意,可以直接填网关)
8.安装并自动重启
9.登录webUI(一般为:https://(你填的IP地址):8006)可能会被浏览器拦截,选择继续访问
用户名:root
密码:自己刚刚填的
语言:cn

基础配置:
1.修改镜像源

root@pve:~# nano /etc/apt/sources.list(打开apt源文件)

替换源,输入:(中科大源)
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
刷新软件包,顺手升级更新

*此为ceph源

root@pve:~# nano /etc/apt/sources.list.d/ceph.list

替换源,输入:(中科大源)
deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bullseye main
刷新软件包,顺手升级更新

删除企业源

root@pve:~# nano /etc/apt/sources.list.d/pve-enterprise.sources

删除或注释掉
刷新软件包,顺手升级更新

CT模板源

root@pve:~# nano /usr/share/perl5/PVE/APLInfo.pm

替换源,输入:(清华源)
https://mirrors.tuna.tsinghua.edu.cn/proxmox

2.设置DNS

image1


3.测试网络

root@pve:~# ping baidu.com

*4.推荐安装pve管理工具pve_source(仅适用于pve8.x)
国内版

root@pve:~# wget -q -O /root/pve_source.tar.gz ' <http://szrq.hkfree.work/pve-source/pve_source.tar.gz'> && tar zxvf /root/pve_source.tar.gz && /root/./pve_source

国外版

root@pve:~# wget -q -O /root/pve_source.tar.gz ' <https://github.com/Benson80/pve-source/raw/main/pve_source.tar.gz'> && tar zxvf /root/pve_source.tar.gz && /root/./pve_source
root@pve:~# ./pve_source

自行选择优化选项

  1. 网上有合并local和local-lvm的教程,这里不参考,因为可能会影响部分功能

  2. 绑定网卡mac,防止pcie变动导致网卡变动(pve9中已经在初始化时绑定完成)

root@pve:~# ip link show | grep -A1 'eno1\\enp4s0' | grep link/ether

预测输出:
link/ether 84:47:09:4f:9e:79 brd ff:ff:ff:ff:ff:ff
link/ether 84:47:09:4f:9e:78 brd ff:ff:ff:ff:ff:ff

root@pve:~# inano /etc/network/interfaces

# 修改为以下内容:
auto lo
iface lo inet loopback

iface eno1 inet manual
hwaddress ether 84:47:09:4f:9e:79 # 添加此行,替换为eno1的实际MAC

iface enp4s0 inet manual
hwaddress ether 84:47:09:4f:9e:78 # 添加此行,替换为enp4s0的实际MAC

auto vmbr0
iface vmbr0 inet static
address 192.168.0.254/24
gateway 192.168.0.1
bridge-ports eno1
bridge-stp off
bridge-fd 0

source /etc/network/interfaces.d/*
保存,重启pve或重启网络


书中有集群安装教程,以及企业环境配置,此处用不着,暂略