1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117 | ubuntu@frayed-snails:~$ sudo lxc profile list
default
docker
juju-machine-0-lxd-0-network
ubuntu@frayed-snails:~$ sudo lxc profile show juju-machine-0-lxd-0-network
name: juju-machine-0-lxd-0-network
config: {}
description: ""
devices:
eth0:
hwaddr: 00:16:3e:18:a8:d4
mtu: "1500"
name: eth0
nictype: bridged
parent: br-eth0
type: nic
eth1:
hwaddr: 00:16:3e:92:b5:95
mtu: "1500"
name: eth1
nictype: bridged
parent: br-eth0.10
type: nic
eth2:
hwaddr: 00:16:3e:6b:30:e0
mtu: "1500"
name: eth2
nictype: bridged
parent: br-eth0.11
type: nic
eth3:
hwaddr: 00:16:3e:d2:ff:cb
mtu: "1500"
name: eth3
nictype: bridged
parent: br-eth0.12
type: nic
ubuntu@frayed-snails:~$ logout
Connection to 172.16.10.110 closed.
aim@x1c:~/juju (master) (local.maas)
$ juju ssh 0
Warning: Permanently added '172.16.10.110' (ECDSA) to the list of known hosts.
Warning: Permanently added '172.16.10.110' (ECDSA) to the list of known hosts.
Welcome to Ubuntu Xenial Xerus (development branch) (GNU/Linux 4.4.0-17-generic x86_64)
* Documentation: https://help.ubuntu.com/
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
18 packages can be updated.
0 updates are security updates.
Last login: Wed Apr 6 16:10:12 2016 from 172.16.10.110
ubuntu@frayed-snails:~$ sudo su
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/
juju-machine-0-lxd-0/ juju-machine-0-lxd-0.zfs/ lxc-monitord.log
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/juju-machine-0-lxd-0
juju-machine-0-lxd-0/ juju-machine-0-lxd-0.zfs/
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/juju-machine-0-lxd-0/
metadata.yaml rootfs/ templates/
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/juju-machine-0-lxd-0/templates/
cloud-init-meta.tpl cloud-init-user.tpl cloud-init-vendor.tpl interfaces.tpl upstart-override.tpl
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/juju-machine-0-lxd-0/templates/cloud-init-meta.tpl
#cloud-config
instance-id: {{ container.name }}
local-hostname: {{ container.name }}
{{ config_get("user.meta-data", "") }}
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/juju-machine-0-lxd-0
juju-machine-0-lxd-0/ juju-machine-0-lxd-0.zfs/
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/juju-machine-0-lxd-0/
metadata.yaml rootfs/ templates/
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/juju-machine-0-lxd-0/
metadata.yaml rootfs/ templates/
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/juju-machine-0-lxd-0/rootfs/etc/
Display all 184 possibilities? (y or n)
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/juju-machine-0-lxd-0/rootfs/etc/network/interfaces.d/
cat: /var/lib/lxd/containers/juju-machine-0-lxd-0/rootfs/etc/network/interfaces.d/: Is a directory
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/juju-machine-0-lxd-0/rootfs/etc/network/interfaces.d/
00-juju.cfg eth0.cfg
root@frayed-snails:/home/ubuntu# cat /var/lib/lxd/containers/juju-machine-0-lxd-0/rootfs/etc/network/interfaces.d/00-juju.cfg
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
dns-nameservers 172.16.10.2
dns-search maas
pre-up ip address add 172.16.10.111/24 dev eth0 || true
up ip route replace 172.16.10.0/24 dev eth0 || true
down ip route del 172.16.10.0/24 dev eth0 || true
post-down address del 172.16.10.111/24 dev eth0 || true
up ip route replace default via 172.16.10.1 || true
down ip route del default via 172.16.10.1 || true
auto eth1
iface eth1 inet manual
pre-up ip address add 192.168.10.101/24 dev eth1 || true
up ip route replace 192.168.10.0/24 dev eth1 || true
down ip route del 192.168.10.0/24 dev eth1 || true
post-down address del 192.168.10.101/24 dev eth1 || true
auto eth2
iface eth2 inet manual
pre-up ip address add 192.168.11.101/24 dev eth2 || true
up ip route replace 192.168.11.0/24 dev eth2 || true
down ip route del 192.168.11.0/24 dev eth2 || true
post-down address del 192.168.11.101/24 dev eth2 || true
auto eth3
iface eth3 inet manual
pre-up ip address add 192.168.12.101/24 dev eth3 || true
up ip route replace 192.168.12.0/24 dev eth3 || true
down ip route del 192.168.12.0/24 dev eth3 || true
post-down address del 192.168.12.101/24 dev eth3 || true
|