maas in a container
Daniel Bidwell
drbidwell at gmail.com
Wed Aug 10 13:09:11 UTC 2016
I have followed the steps below, but still no luck. Here is what I
have:
/var/log/syslog on my container, maastest, shows:
Aug 10 12:51:05 maastest kernel: [210439.259086] audit: type=1400 audit(14708334
65.435:829): apparmor="DENIED" operation="mount" info="failed flags match" error
=-13 profile="lxd-maastest_</var/lib/lxd>" name="/tmp/maas-9bYBDZ/" pid=13267 co
mm="mount" fstype="ext4" srcname="/dev/loop0" flags="ro"
>From the machine holding the container a "lxc profile show maastest"
returns:
lxc profile show maastest
name: maastest
config:
raw.lxc: lxc.cgroup.devices.allow = c 10:237 rwm lxc.cgroup.devices.allow = b 7:*
rwm lxc.aa_profile = unconfined
security.privileged: "true"
description: ""
devices:
...
The maastest profile has been applied to the maastest container.
/etc/apparmor.d/lxc-custom-default contains:
profile lxc-container-extx-mounts
flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/lxc/container-base>
mount fstype=ext4 -> /**,
mount fstype=ext3 -> /**,
mount fstype=ext2 -> /**,
}
Any suggestions as to what I am missing?
On Sat, 2016-08-06 at 22:50 -0500, Jason Hobbs wrote:
> Hi Daniel,
>
> There is some documentation for installing MAAS in a container here:
>
> https://maas.ubuntu.com/docs/install.html#container-install
>
> It's focused on 2.0 but the same steps should work for 1.9.3 too. It
> covers setting up the loop devices.
>
> Hope this helps,
> Jason
>
> On Sat, Aug 6, 2016 at 10:11 PM, Daniel Bidwell <drbidwell at gmail.com>
> wrote:
> > I have a lxd container running on 16.04 with maas 1.9.3 running in
> > it.
> >
> > The pxe boot doesn't work because the container doesn't have any
> > /dev/loop* devices and will not allow me to create any.
> >
> > How do I go about creating /dev/loop* devices and allowing them to
> > work
> > in a container?
> > --
> > Daniel Bidwell <drbidwell at gmail.com>
> >
> >
> > --
> > Juju mailing list
> > Juju at lists.ubuntu.com
> > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman
> > /listinfo/juju
> >
--
Daniel Bidwell <drbidwell at gmail.com>
More information about the Juju
mailing list