Proxmoxのアップデート中にpve-managerのpost-installが失敗する時

Proxmoxのアップデート中に、pve-managerのpost-installが次のような感じで失敗する時があります。

Job for pvedaemon.service failed.
See "systemctl status pvedaemon.service" and "journalctl -xeu pvedaemon.service" for details.
dpkg: error processing package pve-manager (--configure):
 installed pve-manager package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 pve-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)

何だろうと思って調べてみたところ、/etc/network/interface と /etc/hosts の対応が取れていないことが原因でした。

ミニPCに入れてあちこち持ち歩いている(あちらに繋ぎ、こちらに繋ぎ、していた)ためのようです。

 

修正後の設定内容は次のような感じになりました。

hostsの内容

# cat /etc/hosts
127.0.0.1       localhost
192.168.0.2     hoge  hoge.contoso.com

interfaceの例

# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto enp1s0
iface enp1s0 inet manual

auto enp2s0
iface enp2s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.2/24
        gateway 192.168.0.1
        bridge-ports enp1s0
        bridge-stp off
        bridge-fd 0
        dns-nameservers 8.8.8.8

auto vmbr1
iface vmbr1 inet manual
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
(以下略)

以上です。