[SOLVED]Lxc_conf - conf.c:mk_devtmpfs:1349 - Permission denied - Unable to create /dev/.lxc for autodev


#1

Hi,
I get the following errors, could someone help me or assist to the right point? Thanks.

[root@node01 ~]# lxc config show c2
architecture: aarch64
config:
image.architecture: arm64
image.description: Alpine 3.8 arm64 (20180806_13:01)
image.os: Alpine
image.release: “3.8”
image.serial: “20180806_13:01”
volatile.base_image: 67036aa3cefd7faad97fa8c1b28c1f00616831c07b90720a59497a887e8db7ad
volatile.idmap.base: “0”
volatile.idmap.next: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:1000000,“Nsid”:0,“Maprange”:65536},{“Isuid”:false,“Isgid”:true,“Hostid”:1000000,“Nsid”:0,“Maprange”:65536}]’
volatile.last_state.idmap: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:1000000,“Nsid”:0,“Maprange”:65536},{“Isuid”:false,“Isgid”:true,“Hostid”:1000000,“Nsid”:0,“Maprange”:65536}]’
volatile.last_state.power: RUNNING
devices: {}
ephemeral: false
profiles:

  • default
    stateful: false
    description: “”

[root@node01 ~]# lxc launch images:alpine/3.8/arm64 c2
Creating c2

The container you are starting doesn’t have any network attached to it.
To create a new network, use: lxc network create
To attach a network to a container, use: lxc network attach

Starting c2
Error: Failed to run: /usr/bin/lxd forkstart c2 /var/lib/lxd/containers /var/log/lxd/c2/lxc.conf:
Try lxc info --show-log local:c2 for more info
[root@node01 ~]# lxc info --show-log local:c2
Name: c2
Remote: unix://
Architecture: aarch64
Created: 2018/08/06 18:59 UTC
Status: Stopped
Type: persistent
Profiles: default

Log:

lxc_container 1533581962.328 WARN lxc_start - start.c:lxc_check_inherited:228 - inherited fd 4
lxc_container 1533581962.328 WARN lxc_start - start.c:lxc_check_inherited:228 - inherited fd 16
lxc_container 1533581962.328 WARN lxc_start - start.c:lxc_check_inherited:228 - inherited fd 4
lxc_container 1533581962.328 WARN lxc_start - start.c:lxc_check_inherited:228 - inherited fd 16
lxc_container 1533581962.730 ERROR lxc_conf - conf.c:mk_devtmpfs:1349 - Permission denied - Unable to create /dev/.lxc for autodev
lxc_container 1533581962.733 ERROR lxc_conf - conf.c:setup_autodev:1552 - Operation not permitted - Error creating null
lxc_container 1533581962.733 ERROR lxc_conf - conf.c:lxc_setup:4349 - failed to populate /dev in the container
lxc_container 1533581962.733 ERROR lxc_start - start.c:do_start:732 - failed to setup the container
lxc_container 1533581962.733 ERROR lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 3)
lxc_container 1533581962.735 ERROR lxc_start - start.c:__lxc_start:1149 - failed to spawn ‘c2’
lxc_container 1533581962.873 ERROR lxc_conf - conf.c:run_buffer:353 - Script exited with status 1
lxc_container 1533581962.873 ERROR lxc_start - start.c:lxc_fini:501 - failed to run post-stop hooks for container ‘c2’.
lxc_container 1533581962.874 WARN lxc_conf - conf.c:lxc_delete_autodev:1606 - Failed to locate autodev /dev/.lxc and /dev/.lxc/user.
lxc_container 1533581962.874 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:178 - Command get_cgroup failed to receive response: Connection reset by peer.
lxc_container 1533581962.874 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:178 - Command get_cgroup failed to receive response: Connection reset by peer.
lxc_container 1533581976.161 WARN lxc_log - log.c:lxc_log_init:331 - lxc_log_init called with log already initialized
lxc_container 1533581976.191 WARN lxc_log - log.c:lxc_log_init:331 - lxc_log_init called with log already initialized


(Christian Brauner) #2

Can you please show the output of lxc info?


#3

I overcome the problem that i encountered, @stgraber posted a message about fedora arm64 lxclib packages, but cant find the post, anyway here are the 2.x.x rpm packages link.
fedora repo
I removed the liblxc 1.x.x packages and replaced with the new 2.x.x series, now I am able to test with the simple system successfully.
Thanks.
P.S. Soon I found the link for the reference. 2984