[lxc-users] lxd init wants address to bind to?

St├ęphane Graber stgraber at ubuntu.com
Fri Apr 29 17:28:55 UTC 2016


On Fri, Apr 29, 2016 at 10:18:01AM -0700, Dan Kegel wrote:
> So... why doesn't lxd init figure out the address to bind to itself?
> I mean, I guess I can write a script that looks up the current IP
> address and then invokes lxd init, but that seems clumsy.
> Is lxd's primary target audience servers that have lots of addresses?
> 
> And if DHCP changes the host's address, will lxd be bound to a stale address?
> (The subtle answer might be "for gosh sakes don't use dhcp for
> servers", I suppose.)

You can use 0.0.0.0 or [::] to bind all addresses.

But yes, most people run LXD on hosts that have multiple addresses and
only want it to bind to a single one, typically some management address.

-- 
St├ęphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160429/2eb342f1/attachment.sig>


More information about the lxc-users mailing list