$ sudo lxd init
Name of the storage backend to use (dir or zfs): dir
Would you like LXD to be available over the network (yes/no)? no
Do you want to configure the LXD bridge (yes/no)? yes
Warning: Stopping lxd.service, but it can still be activated by:
lxd.socket
LXD has been successfully configured.
# to answer dpkg questions
## do you want to set up bridge? Yes
## Name? lxdbr0
## configure ipv4? No
## configure ipv6? No
## lxc-chroot is http://paste.ubuntu.com/15965053/
$ lxc init ubuntu-daily:xenial x1
$ lxc-chroot x1 -- sh -c 'cat > /var/lib/cloud/seed/nocloud-net/network-config' <<EOF
cat /var/lib/cloud/seed/nocloud-net/network-config
version: 1
config:
- type: physical
name: eth0
subnets:
- type: manual
control: auto
EOF
$ lxc start x1
$ lxc exec x1 -- sh -c 'ifconfig; cat /etc/network/interfaces.d/50-cloud-init.cfg'
eth0 Link encap:Ethernet HWaddr 00:16:3e:e5:c1:56
inet6 addr: fe80::216:3eff:fee5:c156/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:648 (648.0 B) TX bytes:648 (648.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:1512 (1.5 KB) TX bytes:1512 (1.5 KB)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
ubuntu@xenial-20160420-140447:~$