LXD questions on Config and Centos Version

Hi Guys.

Im using Ubuntu 16.04 with the latest LXD on snap and using LXC 2.0.11

I want to create a Centos 7 container with certain conditions

1st question regarding to profile:

I created a new profile by copying the default profile and just renaming it to be devprofile

lxc profile copy default devprofile

With the devprofile I’ve already edit the “parent” to be the correct bridge interface “br0” and successfully save it.

root@LXC:/var/lib/lxd/devices# lxc profile show devprofile
config:
environment.http_proxy: “”
user.network_mode: “”
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
name: devprofile
used_by: []

I want to add this config file root permissions to make any changes to / and the file type I want

I was thinking something like this:
root:
path: /
pool: default
type: disk

Would this be correct?

Why I want these changes is I think they are cause of the issues i’m experiencing if i’m installing PBX software as i’m getting the below error when I untar a file:

Cannot mknod: Operation not permitted

2nd question:

Is there away to install Centos 7 Minimal as the container?

Even doing a simple groupinstall of “base” comes back with

Installing : scl-utils-20130529-18.el7_4.x86_64 242/242
mknod: ‘/var/tmp/dracut.Jbebc0/initramfs/dev/null’: Operation not permitted
mknod: ‘/var/tmp/dracut.Jbebc0/initramfs/dev/kmsg’: Operation not permitted
mknod: ‘/var/tmp/dracut.Jbebc0/initramfs/dev/console’: Operation not permitted
mknod: ‘/var/tmp/dracut.pFOVB5/initramfs/dev/null’: Operation not permitted
mknod: ‘/var/tmp/dracut.pFOVB5/initramfs/dev/kmsg’: Operation not permitted
mknod: ‘/var/tmp/dracut.pFOVB5/initramfs/dev/console’: Operation not permitted

here’s the config of the the container im using

root@LXC:/var/lib/lxd/devices# lxc config show --expanded mycentos7
architecture: x86_64
config:
environment.http_proxy: “”
user.network_mode: “”
volatile.base_image: 15089a3549694918ce96dfd777efb94a936fa10eade7699b1749b91a439acd54
volatile.eth0.hwaddr: 00:16:3e:9e:60:79
volatile.idmap.base: “0”
volatile.idmap.next: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:100000,“Nsid”:0,“Maprange”:65536},{“Isuid”:false,“Isgid”:true,“Hostid”:100000,“Nsid”:0,“Maprange”:65536}]’
volatile.last_state.idmap: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:100000,“Nsid”:0,“Maprange”:65536},{“Isuid”:false,“Isgid”:true,“Hostid”:100000,“Nsid”:0,“Maprange”:65536}]’
volatile.last_state.power: RUNNING
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
root:
path: /
type: disk
ephemeral: false
profiles:

  • default
    stateful: false
    description: “”
    root@LXC:/var/lib/lxd/devices#

Here’s the errors I get win I try install a PBX software on the container

tar: opt/pbx/pw/dev/random: Cannot mknod: Operation not permitted
opt/pbx/pw/dev/dahdi/
opt/pbx/pw/dev/dahdi/135
tar: opt/pbx/pw/dev/dahdi/135: Cannot mknod: Operation not permitted
opt/pbx/pw/dev/dahdi/142
tar: opt/pbx/pw/dev/dahdi/142: Cannot mknod: Operation not permitted
opt/pbx/pw/dev/dahdi/27
tar: opt/pbx/pw/dev/dahdi/27: Cannot mknod: Operation not permitted
opt/pbx/pw/dev/dahdi/50
tar: opt/pbx/pw/dev/dahdi/50: Cannot mknod: Operation not permitted
opt/pbx/pw/dev/dahdi/148
tar: opt/pbx/pw/dev/dahdi/148: Cannot mknod: Operation not permitted
opt/pbx/pw/dev/dahdi/241