马春杰杰 Exit Reader Mode

Operation not permitted – Failed to mount “proc”

lxd打开容器出现问题,看下log信息:

Log:

lxc gabor 20210929082420.295 ERROR    utils - utils.c:safe_mount:1179 - Operation not permitted - Failed to mount "proc" onto "/usr/lib/x86_64-linux-gnu/lxc/proc"
lxc gabor 20210929082420.295 ERROR    conf - conf.c:lxc_mount_auto_mounts:724 - Operation not permitted - Failed to mount "proc" on "/usr/lib/x86_64-linux-gnu/lxc/proc" with flags 14
lxc gabor 20210929082420.295 ERROR    conf - conf.c:lxc_setup:3539 - Failed to setup first automatic mounts
lxc gabor 20210929082420.295 ERROR    start - start.c:do_start:1263 - Failed to setup container "gabor"
lxc gabor 20210929082420.295 ERROR    sync - sync.c:__sync_wait:62 - An error occurred in another process (expected sequence number 5)
lxc gabor 20210929082420.296 WARN     network - network.c:lxc_delete_network_priv:2589 - Operation not permitted - Failed to remove interface "eth1" with index 11
lxc gabor 20210929082420.296 ERROR    lxccontainer - lxccontainer.c:wait_on_daemonized_start:842 - Received container state "ABORTING" instead of "RUNNING"
lxc gabor 20210929082420.296 ERROR    start - start.c:__lxc_start:1939 - Failed to spawn container "gabor"
lxc 20210929082420.300 WARN     commands - commands.c:lxc_cmd_rsp_recv:132 - Connection reset by peer - Failed to receive response for command "get_state"

主要原因是proc目录的挂载问题,按以下操作解决:

mkdir /mnt/proc
mount -t proc proc /mnt/proc

本文最后更新于2021年9月29日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!