[lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Michael Peek
Hi gurus, I'm scratching my head again. I'm using the following commands to create an LXC container with a static IP address: # lxc-create -n my-container-1 -t download -- -d ubuntu -r xenial -a amd64 # vi /var/lib/lxc/my-container-1/config Change: # Network configuration

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Ron Kelley
What profile(s) are you using for your LXC containers? On Oct 20, 2016, at 1:33 PM, Michael Peek wrote: Hi gurus, I'm scratching my head again. I'm using the following commands to create an LXC container with a static IP address: # lxc-create -n my-container-1 -t download -- -d ubuntu -r x

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Michael Peek
How do I tell? Michael On 10/20/2016 01:35 PM, Ron Kelley wrote: > What profile(s) are you using for your LXC containers? > > > > On Oct 20, 2016, at 1:33 PM, Michael Peek > wrote: > > Hi gurus, > > I'm scratching my head again. I'm using the following commands to > c

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Ron Kelley
"lxc profile show”. Usually, you have a default profile that gets applied to your container unless you have created a new/custom profile. On Oct 20, 2016, at 1:41 PM, Michael Peek wrote: How do I tell? Michael On 10/20/2016 01:35 PM, Ron Kelley wrote: > What profile(s) are you using fo

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Michael Peek
# lxc profile show The program 'lxc' is currently not installed. You can install it by typing: apt install lxd-client Maybe that's part of the problem? Am I missing a package? Here are the packages I have installed for lxc: # dpkg -l | grep lxc | cut -c1-20 ii liblxc1 ii lxc

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Ron Kelley
hmmm, seems you are running the “original” version of lxc and not the new lxc/lxd software. Please ignore my comments then… On Oct 20, 2016, at 1:47 PM, Michael Peek wrote: # lxc profile show The program 'lxc' is currently not installed. You can install it by typing: apt install lxd-client M

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread McDonagh, Ed
Subject: Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others hmmm, seems you are running the “original” version of lxc and not the new lxc/lxd software. Please ignore my comments then… On Oct 20, 2016, at 1:47 PM, Michael Peek mailto:p...@nimbios.org>> wrote:

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Michael Peek
> > > Hence all his commands being lxc-command instead of lxc command > > > > *From:*lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] > *On Behalf Of *Ron Kelley > *Sent:* 20 October 2016 18:51 > *To:* LXC users mailing-list > *Subject:* Re: [lx

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread McDonagh, Ed
...@lists.linuxcontainers.org] On Behalf Of Michael Peek Sent: 20 October 2016 18:57 To: LXC users mailing-list Subject: Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others There is no lxc-profile command, and lxc-ls and lxc-info don't list anything about a profile. I have no

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Michael Peek
e the new tools that are being developed. > > > > *From:*lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] > *On Behalf Of *Michael Peek > *Sent:* 20 October 2016 18:57 > *To:* LXC users mailing-list > *Subject:* Re: [lxc-users] LXC containers w/ static IPs work o

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread McDonagh, Ed
...@lists.linuxcontainers.org] On Behalf Of Michael Peek Sent: 20 October 2016 19:07 To: LXC users mailing-list Subject: Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others I started out with lxd but ran into problems when I tried googling for instructions on how to

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Marat Khalili
Hello, I use lxc (not lxd!) with static IP addresses. Here's my config (Ubuntu 16.04): /etc/network/interfaces: auto br1 iface br1 inet static bridge_ports eno1 bridge_fd 0 address 10... # host ip configuration follows /etc/lxc/default.conf: lxc.network.type = veth lxc.network.

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Saint Michael
macvlan does not require router support. I use it everyday. On Thu, Oct 20, 2016 at 2:32 PM, Marat Khalili wrote: > Hello, > > I use lxc (not lxd!) with static IP addresses. Here's my config (Ubuntu > 16.04): > > /etc/network/interfaces: > > auto br1 > iface br1 inet static > bridge_ports en

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Michael Peek
On the host, if I assign the host ip configuration to br1, don't I need to change something about the eno1 configuration? Michael On 10/20/2016 02:32 PM, Marat Khalili wrote: > > Hello, > > I use lxc (not lxd!) with static IP addresses. Here's my config > (Ubuntu 16.04): > > /etc/network/interfac

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Saint Michael
if you use macvlan, there is no bridge anymore. It is either or On Thu, Oct 20, 2016 at 2:42 PM, Michael Peek wrote: > On the host, if I assign the host ip configuration to br1, don't I need to > change something about the eno1 configuration? > > Michael > > > On 10/20/2016 02:32 PM, Marat Khali

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-20 Thread Marat Khalili
On 20/10/16 21:42, Michael Peek wrote: On the host, if I assign the host ip configuration to br1, don't I need to change something about the eno1 configuration? Yes. You should delete it. Everything must be under br1. -- With Best Regards, Marat Khalili ___

Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others

2016-10-24 Thread Pierce Ng
On Thu, Oct 20, 2016 at 02:07:09PM -0400, Michael Peek wrote: > I started out with lxd but ran into problems when I tried googling for > instructions on how to assign a static IP address to a container. I set static IP for my LXD containers by configuring each container's /etc/network/interfaces.