detected the following error(s):
* this host already contains virtual guests
TASK ERROR: Check if node may join a cluster failed!
出现这个错误,有可能是你之前加入了这个集群,没有清理干净,你可以看看这三个文件
在要加入的节点上的"/etc/pve/qemu-server"或"/etc/pve/lxc"中是否还剩下任何文件?
ls /etc/pve/qemu-server 和ls /etc/pve/lxc 以及 ls /etc/pve/nodes
在 /etc/pve/nodes/ 中,我发现每个旧节点(即 /etc/pve/nodes/node1/qemu-server/ 都有一个目录,在里面找到了 vm .conf 文件,即 101.conf。我删除了这些,然后连接正常工作
root@pve24:~# ls /etc/pve/nodes/pve24/qemu-server
574.conf
该节点上已有一个容器。如果要保留它,请进行备份。然后删除容器,将节点加入群集并还原容器,保证一个安全,不出生产事故!
最后的成功日志,先备份,再删除,加入集群成功后,再还原!美滋滋