1
|
Guessing http mirror... deb [ arch=amd64 ] file:/media/cdrom xenial main universe
|
2
|
Checking cache download in /opt/cache/lxc/eole/rootfs-amd64 ...
|
3
|
Installing packages in template: nano,vim,openssh-server,language-pack-en,language-pack-fr
|
4
|
Downloading ubuntu xenial minimal ...
|
5
|
E: No such script: [
|
6
|
+ set -e
|
7
|
+ LOCALSTATEDIR=/opt
|
8
|
+ LXC_TEMPLATE_CONFIG=/usr/share/lxc/config
|
9
|
+ LXC_CACHE_PATH=/opt/cache/lxc
|
10
|
+ '[' -r /etc/default/lxc ']'
|
11
|
+ . /etc/default/lxc
|
12
|
++ LXC_AUTO=true
|
13
|
++ BOOTGROUPS=onboot,
|
14
|
++ SHUTDOWNDELAY=5
|
15
|
++ OPTIONS=
|
16
|
++ STOPOPTS='-a -A -s'
|
17
|
++ USE_LXC_BRIDGE=false
|
18
|
++ '[' '!' -f /etc/default/lxc-net ']'
|
19
|
++ . /etc/default/lxc-net
|
20
|
+++ USE_LXC_BRIDGE=true
|
21
|
+++ LXC_BRIDGE=br0
|
22
|
+++ LXC_ADDR=192.0.2.1
|
23
|
+++ LXC_NETMASK=255.255.255.0
|
24
|
+++ LXC_NETWORK=192.0.2.0/24
|
25
|
+++ LXC_DHCP_RANGE=192.0.2.198,192.0.2.199
|
26
|
+ EOLE_GPG_KEYS=/etc/apt/trusted.gpg.d/eole-archive-keyring.gpg
|
27
|
+ INSTALL_CDROM=0
|
28
|
++ getopt -o a:b:hp:r:v:n:FS:du: -l arch:,bindhome:,help,path:,release:,variant:,name:,flush-cache,auth-key:,debug,rootfs:,packages:,user:,password:,mirror:,security-mirror: -- --path=/var/lib/lxc/internet --name=internet --rootfs=/var/lib/lxc/internet/rootfs
|
29
|
+ options=' --path '\''/var/lib/lxc/internet'\'' --name '\''internet'\'' --rootfs '\''/var/lib/lxc/internet/rootfs'\'' --'
|
30
|
+ '[' 0 -ne 0 ']'
|
31
|
+ eval set -- ' --path '\''/var/lib/lxc/internet'\'' --name '\''internet'\'' --rootfs '\''/var/lib/lxc/internet/rootfs'\'' --'
|
32
|
++ set -- --path /var/lib/lxc/internet --name internet --rootfs /var/lib/lxc/internet/rootfs --
|
33
|
+ release=precise
|
34
|
+ '[' -f /etc/lsb-release ']'
|
35
|
+ . /etc/lsb-release
|
36
|
++ DISTRIB_ID=Ubuntu
|
37
|
++ DISTRIB_RELEASE=16.04
|
38
|
++ DISTRIB_CODENAME=xenial
|
39
|
++ DISTRIB_DESCRIPTION='Ubuntu 16.04.3 LTS'
|
40
|
+ '[' Ubuntu = Ubuntu ']'
|
41
|
+ release=xenial
|
42
|
+ bindhome=
|
43
|
+ '[' -x /usr/bin/dpkg ']'
|
44
|
+ /usr/bin/dpkg --print-architecture
|
45
|
++ /usr/bin/dpkg --print-architecture
|
46
|
+ arch=amd64
|
47
|
+ debug=0
|
48
|
+ hostarch=amd64
|
49
|
+ flushcache=0
|
50
|
+ packages=
|
51
|
+ user=ubuntu
|
52
|
+ password=ubuntu
|
53
|
+ true
|
54
|
+ case "$1" in
|
55
|
+ path=/var/lib/lxc/internet
|
56
|
+ shift 2
|
57
|
+ true
|
58
|
+ case "$1" in
|
59
|
+ name=internet
|
60
|
+ shift 2
|
61
|
+ true
|
62
|
+ case "$1" in
|
63
|
+ rootfs=/var/lib/lxc/internet/rootfs
|
64
|
+ shift 2
|
65
|
+ true
|
66
|
+ case "$1" in
|
67
|
+ shift 1
|
68
|
+ break
|
69
|
+ '[' 0 -eq 1 ']'
|
70
|
+ '[' -n '' ']'
|
71
|
+ '[' amd64 = i686 ']'
|
72
|
+ '[' amd64 = i386 -a amd64 = amd64 ']'
|
73
|
+ '[' amd64 = armhf -o amd64 = armel -o amd64 = arm64 ']'
|
74
|
+ '[' amd64 = arm64 ']'
|
75
|
+ '[' amd64 = powerpc -a amd64 '!=' powerpc ']'
|
76
|
+ which debootstrap
|
77
|
+ '[' -z /var/lib/lxc/internet ']'
|
78
|
++ id -u
|
79
|
+ '[' 0 '!=' 0 ']'
|
80
|
+ config=/var/lib/lxc/internet/config
|
81
|
+ '[' -z /var/lib/lxc/internet/rootfs ']'
|
82
|
+ '[' -z '' ']'
|
83
|
+ echo -n 'Guessing http mirror... '
|
84
|
+ guess_mirror xenial
|
85
|
+ release=xenial
|
86
|
+ SLIST=/etc/apt/sources.list
|
87
|
++ grep -h -r -m 1 '^deb.*xenial' /etc/apt/sources.list
|
88
|
++ sed -e 's,.*\(http[^[:space:]]*\).*,\1,'
|
89
|
+ export 'MIRROR=deb [ arch=amd64 ] file:/media/cdrom xenial main universe'
|
90
|
+ MIRROR='deb [ arch=amd64 ] file:/media/cdrom xenial main universe'
|
91
|
+ echo deb '[' arch=amd64 ']' file:/media/cdrom xenial main universe
|
92
|
+ grep -qE '^(cdrom|file):'
|
93
|
+ echo 'deb [ arch=amd64 ] file:/media/cdrom xenial main universe'
|
94
|
+ '[' -z '' ']'
|
95
|
+ HTTP_PROXY=apt
|
96
|
+ export DEBIAN_FRONTEND=noninteractive
|
97
|
+ DEBIAN_FRONTEND=noninteractive
|
98
|
+ install_ubuntu /var/lib/lxc/internet/rootfs xenial 0 /opt/cache/lxc
|
99
|
+ rootfs=/var/lib/lxc/internet/rootfs
|
100
|
+ release=xenial
|
101
|
+ flushcache=0
|
102
|
+ cache=/opt/cache/lxc/eole
|
103
|
+ mkdir -p /opt/lock/subsys/
|
104
|
+ flock -x 9
|
105
|
+ '[' 0 -ne 0 ']'
|
106
|
+ '[' 0 -eq 1 ']'
|
107
|
+ echo 'Checking cache download in /opt/cache/lxc/eole/rootfs-amd64 ... '
|
108
|
+ '[' '!' -e /opt/cache/lxc/eole/rootfs-amd64 ']'
|
109
|
+ download_ubuntu /opt/cache/lxc/eole amd64 xenial
|
110
|
+ cache=/opt/cache/lxc/eole
|
111
|
+ arch=amd64
|
112
|
+ release=xenial
|
113
|
+ packages_template=nano,vim,openssh-server
|
114
|
+ packages_template=nano,vim,openssh-server
|
115
|
+ debootstrap_parameters=
|
116
|
+ langpacks=language-pack-en
|
117
|
+ which dpkg
|
118
|
++ echo language-pack-en
|
119
|
++ sort -u
|
120
|
++ dpkg -l
|
121
|
++ grep -E '^ii language-pack-[a-z]* '
|
122
|
++ cut -d ' ' -f3
|
123
|
+ langpacks='language-pack-en
|
124
|
language-pack-fr'
|
125
|
++ echo language-pack-en language-pack-fr
|
126
|
++ sed 's/ /,/g'
|
127
|
+ packages_template=nano,vim,openssh-server,language-pack-en,language-pack-fr
|
128
|
+ '[' -n '' ']'
|
129
|
+ '[' '' = minbase ']'
|
130
|
+ echo 'Installing packages in template: nano,vim,openssh-server,language-pack-en,language-pack-fr'
|
131
|
+ trap cleanup EXIT SIGHUP SIGINT SIGTERM
|
132
|
+ try_mksubvolume /opt/cache/lxc/eole/partial-amd64
|
133
|
+ path=/opt/cache/lxc/eole/partial-amd64
|
134
|
+ '[' -d /opt/cache/lxc/eole/partial-amd64 ']'
|
135
|
++ dirname /opt/cache/lxc/eole/partial-amd64
|
136
|
+ mkdir -p /opt/cache/lxc/eole
|
137
|
+ which btrfs
|
138
|
+ mkdir -p /opt/cache/lxc/eole/partial-amd64
|
139
|
+ '[' 0 -ne 0 ']'
|
140
|
+ choose_container_proxy /opt/cache/lxc/eole/partial-amd64/ amd64
|
141
|
+ local rootfs=/opt/cache/lxc/eole/partial-amd64/
|
142
|
+ local arch=amd64
|
143
|
+ '[' -z apt ']'
|
144
|
+ case "$HTTP_PROXY" in
|
145
|
++ apt-config shell APT_PROXY Acquire::http::Proxy
|
146
|
+ RES='APT_PROXY='\''http://localhost:3142'\'''
|
147
|
+ eval 'APT_PROXY='\''http://localhost:3142'\'''
|
148
|
++ APT_PROXY=http://localhost:3142
|
149
|
+ '[' -z http://localhost:3142 ']'
|
150
|
+ export http_proxy=http://localhost:3142
|
151
|
+ http_proxy=http://localhost:3142
|
152
|
+ echo 'Downloading ubuntu xenial minimal ...'
|
153
|
++ which qemu-debootstrap
|
154
|
+ '[' -n '' ']'
|
155
|
+ debootstrap --verbose --components=main,universe --arch=amd64 --include=nano,vim,openssh-server,language-pack-en,language-pack-fr xenial /opt/cache/lxc/eole/partial-amd64 deb '[' arch=amd64 ']' file:/media/cdrom xenial main universe
|
156
|
++ cleanup
|
157
|
++ try_rmsubvolume /opt/cache/lxc/eole/partial-amd64
|
158
|
++ path=/opt/cache/lxc/eole/partial-amd64
|
159
|
++ '[' -d /opt/cache/lxc/eole/partial-amd64 ']'
|
160
|
++ which btrfs
|
161
|
++ rm -rf /opt/cache/lxc/eole/partial-amd64
|
162
|
++ try_rmsubvolume /opt/cache/lxc/eole/rootfs-amd64
|
163
|
++ path=/opt/cache/lxc/eole/rootfs-amd64
|
164
|
++ '[' -d /opt/cache/lxc/eole/rootfs-amd64 ']'
|
165
|
++ return 0
|
166
|
++ '[' 0 -eq 1 ']'
|
167
|
lxc-create: lxccontainer.c: create_run_template: 1295 container creation template for internet failed
|
168
|
lxc-create: tools/lxc_create.c: main: 318 Error creating container internet
|