无法启动lxc容器

niren

我已经在ubuntu服务器中安装了lxc,一切正常。今天,我已经将lxc从0.7.5版本更新到了1.0.0.alpha2版本。更新lxc之后,无法启动lxc容器。

lxc-ls:

ContainerOne containerTwo ContainerThree.

我已经在0.7.5版中创建了这些容器。

更新到1.0.0.alpha2后,我尝试以以下方式启动容器

lxc-start -n ContainerOne

Result:

<4> init: ureadahead main process (7) terminated with status 5 
. 
.
.
mountall: mount /run [34] terminated with status 32 
mountall: Filesystem could not be mounted: /run

这是什么错误?我怎么解决这个问题?我已经重新启动服务器,但是没有运气。

附加信息:

第一次安装lxc时,我已经在其他文件系统中安装了lxc lib和缓存。fstab文件中的条目:

/home/lxclib /var/lib/lxc none defaults, bind 0 0 /home/lxccache /var/cache/lxc none defaults, bind 0 0

编辑:当所有三个容器启动时,我确实更新了lxc,这是问题吗?

niren

问题解决了:

我必须/var/lib/lxc/ContainerOne/fstab从所有容器的主机中添加这些行

/sys/fs/fuse/connections /sys/fs/fuse/connections none bind 0 0
/sys/kernel/debug /sys/kernel/debug none bind 0 0
/sys/kernel/security /sys/kernel/security none bind 0 0
/sys/fs/pstore /sys/fs/pstore none bind,optional 0 0

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章