码迷,mamicode.com
首页 > 其他好文 > 详细

#PVE# 在Debian10安装 ProxMox VE 6.*

时间:2021-02-09 12:34:02      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:更换   fun   mtu   intern   active   添加   ssh端口   etc   端口   

debain10 修改apt源为aliyun

mv /etc/apt/sources.list /etc/apt/sources.list.bak && vi /etc/apt/sources.list
deb https://mirrors.aliyun.com/debian/ buster main non-free contrib
deb https://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ buster/updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian-security/ buster/updates main non-free contrib

更新

apt-get update -y && apt-get upgrade -y

同步时间

timedatectl set-timezone Asia/Shanghai # 设置时区
systemctl start systemd-timesyncd  # 自动同步时间

设置主机名

hostnamectl set-hostname dcs-edge1.pealog.com
echo "192.168.1.1 pea-edge1.pealog.com pea-edge1" | tee -a /etc/hosts

bash: sudo: command not found报错

apt install sudo -y

dpkg-source报错

apt install dpkg-dev vim -y

更换SSH端口

sed -i ‘s%#Port 22%Port 66%‘ /etc/ssh/sshd_config
systemctl restart sshd

安装Porxmox VE 6.*

添加PVE相关的apt下载库

wget -qO - https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-ve-release-6.x.gpg |  apt-key add -
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription" |  tee /etc/apt/sources.list.d/pve-install-repo.list
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-nautilus buster main" |  tee /etc/apt/sources.list.d/ceph.list
apt-get update -y && apt-get upgrade -y && apt-get install -y gnupg2

安装Proxmox VE软件包

apt install proxmox-ve postfix open-iscsi ksmtuned ceph-base -y

配置postfix

选择Internet Site,其他配置选择默认。

dpkg-reconfigure postfix
## 重启  使用PVE内核
reboot

配置PVE 6源

echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription" >> /etc/apt/sources.list
#echo "deb http://download.proxmox.wiki/debian/pve stretch pve-no-subscription" >/etc/apt/sources.list.d/pve-install-repo.list
#echo ‘deb http://download.proxmox.wiki/debian/pve stretch pve-no-subscription‘ >> /etc/apt/sources.list.d/pve-no-subscription.list

删除企业源

rm -rf /etc/apt/sources.list.d/pve-enterprise.list

关闭PVE6 订阅提醒

sed -i_orig "s/data.status !== ‘Active‘/false/g" /usr/share/pve-manager/js/pvemanagerlib.js

#PVE# 在Debian10安装 ProxMox VE 6.*

标签:更换   fun   mtu   intern   active   添加   ssh端口   etc   端口   

原文地址:https://www.cnblogs.com/surplus/p/14391801.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!