PVE8配置国内源
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list-bak
Proxmox软件源更换
echo “deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription” > /etc/apt/sources.list.d/pve-no-subscription.list
apt update && apt dist-upgrade #更新软件,可不执行
Debian系统源更换
sed -i.bak “s#http://ftp.debian.org#https://repo.huaweicloud.com#g" /etc/apt/sources.list #华为Debian源
sed -i “s#http://security.debian.org#https://repo.huaweicloud.com/debian-security#g" /etc/apt/sources.list #华为Debian源
apt update && apt-get install -y apt-transport-https ca-certificates –fix-missing
LXC仓库源更换
sed -i.bak “s#http://download.proxmox.com/images#https://mirrors.ustc.edu.cn/proxmox/images#g" /usr/share/perl5/PVE/APLInfo.pm
wget -O /var/lib/pve-manager/apl-info/mirrors.ustc.edu.cn https://mirrors.ustc.edu.cn/proxmox/images/aplinfo-pve-7.dat
systemctl restart pvedaemon
CEPH源更换
echo “deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription” > /etc/apt/sources.list.d/ceph.list #中科大源
sed -i.bak “s#http://download.proxmox.com/debian#https://mirrors.ustc.edu.cn/proxmox/debian#g" /usr/share/perl5/PVE/CLI/pveceph.pm #中科大源
删除订阅弹窗
sed -Ezi.bak “s/(Ext.Msg.show({\s+title: gettext(‘No valid sub)/void({ //\1/g” /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
执行完成后,浏览器Ctrl+F5强制刷新缓存
安装常用依赖
apt install -y vim net-tools
apt install -y gcc
磁盘扩容:
lvscan 发现 /dev/pve/data 是有空间的
lvextend -l +100%FREE -r pve/root