视频加载失败

PVE设置

297 字
1 分钟
PVE设置
PVE设置

基础设置#

1. 合并硬盘分区#

1.1 删除local-lvm#

lvremove pve/data

1.2 扩容local#

lvextend -l +100%FREE -r pve/root

1.3 然后数据中心进行图形界面的local-lvm删除和local编辑。#

2. 确认网络是否正常#

ping www.baidu.com 如果ping不通,修改网关和dns。

3. 更换软件源#

https://mirrors.tuna.tsinghua.edu.cn/help/debian
nano /etc/apt/sources.list

添加网页上的内容,保存退出。

建议全部修改成清华源:

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware

4. 修改pve源#

4.1 添加清华源#

https://mirrors.tuna.tsinghua.edu.cn/help/proxmox
nano /etc/apt/sources.list.d/pve-no-subscription.list

加入内容   

deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bookworm pve-no-subscription

4.2 去掉企业源#

nano /etc/apt/sources.list.d/pve-enterprise.list

前面加入#

4.3 去掉ceph源(有需要的可以之后自行修改)#

nano /etc/apt/sources.list.d/ceph.list

前面加入#

PVE更新—存储库里面添加pve-no-subscription

5. 去掉登录弹窗:#

sed -i.backup -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service

6. 更新软件源,升级软件#

apt update
apt upgrade -y

7. 开启IPV6(可选)#

nano /etc/sysctl.conf

添加如下内容:

net.ipv6.conf.all.accept_ra=2
net.ipv6.conf.default.accept_ra=2
net.ipv6.conf.vmbr0.accept_ra=2
net.ipv6.conf.all.autoconf=1
net.ipv6.conf.default.autoconf=1
net.ipv6.conf.vmbr0.autoconf=1

重启系统:reboot

硬盘直通

1. 查看硬盘信息#

ls -l /dev/disk/by-id/

2. 设置硬盘直通#

qm set 100 -sata1 /dev/disk/by-id/ata-WDC_WD5000AAKX-753CA1_WD-WMAYU7283459
qm set 100 -sata2 /dev/disk/by-id/ata-WDC_WD5000AAKX-00ERMA0_WD-WCC2E6DHKRCX
qm set 100 -sata3 /dev/disk/by-id/ata-WDC_WD5000AAKX-08U6AA0_WD-WCC2E2LDAVCN

3. 解除硬盘直通#

qm set 100 -sata1 none
qm set 100 -sata2 none
qm set 100 -sata3 none

文章分享

如果这篇文章对你有帮助,欢迎分享给更多人!

PVE设置
https://muxui.com/posts/proxmox-ve-setup/
作者
Muxui
发布于
2025-02-22
许可协议
CC BY-NC-SA 4.0

评论区

Profile Image of the Author
Muxui
写代码、记笔记,把折腾过的东西留给未来的自己。
公告
欢迎来到我的博客!这是一则示例公告。
统计
分类
标签
站点统计
文章
23
分类
3
标签
28
总字数
56,853
运行时长
0 天
天气预报
定位中...
----
高温 --°C / 低温 --°C
站点信息
构建平台
GitHub Actions
博客版本
Firefly v6.16.8
文章许可
CC BY-NC-SA 4.0
文章目录