PVE版本:7.1-7

想增加CPU温度显示,照着教程输入

apt-get install lm-sensors

提示

E: Unable to locate package lm-sensors

解决办法:

软件包仓库国内源设置

1.1输入:

root@pve:~# nano /etc/apt/sources.list.d/pve-enterprise.list

注释掉:

#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

编辑完成后,使用快捷键 Ctrl + O 回车保存文件,Ctrl + X 退出编辑器

1.2 .输入 nano /etc/apt/sources.list 命令,编辑修改 /etc/apt/sources.list 软件包仓库位置的配置文件

root@pve:~# nano /etc/apt/sources.list

将系统 /etc/apt/sources.list 软件包仓库位置的原始默认配置文件

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系统源(阿里云源)和中科大proxmox源

内容如下:

#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

编辑完成后,使用快捷键 Ctrl + O 回车保存文件,Ctrl + X 退出编辑器

输入:apt update && apt dist-upgrade

提示如下:

root@pve:~# apt update
Err:1 https://mirrors.aliyun.com/debian buster InRelease
  Temporary failure resolving 'mirrors.aliyun.com'
Err:2 https://mirrors.ustc.edu.cn/proxmox/debian/pve buster InRelease
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Err:3 https://mirrors.aliyun.com/debian buster-updates InRelease
  Temporary failure resolving 'mirrors.aliyun.com'
Err:4 https://mirrors.aliyun.com/debian-security buster/updates InRelease 
  Temporary failure resolving 'mirrors.aliyun.com'
Err:5 http://download.proxmox.com/debian/pve stretch InRelease      
  Temporary failure resolving 'download.proxmox.com'

1.3解决:echo "nameserver 1.1.1.1" >> /etc/resolv.conf

再执行apt update && apt dist-upgrade 成功更新

2.1 安装温度显示

输入:

apt-get install lm-sensors

再次输入:

sensors-detect

一路‘Y'确认下去,最后提示

Unloading cpuid... OK

查看温度:

root@pve:~# sensors

显示如下:

root@pve:~# sensors
acpitz-acpi-0
Adapter: ACPI interface
temp1:        +60.0°C  (crit = +95.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +59.0°C  (high = +105.0°C, crit = +105.0°C)
Core 0:        +60.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:        +60.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:        +60.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:        +60.0°C  (high = +105.0°C, crit = +105.0°C)

教程:https://songw.top/archives/748.html

里面添加在pve界面显示的步骤还没试验,

时间不同步问题

输入:date显示如下,时间不对

root@pve:~# date
Thu 24 Mar 2022 07:17:36 AM CST

1.1安装ntp

1.2 nano /etc/ntp.conf 原内容下面4条pool注销掉,添加国内时间下面2条,输入ctrl+0,确认保存,ctro+x退出

# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example

# pool.ntp.org maps to about 1000 low-stratum NTP servers.  Your server will
# pick a different set every time it starts up.  Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>

#原内容
#pool 0.debian.pool.ntp.org iburst
#pool 1.debian.pool.ntp.org iburst
#pool 2.debian.pool.ntp.org iburst
#pool 3.debian.pool.ntp.org iburst

#新加内容,改为国内时间
pool ntp7.aliyun.com iburst
pool cn.ntp.org.cn iburst

输入:

systemctl restart ntp
ntpq -p

最后输入:date查看时间

root@pve:~# apt -y install ntp
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libevent-core-2.1-6 libevent-pthreads-2.1-6 sntp
Suggested packages:
........
Setting up sntp (1:4.2.8p12+dfsg-4) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u2) ...
root@pve:~# nano /etc/ntp.conf
root@pve:~# systemctl restart ntp
root@pve:~# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp7.aliyun.com .POOL.          16 p    -   64    0    0.000    0.000   0.000
 cn.ntp.org.cn   .POOL.          16 p    -   64    0    0.000    0.000   0.000
 203.107.6.88    100.107.25.114   2 u    1   64    1   44.746    0.519   0.061
 223.113.103.191 10.137.53.7      3 u    2   64    1   33.822   -2.199   0.002
 120.25.115.20   10.137.53.7      2 u    2   64    1    9.094   -1.759   0.000
 223.113.97.98   203.107.6.88     3 u    2   64    1   39.958   -0.541   0.231
root@pve:~# date
Wed 23 Mar 2022 11:27:49 PM CST

照着这教程 教程:https://songw.top/archives/748.html

只做到这一步,后面添加网页显示的时候,步骤没错,就不知道为什么,重启pve后,网页空白,还好各个文件 都有备份,改回原文件,暂时不知道什么原因,不过PVE界面也用得少,不添加 了,先找找怎么添加 到op里面去显示

最后修改:2022 年 03 月 24 日
如果觉得我的文章对你有用,请随意赞赏