OpenVZ 安装后无法初始化容器

OpenVZ 安装后无法初始化容器

我在专用服务器上的 centos 6 上安装了 OpenVZ。我按照 openvz wiki 上的快速安装指南进行操作。通过 yum 安装后,我不知道为什么,但是 grub.conf 没有自动更新以适应新内核,所以我不得不手动进行更新。

我编辑了 grub.conf,添加了 openvz 内核并重新启动 - 一切顺利。服务器进入 openvz 内核并且正常工作,它自行启动了 openvz 服务。

但是在我创建了一个容器、添加了 IP 并尝试启动它之后,却无法启动。

以下是 shell 的输出:

[root@cloud2 ~]# vzctl start 86
Starting container ...
Container is mounted
Container start failed (try to check kernel messages, e.g. "dmesg | tail")
Container is unmounted
[root@cloud2 ~]# dmesg | tail
[ 1973.401596] CT: 86: failed to start with err=-105
[ 2107.113850] Failed to initialize the ICMP6 control socket (err -105).
[ 2107.155523] CT: 86: stopped
[ 2107.155543] CT: 86: failed to start with err=-105
[ 6348.282184] Failed to initialize the ICMP6 control socket (err -105).
[ 6348.330348] CT: 86: stopped
[ 6348.330361] CT: 86: failed to start with err=-105
[45184.024002] Failed to initialize the ICMP6 control socket (err -105).
[45184.072086] CT: 86: stopped
[45184.072099] CT: 86: failed to start with err=-105
[root@cloud2 ~]#

我不知道哪里出了问题。我尝试了不同的模板,debian 6、centos 6、i386、amd64,但问题是一样的。

问题是什么?

答案1

我遇到过类似的问题,结果发现问题出在这个容器设置上:vzctl set 54 --numothersock 120 如果你删除它(或将其设置为 1200 之类的值),容器就可以正常启动。

相关内容