Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Mention manual configuration for testing with loop devices in LXD #1665
Comments
|
Cool. Thanks for explaining this, we will add it ASAP. |
evilnick
added
2.0
2.1
medium priority
labels
Feb 16, 2017
matthewhelmke
referenced this issue
Feb 22, 2017
Merged
added info about manual configuration of loop devices with LXD #1675
degville
closed this
in
#1675
Feb 22, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
axw commentedFeb 15, 2017
As of Juju 2.0, we no longer have a way to enable loop devices in the local provider, and we're not likely to bring it back soon (it's dangerous). Can we please get a small section added to replace the old docs that were removed with #1661.
To add loop devices to your container, you need to add devices to your container or profile.
The above is enough to expose the loop devices into the container, and for the container to acquire one of them using "losetup". It is not enough to enable the container to mount filesystems on the loop devices. For that, the simplest thing to do is to make the container privileged:
Each container uses the default profile, but also a model-specific profile with the name juju-. Editing a profile will affect all of the containers using it, so you can add loop devices to all LXD containers by editing the default profile, or you can scope it to a model.