teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

5

修正

2016/08/13 10:48

投稿

marimo.
marimo.

スコア48

title CHANGED
File without changes
body CHANGED
@@ -70,13 +70,13 @@
70
70
  lxc.network.type = veth
71
71
  lxc.network.flags = up
72
72
  lxc.network.link = lxcbr0
73
- lxc.network.veth.pair = veth-uranus
73
+ lxc.network.veth.pair = veth-debian-jessie
74
74
  lxc.network.name = eth0
75
- lxc.rootfs = /var/lib/lxc/uranus/rootfs
75
+ lxc.rootfs = /var/lib/lxc/debian-jessie/rootfs
76
76
 
77
77
  # Container specific configuration
78
- lxc.mount = /var/lib/lxc/uranus/fstab
78
+ lxc.mount = /var/lib/lxc/debian-jessie/fstab
79
- lxc.utsname = uranus
79
+ lxc.utsname = debian-jessie
80
80
  lxc.arch = x86_64
81
81
  lxc.autodev = 1
82
82
  lxc.kmsg = 0
@@ -86,8 +86,8 @@
86
86
  ```
87
87
  とし,```/var/lib/lxc/debian-jessie/fstab```を
88
88
  ```
89
- proc /var/lib/lxc/uranus/rootfs/proc proc nodev,noexec,nosuid 0 0
89
+ proc /var/lib/lxc/debian-jessie/rootfs/proc proc nodev,noexec,nosuid 0 0
90
- sysfs /var/lib/lxc/uranus/rootfs/sys sysfs defaults 0 0
90
+ sysfs /var/lib/lxc/debian-jessie/rootfs/sys sysfs defaults 0 0
91
91
  ```
92
92
  と修正したところ
93
93
  ```

4

追記

2016/08/13 10:48

投稿

marimo.
marimo.

スコア48

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,6 @@
1
1
  CentOS 6.8の環境にDebian jessieのLXCがうまくいかなく困っています。
2
2
  気になる点が何点かありましてそれについて報告させていただきます。
3
- 「lxc-create -n debian/jessie -t debian -- --release jessie」とすると最後に
3
+ 「lxc-create -n debian-jessie -t debian -- --release jessie」とすると最後に
4
4
 
5
5
  ```shell
6
6
 
@@ -33,7 +33,7 @@
33
33
 
34
34
  また、件名にもあります通り、lxc-startができません。
35
35
  ```shell
36
- [*******]# lxc-start -n debian/jessie -d
36
+ [*******]# lxc-start -n debian-jessie -d
37
37
  lxc-start: lxc_start.c: main: 341 The container failed to start.
38
38
  lxc-start: lxc_start.c: main: 343 To get more details, run the container in foreground mode.
39
39
  lxc-start: lxc_start.c: main: 345 Additional information can be obtained by setting the --logfile and --logpriority options.
@@ -57,8 +57,41 @@
57
57
  lxc-start 1471083082.407 ERROR lxc_conf - conf.c:instantiate_veth:3105 - failed to attach 'veth9KK8OO' to the bridge 'virbr0': No such device
58
58
  lxc-start 1471083082.433 ERROR lxc_conf - conf.c:lxc_create_network:3388 - failed to create netdev
59
59
  lxc-start 1471083082.433 ERROR lxc_start - start.c:lxc_spawn:841 - failed to create the network
60
- lxc-start 1471083082.433 ERROR lxc_start - start.c:__lxc_start:1100 - failed to spawn 'debian/jessie'
60
+ lxc-start 1471083082.433 ERROR lxc_start - start.c:__lxc_start:1100 - failed to spawn 'debian-jessie'
61
61
  lxc-start 1471083087.439 ERROR lxc_start_ui - lxc_start.c:main:341 - The container failed to start.
62
62
  lxc-start 1471083087.439 ERROR lxc_start_ui - lxc_start.c:main:343 - To get more details, run the container in foreground mode.
63
63
  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.
