PVE配置

最近把以前的笔记本装了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" #秒

__EOF__

本文作者stone
本文链接https://www.cnblogs.com/qscgy/p/16909345.html
关于博主:评论和私信会在第一时间回复。或者直接私信我。
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角推荐一下。您的鼓励是博主的最大动力!
posted @   zko  阅读(527)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示