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

在Debian11上安装PVE7

好玩有趣 陆子方 2年前 (2023-04-12) 544次浏览 0个评论 扫描二维码

背景

这是探索HTPC一体化背景的一个环节,目前已有更好解决方式。pve本来有独立安装的iso,但也支持现有debian安装。pve做htpc有几个方式。使用这个模式,原因是pve直接安装lxqt桌面出现无法联网情况,而且也担心破坏pve。

安装流程

系统更新

apt install apt-transport-https ca-certificates wget -y

mv /etc/apt/sources.list /etc/apt/sources.listbk

nano /etc/apt/sources.list  #填入以下内容

deb https://mirrors.sjtug.sjtu.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.sjtug.sjtu.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.sjtug.sjtu.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.sjtug.sjtu.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.sjtug.sjtu.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.sjtug.sjtu.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.sjtug.sjtu.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.sjtug.sjtu.edu.cn/debian-security bullseye-security main contrib non-free

固定网络地址修改,设定一个固定ip地址

nano /etc/hosts
192.168.1.143

开始安装pve

echo "deb [arch=amd64] http://download.proxmox.com/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list

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

apt update && apt full-upgrade -y
apt install pve-kernel-5.15 -y

systemctl reboot

mv /etc/network/interfaces /etc/network/interfacesbk
nano /etc/network/interfaces

    auto enp1s0
    iface enp1s0 inet static
        address 192.168.1.143/24
        gateway 192.168.1.1

systemctl restart networking

apt install proxmox-ve postfix open-iscsi -y
apt remove linux-image-amd64 'linux-image-5.10*' -y
sudo -i
update-grub
apt remove os-prober -y

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