Which distro, and how did you install it? Using ubuntu 18.04.1 host, bundled lxd 3.0.1-0ubuntu1~18.04.1, I was able to start mariadb (10.1 bundled in ubuntu, as well as 10.2 and 10.3 from https://downloads.mariadb.org/mariadb/repositories/) in unpriv lxd container just fine.
IIRC on openvpn its systemd service was causing problem (privatetmp or something? can't remember the details now), so you might want to poke around /lib/systemd/system/mariadb.service in case something similar is causing a problem here. 'systemctl status mariadb' and /var/log/syslog might also help provide some hints. Another thing you might be able to try, is install it as priv container, but then convert it to unpriv afterwards. This might help as a workaround if whatever version of lxc/lxd you're using is having problems with mariadb's post install script. -- Fajar On Wed, Aug 8, 2018 at 4:49 AM, Saint Michael <[email protected]> wrote: > same here, and it failed to install on a unprivileged container. Mariadb > 10.2 > > > On Tue, Aug 7, 2018 at 2:36 PM Szalewicz Patrick <[email protected]> > wrote: > >> I installed MariaDB a few times in a lxc Container >> >> What OS are you using? >> >> I used Ubuntu and Debian in the containers >> >> >> >> >> On Tue, Aug 7, 2018 at 8:18 PM +0200, "Serge E. Hallyn" <[email protected] >> > wrote: >> >> Quoting Saint Michael ([email protected]): >>> > The default unprivileged 3.0 container does not allow fort the >>> > installation >>> > on MariaDB, so we are forced to make into a privileged one. In my opinion >>> > this involves a huge risk, since we need to install MySQL or Mariadb in >>> > almost every conceivable container. LXC should allow to install at least >>> > the most popular database in the planet. Please don't believe me, just try >>> > it. The installation never finishes because there is an error at the end, >>> > and the error is related a some cap missing. >>> >>> Can you show the specific error? >>> >>>
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
