pve默认hosts文件内容

2021-05-28  本文已影响0人  小黑佬

我不小心。。在pve安装了cloud-init。。。直接把我的配置hosts和hostname改了,导致pve web无法正常访问。此处提供一份pve hosts用作参考,吧hosts和hostsname更正回原来的,然后重启就可以了。

root@proxmox-6-175:~# cat /etc/hosts

127.0.0.1 localhost.localdomain localhost
192.168.6.175 proxmox-6-175.proxmox.com proxmox-6-175 pvelocalhost

# 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

来自论坛的摘录
I ran into this problem a lot on several occasions.
ie issues with (/etc/pve/local/pve-ssl.key)

How to fix is.. i only tried this with new installs.

make sure ip can be resolved to hostname

That is ensure that
listed hostname in /etc/hostname is listed in /etc/hosts with ipaddress

then run pvecm updatecerts to regenerate certificates.

hope this helps anyone who runs into this problem.

上一篇下一篇

猜你喜欢

热点阅读