虚拟化平台PVE8.0简单配置

1.#pve7&8 #注释里面的内容
nano /etc/apt/sources.list.d/pve-enterprise.list
nano /etc/apt/sources.list.d/ceph.list

2.#修改源 粘贴下面的内容
nano /etc/apt/sources.list

deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib

3.#更新
apt update && apt upgrade -y

重启
reboot

4.#笔记本用户修改盒盖策略
nano /etc/systemd/logind.conf

#删除前面的#,修改为ignore
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore

#重新加载配置
systemctl restart systemd-logind