"Contains Legacy Configuration Keys"

Editor

Well-Known Member
Apr 26, 2017
108
1
58
Turkey
Hi,

I added this codes in the container configation file for docker.

Code:
lxc.aa_profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:

but I get this message:

The Configuration File Contains Legacy Configuration Keys. Please Update Your Configuration File!

How can I fix this?
 
Hmm ... If i fix the aa_profile parameter, it works:

Code:
root@proxmox ~ > cat /etc/pve/lxc/100.conf
arch: amd64
cores: 1
hostname: docker-test
memory: 512
net0: name=eth0,bridge=vmbr0,hwaddr=EE:AA:F3:AD:6F:55,type=veth
ostype: alpine
rootfs: harddisk:subvol-100-disk-1,size=8G
swap: 512

lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:

root@proxmox ~ > pct start 100
root@proxmox ~ > pct stop 100

What version are you running?
 
Hmm ... If i fix the aa_profile parameter, it works:

Code:
root@proxmox ~ > cat /etc/pve/lxc/100.conf
arch: amd64
cores: 1
hostname: docker-test
memory: 512
net0: name=eth0,bridge=vmbr0,hwaddr=EE:AA:F3:AD:6F:55,type=veth
ostype: alpine
rootfs: harddisk:subvol-100-disk-1,size=8G
swap: 512

lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:

root@proxmox ~ > pct start 100
root@proxmox ~ > pct stop 100

What version are you running?

I will try this
v 5.1-46
 
I set it up yesterday and it worked like a charm.

I'm using ZFS on the PVE host, so you cannot use it in the guest. OverlayFS is also not working, but AuFS is, so please load the aufs driver manually on the host before starting your guest. I used Debian Stretch to test it, Alpine Linux was not able to load the cgroups out-of-the-box, but that could be a bug in Alpine Linux.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!