64
- ```
64
+ ```
65
+ と出たのでlogを参考に```/var/lib/lxc/debian-jessie/config```に
66
+ ```
67
+ # Template used to create this container: /usr/share/lxc/templates/lxc-debian
68
+ # Parameters passed to the template: --release jessie
69
+ # For additional config options, please look at lxc.container.conf(5)
70
+ lxc.network.type = veth
71
+ lxc.network.flags = up
72
+ lxc.network.link = lxcbr0
73
+ lxc.network.veth.pair = veth-uranus
74
+ lxc.network.name = eth0
75
+ lxc.rootfs = /var/lib/lxc/uranus/rootfs
76
+
77
+ # Container specific configuration
78
+ lxc.mount = /var/lib/lxc/uranus/fstab
79
+ lxc.utsname = uranus
80
+ lxc.arch = x86_64
81
+ lxc.autodev = 1
82
+ lxc.kmsg = 0
83
+
84
+ lxc.tty = 1
85
+ lxc.pts = 1024
86
+ ```
87
+ とし,```/var/lib/lxc/debian-jessie/fstab```を
88
+ ```
89
+ proc /var/lib/lxc/uranus/rootfs/proc proc nodev,noexec,nosuid 0 0
90
+ sysfs /var/lib/lxc/uranus/rootfs/sys sysfs defaults 0 0
91
+ ```
92
+ と修正したところ
93
+ ```
94
+ # lxc-start -n debian-jessie
95
+ Failed to mount tmpfs at /sys/fs/cgroup: No such file or directory
96
+ ```
97
+ というエラーが出ました.ちなみに```lxc-start -n debian-jessie -d --logfile```では何も出力はされませんでした(少し解決した?)

3

追記

2016/08/13 10:46

投稿

marimo.
marimo.

スコア48

title CHANGED
File without changes
body CHANGED
@@ -48,4 +48,17 @@
48
48
  [CentOS7でLXC](http://qiita.com/n-yamanaka/items/add670697308fdd15b24)
49
49
 
50
50
  ------------------------
51
- 「LC_~」というのはlocale.hが無いからそういう指摘を受けたのかと思いましたが、/usr/include/にlocale.hはありました。
51
+ 「LC_~」というのはlocale.hが無いからそういう指摘を受けたのかと思いましたが、/usr/include/にlocale.hはありました。
52
+
53
+ -------------------------
54
+ 2016/08/13追記
55
+ --logfileの結果について追記いたします.
56
+ ```
57
+ lxc-start 1471083082.407 ERROR lxc_conf - conf.c:instantiate_veth:3105 - failed to attach 'veth9KK8OO' to the bridge 'virbr0': No such device
58
+ lxc-start 1471083082.433 ERROR lxc_conf - conf.c:lxc_create_network:3388 - failed to create netdev
59
+ lxc-start 1471083082.433 ERROR lxc_start - start.c:lxc_spawn:841 - failed to create the network
60
+ lxc-start 1471083082.433 ERROR lxc_start - start.c:__lxc_start:1100 - failed to spawn 'debian/jessie'
61
+ lxc-start 1471083087.439 ERROR lxc_start_ui - lxc_start.c:main:341 - The container failed to start.
62
+ lxc-start 1471083087.439 ERROR lxc_start_ui - lxc_start.c:main:343 - To get more details, run the container in foreground mode.
63
+ 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.
64
+ ```

2

追記

2016/08/13 10:14

投稿

marimo.
marimo.

スコア48

title CHANGED
File without changes
body CHANGED
@@ -45,4 +45,7 @@
45
45
  CentOS 6.8
46
46
 
47
47
  参考にしたページ:
48
- [CentOS7でLXC](http://qiita.com/n-yamanaka/items/add670697308fdd15b24)
48
+ [CentOS7でLXC](http://qiita.com/n-yamanaka/items/add670697308fdd15b24)
49
+
50
+ ------------------------
51
+ 「LC_~」というのはlocale.hが無いからそういう指摘を受けたのかと思いましたが、/usr/include/にlocale.hはありました。

1

文言修正

2016/08/10 18:03

投稿

marimo.
marimo.

スコア48

title CHANGED
@@ -1,1 +1,1 @@
1
- CentOSLXCを建てようとしたがlxc-startができない
1
+ CentOSLXCを建てようとしたがlxc-startができない
body CHANGED
File without changes