• 陪伴互联网运营小白共同探索成长,与IT爱好者共享探索乐趣
  • 建站只为分享,欢迎在PC端文章面打赏支持
  • 使用Ctrl+D 可收藏本站

Proxmox VE 7 on Debian 11 Bullseye安装自用版

好玩有趣 陆子方 1个月前 (04-18) 287次浏览 0个评论 扫描二维码
文章目录[隐藏]

开头

子方说点啥。这完全就是奔着利用大分区去的。特别是pve8似乎无法识别低于128G的磁盘,即不支持在小磁盘安装。

更换源

apt install wget -y
wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg

cat <<‘EOF’ > /etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb http://mirrors.cernet.edu.cn/debian/ bullseye main contrib non-free
# deb-src http://mirrors.cernet.edu.cn/debian/ bullseye main contrib non-free
deb http://mirrors.cernet.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src http://mirrors.cernet.edu.cn/debian/ bullseye-updates main contrib non-free
deb http://mirrors.cernet.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src http://mirrors.cernet.edu.cn/debian/ bullseye-backports main contrib non-free
deb http://mirrors.cernet.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src http://mirrors.cernet.edu.cn/debian-security bullseye-security main contrib non-free
# deb http://security.debian.org/debian-security bullseye-security main contrib non-free
# # deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
EOF

cat <<‘EOF’ > /etc/apt/sources.list.d/pve-no-subscription.list
deb http://mirrors.cernet.edu.cn/proxmox/debian/pve bullseye pve-no-subscription
EOF

安装步骤

nano /etc/hosts
apt update && apt full-upgrade
apt install pve-kernel-5.15
systemctl reboot
apt install proxmox-ve postfix open-iscsi
apt purge linux-image-amd64 ‘linux-image-5.10*’
update-grub
apt purge os-prober

网卡配置

https://192.168.2.:8006
192.168.2.2/24
192.168.2.1
enp2s0

配置调整

Ctrl + V 跳末尾
nano /etc/hdparm.conf

/dev/disk/by-id/ata-ST2000DM006-2DM164_Z4ZABNR8 {
apm = 127
spindown_time = 30
}
/dev/disk/by-id/ata-ST1000LM035-1RK172_WC01X4Z4 {
apm = 127
spindown_time = 30
}
/dev/disk/by-id/ata-ST1000LM035-1RK172_WL15MQCY {
apm = 127
spindown_time = 30
}
/dev/disk/by-id/ata-TOSHIBA_MK5061GSY_82V1P8VMT {
apm = 127
spindown_time = 30
}

nano /etc/lvm/lvm.conf

devices {
global_filter=[“r|/dev/disk/by-id/ata-ST2000DM006-2DM164_Z4ZABNR8.*|”,”r|/dev/disk/by-id/ata-ST1000LM035-1RK172_WC01X4Z4.*|”,”r|/dev/disk/by-id/ata-ST1000LM035-1RK172_WL15MQCY.*|”,”r|/dev/disk/by-id/ata-TOSHIBA_MK5061GSY_82V1P8VMT.*|”]
}

mkdir /mnt/st2
mkdir /mnt/sdhy
nano /etc/fstab
UUID=2e6f7fa7-f3a1-4b29-8f42-4c57bb06a512 /mnt/st2 ext4 defaults,nofail 0 2
UUID=8f8f15cb-20e2-4381-9c97-b4060d3cb827 /mnt/sdhy ext4 defaults,nofail 0 2

软件安装

apt install firmware-intel-sound fonts-wqy-microhei freerdp2-x11 fcitx5 fcitx5-chinese-addons -y

优化占用

systemctl stop udisks2.service
apt purge udisks2

 


子方有料原创丨转载请注明原文链接
期待您的评论或捐赠,这是最好的鼓励和支持!
喜欢 (0)
[赞赏使我快乐]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到