Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've set up Juju running in LXC, and I'm attempting to expose it to the internal network. I'm generally following this question to point lxc to my existing bridge (eth-br0).

I've edited /etc/default/lxc and /etc/lxc/default.conf as per the post, but when I try to bootstrap I get:

2013-09-26 19:47:05 INFO juju.provider.local environprovider.go:32 opening environment "local"
2013-09-26 19:47:05 ERROR juju.utils network.go:37 cannot find network interface "lxcbr0": net: no such interface
2013-09-26 19:47:05 ERROR juju.provider.local environprovider.go:48 failure setting config: net: no such interface
2013-09-26 19:47:05 ERROR juju supercommand.go:282 command failed: net: no such interface
error: net: no such interface

Obviously something is still trying to point to lxcbr0 rather than the existing bridge. If I just want to expose a lxc juju to the network, is this the best way to do it and how should I configure it properly.

I can attach my ifconfig if necessary.

share|improve this question
add comment

1 Answer

You are right something is trying to point lxcbr0.

Use lxcbr0 in these files

  1. /etc/default/lxc
  2. /etc/lxc/default.conf
  3. /etc/network/interfaces

I tried br0 it give me the same error. After changing existing bridge to lxcbr0 that I worked fine.

share|improve this answer
    
While thats true that using the default works, my original question is how do I change the bridge to something else. I have an existing bridge on a NIC that I need to point LXC to. –  user187595 Oct 11 '13 at 21:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.