Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

LXC configuration issues on Ubuntu 18.04 (lxc 3.0.0) #16

Closed
sgalgano opened this issue May 22, 2018 · 3 comments
Closed

LXC configuration issues on Ubuntu 18.04 (lxc 3.0.0) #16

sgalgano opened this issue May 22, 2018 · 3 comments
Assignees
Labels

Comments

@sgalgano
Copy link
Member

Reported on mailing list by Michael J. Vincent:

I've compiled the latest 1.2.2 and Protobuf 3.5.1; however, none of the EMANE tutorial simulations (https://github.com/adjacentlink/emane-tutorial) work. Investigating the issues why nothing starts - it seems LXC is at major version 3.x on Ubuntu 18.04 and that means config syntax changes (https://github.com/lxc/lxd/issues/4396#issuecomment-378322166).

I updated the scripts/demctl-init.sh script to accommodate; however, I'm still having issues - now with OLSRd not finding the /proc filesystem on the containers.

sgalgano added a commit that referenced this issue May 22, 2018
deprecated configuration keys. Further investigation needed to
determine if the new keys are available across supported distro lxc
versions. Current fix conditionally builds a different LXC conf for
version 3.

Reported-by: Mike Vincent <mvincent@mitre.org>
See #16
@sgalgano sgalgano self-assigned this May 22, 2018
@sgalgano sgalgano added the bug label May 22, 2018
@vinsworldcom
Copy link

Steve,
Thanks for opening the issue. Attached are the patch file for democtl-host that looks at LXC version and then use 2 new files for lxc2 and lxc3 templates to create the lxc.conf files.

emane-tutorial.zip

@vinsworldcom
Copy link

The OLSRd finding /proc filesystem is fixed as well in the lxc3.template file in the ZIP patch above. Essentially need the command:
lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed

@sgalgano
Copy link
Member Author

sgalgano commented Jun 3, 2018

I'm going to stick with the modifications that were made in feature/issue16.

We have on our roadmap a revamped version of the tutorial that drops the use of makefiles and sed in favor of a template library. This will likely either use etce or an etce-like offshoot. We have largely been using Mako as our template language on other projects.

I've tested feature/issue16 modifications on CentOS 7, Fedora 27 and Ubuntu 18.04. The feature branch has now been merged into develop.

@sgalgano sgalgano closed this as completed Jun 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants