最近把以前的笔记本装了pve,把配置过程记录一下,方便下次重装或者修改。

  1. 修改IP/etc/network/interfaces
auto lo
iface lo inet loopback

iface enp3s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.111/24
        gateway 192.168.1.1
        bridge-ports enp3s0
        bridge-stp off
        bridge-fd 0

iface wlp5s0 inet manual
  1. 修改DNS/etc/resolv.conf
search com
nameserver 192.168.101.1
  1. 修改主机名解析的IP/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.111 pve.com pve

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
  1. 修改开机界面提示URL/etc/issue
------------------------------------------------------------------------------

Welcome to the Proxmox Virtual Environment. Please use your web browser to 
configure this server - connect to:

  https://192.168.1.111:8006/

------------------------------------------------------------------------------

  1. 修改使用国内源
# 使用阿里云源
#deb http://ftp.debian.org/debian buster main contrib
#deb http://ftp.debian.org/debian buster-updates main contrib
# security updates
#deb http://security.debian.org buster/updates main contrib

# debian aliyun source
deb https://mirrors.aliyun.com/debian buster main contrib non-free
deb https://mirrors.aliyun.com/debian buster-updates main contrib non-free
deb https://mirrors.aliyun.com/debian-security buster/updates main contrib non-free

# proxmox source
# deb http://download.proxmox.com/debian/pve buster pve-no-subscription
deb https://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription

# 关闭Proxmox企业版更新源,注释
#修改 /etc/apt/sources.list.d/pve-enterprise.list
# deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
也可以直接执行 rm -rf /etc/apt/sources.list.d/pve-enterprise.list 命令删除企业源

或执行 mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak 命令将 pve-enterprise.list 文件更改为 pve-enterprise.list.bak 文件
  1. Ceph源修改
# 编辑修改 /etc/apt/sources.list.d/ceph.list Ceph软件包仓库位置的配置文件

## deb http://download.proxmox.com/debian/ceph-nautilus buster main
deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-nautilus buster main
  1. 执行更新源
# 最后执行 apt update #更新源
# 注:下面命令请根据自己情况选择执行
apt update && apt dist-upgrade -y #如需升级pve,则执行该命令
apt upgrade #更新已安装的包 
  1. 合盖不断电和自动熄灭屏幕
setterm -blank 5 # 分钟
# 修改grub文件
/etc/default/grub
GRUB_CMDLINE_LINUX="consoleblank=300" #秒

原文地址:http://www.cnblogs.com/qscgy/p/16909345.html

1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长! 2. 分享目的仅供大家学习和交流,请务用于商业用途! 3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入! 4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解! 5. 如有链接无法下载、失效或广告,请联系管理员处理! 6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需! 7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员! 8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载 声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性