Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running LXC containers and the network-manager #2232

Closed
vevmesteren opened this issue Nov 7, 2015 · 2 comments
Closed

running LXC containers and the network-manager #2232

vevmesteren opened this issue Nov 7, 2015 · 2 comments

Comments

@vevmesteren
Copy link

Running cli-extra trusty

I want to see how much of my dev stack I can cram into Crouton.

I use lxc containers quite a bit. Creating the containers work. It's the startup that is more tricky. Starting it with Debug tells me that it fails when creating the networking-bridge. lxc-net in other words. So I attempted to have a look at the network-manager. apt-get install tells me it's installed, but the service isn't available.

Here is full output of lxc install process

# apt-get install --reinstall lxc
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/200 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 41532 files and directories currently installed.)
Preparing to unpack .../lxc_1.0.7-0ubuntu0.9_amd64.deb ...
Unpacking lxc (1.0.7-0ubuntu0.9) over (1.0.7-0ubuntu0.9) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up lxc (1.0.7-0ubuntu0.9) ...
runlevel:/var/run/utmp: No such file or directory
invoke-rc.d: policy-rc.d denied execution of start.
initctl: Unknown job: lxc
runlevel:/var/run/utmp: No such file or directory
invoke-rc.d: policy-rc.d denied execution of start.
initctl: Unknown job: lxc-net
Setting up lxc dnsmasq configuration.

Would you be able to point me in the right direction?

@vevmesteren
Copy link
Author

Fixing missing directory (var/run/utmp) and modifying policy-rc.d to exit 0

leaves me with this

# sudo apt-get install lxc --fix-missing --fix-broken --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/200 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 41532 files and directories currently installed.)
Preparing to unpack .../lxc_1.0.7-0ubuntu0.9_amd64.deb ...
Unpacking lxc (1.0.7-0ubuntu0.9) over (1.0.7-0ubuntu0.9) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up lxc (1.0.7-0ubuntu0.9) ...
initctl: Unknown job: lxc
initctl: Unknown job: lxc-net
Setting up lxc dnsmasq configuration.

@vevmesteren
Copy link
Author

skipping over to reading this #364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants