質問編集履歴
5
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -142,19 +142,19 @@
|
|
142
142
|
|
143
143
|
lxc.network.link = lxcbr0
|
144
144
|
|
145
|
-
lxc.network.veth.pair = veth-
|
145
|
+
lxc.network.veth.pair = veth-debian-jessie
|
146
146
|
|
147
147
|
lxc.network.name = eth0
|
148
148
|
|
149
|
-
lxc.rootfs = /var/lib/lxc/
|
149
|
+
lxc.rootfs = /var/lib/lxc/debian-jessie/rootfs
|
150
150
|
|
151
151
|
|
152
152
|
|
153
153
|
# Container specific configuration
|
154
154
|
|
155
|
-
lxc.mount = /var/lib/lxc/
|
155
|
+
lxc.mount = /var/lib/lxc/debian-jessie/fstab
|
156
156
|
|
157
|
-
lxc.utsname =
|
157
|
+
lxc.utsname = debian-jessie
|
158
158
|
|
159
159
|
lxc.arch = x86_64
|
160
160
|
|
@@ -174,9 +174,9 @@
|
|
174
174
|
|
175
175
|
```
|
176
176
|
|
177
|
-
proc /var/lib/lxc/
|
177
|
+
proc /var/lib/lxc/debian-jessie/rootfs/proc proc nodev,noexec,nosuid 0 0
|
178
178
|
|
179
|
-
sysfs /var/lib/lxc/
|
179
|
+
sysfs /var/lib/lxc/debian-jessie/rootfs/sys sysfs defaults 0 0
|
180
180
|
|
181
181
|
```
|
182
182
|
|
4
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
気になる点が何点かありましてそれについて報告させていただきます。
|
4
4
|
|
5
|
-
「lxc-create -n debian
|
5
|
+
「lxc-create -n debian-jessie -t debian -- --release jessie」とすると最後に
|
6
6
|
|
7
7
|
|
8
8
|
|
@@ -68,7 +68,7 @@
|
|
68
68
|
|
69
69
|
```shell
|
70
70
|
|
71
|
-
[*******]# lxc-start -n debian
|
71
|
+
[*******]# lxc-start -n debian-jessie -d
|
72
72
|
|
73
73
|
lxc-start: lxc_start.c: main: 341 The container failed to start.
|
74
74
|
|
@@ -116,7 +116,7 @@
|
|
116
116
|
|
117
117
|
lxc-start 1471083082.433 ERROR lxc_start - start.c:lxc_spawn:841 - failed to create the network
|
118
118
|
|
119
|
-
lxc-start 1471083082.433 ERROR lxc_start - start.c:__lxc_start:1100 - failed to spawn 'debian
|
119
|
+
lxc-start 1471083082.433 ERROR lxc_start - start.c:__lxc_start:1100 - failed to spawn 'debian-jessie'
|
120
120
|
|
121
121
|
lxc-start 1471083087.439 ERROR lxc_start_ui - lxc_start.c:main:341 - The container failed to start.
|
122
122
|
|
@@ -125,3 +125,69 @@
|
|
125
125
|
lxc-start 1471083087.439 ERROR lxc_start_ui - lxc_start.c:main:345 - Additional information can be obtained by setting the --logfile and --logpriority options.
|
126
126
|
|
127
127
|
```
|
128
|
+
|
129
|
+
と出たのでlogを参考に```/var/lib/lxc/debian-jessie/config```に
|
130
|
+
|
131
|
+
```
|
132
|
+
|
133
|
+
# Template used to create this container: /usr/share/lxc/templates/lxc-debian
|
134
|
+
|
135
|
+
# Parameters passed to the template: --release jessie
|
136
|
+
|
137
|
+
# For additional config options, please look at lxc.container.conf(5)
|
138
|
+
|
139
|
+
lxc.network.type = veth
|
140
|
+
|
141
|
+
lxc.network.flags = up
|
142
|
+
|
143
|
+
lxc.network.link = lxcbr0
|
144
|
+
|
145
|
+
lxc.network.veth.pair = veth-uranus
|
146
|
+
|
147
|
+
lxc.network.name = eth0
|
148
|
+
|
149
|
+
lxc.rootfs = /var/lib/lxc/uranus/rootfs
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
# Container specific configuration
|
154
|
+
|
155
|
+
lxc.mount = /var/lib/lxc/uranus/fstab
|
156
|
+
|
157
|
+
lxc.utsname = uranus
|
158
|
+
|
159
|
+
lxc.arch = x86_64
|
160
|
+
|
161
|
+
lxc.autodev = 1
|
162
|
+
|
163
|
+
lxc.kmsg = 0
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
lxc.tty = 1
|
168
|
+
|
169
|
+
lxc.pts = 1024
|
170
|
+
|
171
|
+
```
|
172
|
+
|
173
|
+
とし,```/var/lib/lxc/debian-jessie/fstab```を
|
174
|
+
|
175
|
+
```
|
176
|
+
|
177
|
+
proc /var/lib/lxc/uranus/rootfs/proc proc nodev,noexec,nosuid 0 0
|
178
|
+
|
179
|
+
sysfs /var/lib/lxc/uranus/rootfs/sys sysfs defaults 0 0
|
180
|
+
|
181
|
+
```
|
182
|
+
|
183
|
+
と修正したところ
|
184
|
+
|
185
|
+
```
|
186
|
+
|
187
|
+
# lxc-start -n debian-jessie
|
188
|
+
|
189
|
+
Failed to mount tmpfs at /sys/fs/cgroup: No such file or directory
|
190
|
+
|
191
|
+
```
|
192
|
+
|
193
|
+
というエラーが出ました.ちなみに```lxc-start -n debian-jessie -d --logfile```では何も出力はされませんでした(少し解決した?)
|
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -99,3 +99,29 @@
|
|
99
99
|
------------------------
|
100
100
|
|
101
101
|
「LC_~」というのはlocale.hが無いからそういう指摘を受けたのかと思いましたが、/usr/include/にlocale.hはありました。
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
-------------------------
|
106
|
+
|
107
|
+
2016/08/13追記
|
108
|
+
|
109
|
+
--logfileの結果について追記いたします.
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
lxc-start 1471083082.407 ERROR lxc_conf - conf.c:instantiate_veth:3105 - failed to attach 'veth9KK8OO' to the bridge 'virbr0': No such device
|
114
|
+
|
115
|
+
lxc-start 1471083082.433 ERROR lxc_conf - conf.c:lxc_create_network:3388 - failed to create netdev
|
116
|
+
|
117
|
+
lxc-start 1471083082.433 ERROR lxc_start - start.c:lxc_spawn:841 - failed to create the network
|
118
|
+
|
119
|
+
lxc-start 1471083082.433 ERROR lxc_start - start.c:__lxc_start:1100 - failed to spawn 'debian/jessie'
|
120
|
+
|
121
|
+
lxc-start 1471083087.439 ERROR lxc_start_ui - lxc_start.c:main:341 - The container failed to start.
|
122
|
+
|
123
|
+
lxc-start 1471083087.439 ERROR lxc_start_ui - lxc_start.c:main:343 - To get more details, run the container in foreground mode.
|
124
|
+
|
125
|
+
lxc-start 1471083087.439 ERROR lxc_start_ui - lxc_start.c:main:345 - Additional information can be obtained by setting the --logfile and --logpriority options.
|
126
|
+
|
127
|
+
```
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -93,3 +93,9 @@
|
|
93
93
|
参考にしたページ:
|
94
94
|
|
95
95
|
[CentOS7でLXC](http://qiita.com/n-yamanaka/items/add670697308fdd15b24)
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
------------------------
|
100
|
+
|
101
|
+
「LC_~」というのはlocale.hが無いからそういう指摘を受けたのかと思いましたが、/usr/include/にlocale.hはありました。
|
1
文言修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
CentOS
|
1
|
+
CentOSにLXCを建てようとしたがlxc-startができない
|
test
CHANGED
File without changes
|