Ubuntu Pastebin

Paste from smoser at Thu, 21 Apr 2016 13:16:15 +0000

Download as text
 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
$ 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:~$ 
Download as text