This is my first attempt to install mysql server in Proxmox lxc container.
Never experienced this kind of problem with lxc/lxd containers on ubuntu server host.
Even 'lxc.apparmor.profile=unconfined' doesn't help
This is a privileged container.
The error message:
Tried the following to no avail:
This is my lxd container configuration on Ubuntu 20.04 which works with no issues:
Any ideas?
Never experienced this kind of problem with lxc/lxd containers on ubuntu server host.
Code:
arch: amd64
cores: 2
cpulimit: 2
features: mount=nfs;cifs,nesting=1
hostname: ubuntu-lxc-1
memory: 4096
net0: name=eth0,bridge=vmbr0,gw=10.10.5.1,hwaddr=2E:CF:14:D0:60:19,ip=10.10.5.91/24,type=veth
onboot: 1
ostype: ubuntu
rootfs: zfsa:subvol-200-disk-1,mountoptions=noatime,size=10G,acl=0
swap: 512
lxc.apparmor.profile=unconfined
Even 'lxc.apparmor.profile=unconfined' doesn't help
This is a privileged container.
The error message:
Code:
apparmor_parser: Unable to replace "/usr/sbin/mysqld". Permission denied; attempted to load a profile while confined?
Tried the following to no avail:
Code:
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
This is my lxd container configuration on Ubuntu 20.04 which works with no issues:
Code:
architecture: x86_64
config:
boot.autostart: "true"
image.architecture: amd64
image.description: ubuntu 20.04 LTS amd64 (
image.label: release
image.os: ubuntu
image.release: xenial
image.version: "20.04"
limits.cpu: "2"
limits.memory: 8GB
limits.memory.swap: "true"
raw.lxc: |-
lxc.cgroup.devices.allow = c 116:* rw
lxc.cgroup.devices.allow = c 166:* rw
lxc.apparmor.profile=unconfined
security.nesting: "true"
security.privileged: "true"
volatile.base_image: 58f90cbf68927c3fc43e6ee1386446a04f3d8068c1a75a291339cb2be01dec08
volatile.eth0.host_name: veth2606d870
volatile.eth0.hwaddr: 00:16:3e:1b:02:06
volatile.eth0.name: eth0
volatile.idmap.base: "0"
volatile.idmap.current: '[]'
volatile.idmap.next: '[]'
volatile.last_state.idmap: '[]'
volatile.last_state.power: RUNNING
volatile.uuid: 1d7f3e07-3902-4a15-913e-a4a42199b7ff
devices:
eth0:
ipv4.address: 10.0.3.11
nictype: bridged
parent: srvbr0
type: nic
vol-btrfs-1:
path: /mnt/data-volume
pool: btrfs-pool-dev-1
source: vol-btrfs-1
type: disk
ephemeral: false
profiles:
- default
stateful: false
Any ideas?