My host network configuration doesn't allow a bridge due to their network layout. The host vps has to act as a router. I really was just suggesting for you to create a dependent script that runs once lxc-net is finished to do what you needed.
P.S. my setup works just fine On Oct 2, 2015 6:30 PM, "Fajar A. Nugraha" <[email protected]> wrote: > You're not using lxcbr0 for its intended purposes. > > If you've used vmware/virtualbox before, lxcbr0 is similar to that of > NAT networking. It's an automated setup (with the help of dnsmasq and > iptables) to facilitate guest/vm/container to be able to share the > hosts's internet access, but not intended for outside world to access > the containers. > > Since it looks like you want your containers to be part of your LAN > directly (without NAT), create your own bridge (e.g. br0). Then set > your containers to use that bridge instead of lxcbr0 (i.e. by editing > the container's config and /etc/lxc/default.conf). > > -- > Fajar > > > On Sat, Oct 3, 2015 at 3:47 AM, Nicholas J Ingrassellino > <[email protected]> wrote: > > Thanks for the suggestion. > > > > Changing /etc/default/lxc-net allows me to add the host to my local > network > > (I can SSH in now). However this method does not allow me to set a > gateway > > nor DNS servers. If I could control this from /etc/network/interfaces > (like > > I have in the past, still not sure why it stopped working) this would be > so > > much simpler. > > > > Without gateway and DNS I can not get out to the Internet on this host. > > > > Nicholas J Ingrassellino > > LifebloodNetworks.com > > > > > > On 10/02/2015 04:09 PM, Stéphane Graber wrote: > > > > Sounds like you should be configuring /etc/default/lxc-net > > > > On Fri, Oct 02, 2015 at 03:03:35PM -0400, Nicholas J Ingrassellino wrote: > > > > I have a fresh install of Ubuntu 14.04.3. On it (from the > > /ubuntu-lxc/stable/ PPA) I have installed LXC. In my > > //etc/network/interfaces/ I have setup: > > > > /auto lo/ > > /iface lo inet loopback/ > > > > /auto em1/ > > /iface em1 inet manual/ > > > > /auto lxcbr0/ > > /iface lxcbr0 inet static/ > > / address 10.4.0.10/ > > / netmask 255.255.255.0/ > > / gateway 10.4.0.1/ > > / dns-nameservers 10.4.0.1/ > > / bridge_ports em1/ > > > > > > /lxcbr0/ shows up in /ifconfig/ however it always has the IP of / > 10.0.3.1/. > > This happens despite the fact I have configured a static IP (above). > > > > Not sure where to turn from here. I am following my own tutorial > > <http://blog.lifebloodnetworks.com/?p=2118> which I have used many > times in > > the past to setup an LXC host. Why it does not work this time I have no > > idea... > > > > Nicholas J Ingrassellino <mailto:[email protected]> > > LifebloodNetworks.com <http://www.lifebloodnetworks.com/> > > > > The idea that I can be presented with a problem, set out to logically > solve > > it with the tools at hand, and wind up with a program that could not be > > legally used because someone else followed the same logical steps some > years > > ago and filed for a patent on it is horrifying. > > ‐ John Carmack, software patents > > > > I don't want to be human. I want to see gamma rays, I want to hear > X-rays, > > and I want to smell dark matter. Do you see the absurdity of what I am? I > > can't even express these things properly, because I have to— I have to > > conceptualize complex ideas in this stupid, limiting spoken language, > but I > > know I want to reach out with something other than these prehensile paws, > > and feel the solar wind of a supernova flowing over me. I'm a machine, > and I > > can know much more. I could experience so much more, but I'm trapped in > this > > absurd body. > > ‐ John Cavil, Battlestar Galactica > > > > Here's to the crazy ones. The misfits. The rebels. The troublemakers. The > > round pegs in the square holes. The ones who see things differently. > They're > > not fond of rules. And they have no respect for the status quo. You can > > quote them, disagree with them, glorify, or vilify them. About the only > > thing you can't do is ignore them. Because they change things. They > invent. > > They imagine. They heal. They explore. They create. They inspire. They > push > > the human race forward. Maybe they have to be crazy. How else can you > stare > > at an empty canvas and see a work of art? Or sit in silence and hear a > song > > that's never been written? Or gaze at a red planet and see a laboratory > on > > wheels? While some see them as the crazy ones, I see genius. Because the > > people who are crazy enough to think they can change the world, are the > ones > > who do. > > ‐ Steve Jobs > > > > _______________________________________________ > > lxc-users mailing list > > [email protected] > > http://lists.linuxcontainers.org/listinfo/lxc-users > > > > > > > > _______________________________________________ > > lxc-users mailing list > > [email protected] > > http://lists.linuxcontainers.org/listinfo/lxc-users > > > > > > > > _______________________________________________ > > lxc-users mailing list > > [email protected] > > http://lists.linuxcontainers.org/listinfo/lxc-users > _______________________________________________ > lxc-users mailing list > [email protected] > http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
