将Proxmox 3中的Debian 7 OpenVZ CT迁移到Proxmox 4上的LXC后,似乎无法正确启动。 最后,通过在Proxmox 3上停止容器,备份到外部硬盘,然后在Proxmox 4中加载该硬盘,恢复该备份并设置networkingconfiguration来完成迁移。 之后,容器似乎根据Proxmox正确启动,但无法通过任一控制台(tty)连接到,输出空白,不login或任何,或SSH(连接被拒绝)。 重新启动CT和主机似乎没有任何影响,并且使用-o
日志文件以lxc-start -n 101
CT会得到以下输出:
lxc-start 1445190074.912 ERROR lxc_commands - commands.c:lxc_cmd_rsp_send:237 - failed to send command response -1 Broken pipe lxc-start 1445190074.913 ERROR lxc_commands - commands.c:lxc_cmd_rsp_send:237 - failed to send command response -1 Broken pipe
如何诊断这个问题可能来自哪里或如何去解决它的任何想法?
编辑:所有其他容器迁移完全相同的方式工作完全开箱…
编辑2:有一点可能是有趣的指出,我看起来在LXC的引导日志(dmesg)中看到了很多这些错误:
[ 9741.362095] audit: type=1400 audit(1445199000.045:102): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default" name="/" pid=10171 comm="mount" flags="rw, remount"
有关LXC的更详细的启动日志,请参阅http://pastebin.com/2H0iAJPn