質問編集履歴
1
質問を変えました
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
libvirt
|
1
|
+
libvirtエラーが治りません。
|
body
CHANGED
@@ -1,15 +1,53 @@
|
|
1
|
-
環境
|
1
|
+
環境:ubuntu15.10
|
2
|
+
lxcをlibvirtと結び付けたい。
|
2
3
|
|
3
|
-
|
4
|
+
インストールしたパッケージ
|
5
|
+
```
|
6
|
+
#apt-get -y install libvert-bin lxc
|
4
|
-
libvirt
|
7
|
+
#systemctl status libvirt-bin
|
8
|
+
```
|
9
|
+
以下ログ(/var/log/libvirt/には何もログはありませんでした。)
|
5
10
|
|
11
|
+
```
|
12
|
+
systemctl status libvirt-bin
|
13
|
+
● libvirt-bin.service - Virtualization daemon
|
6
|
-
|
14
|
+
Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor preset: enabled)
|
15
|
+
Active: failed (Result: start-limit) since Mon 2016-02-01 16:50:14 JST; 2h 45min ago
|
7
|
-
|
16
|
+
Docs: man:libvirtd(8)
|
17
|
+
http://libvirt.org
|
18
|
+
Process: 2134 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=1/FAILURE)
|
19
|
+
Main PID: 2134 (code=exited, status=1/FAILURE)
|
8
20
|
|
21
|
+
Feb 01 16:50:14 host systemd[1]: Failed to start Virtualization daemon.
|
9
|
-
|
22
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Unit entered failed state.
|
23
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Failed with result 'exit-code'.
|
24
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Service hold-off time over, scheduling restart.
|
25
|
+
Feb 01 16:50:14 host systemd[1]: Stopped Virtualization daemon.
|
26
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Start request repeated too quickly.
|
27
|
+
Feb 01 16:50:14 host systemd[1]: Failed to start Virtualization daemon.
|
28
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Unit entered failed state.
|
29
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Failed with result 'start-limit'.
|
10
|
-
|
30
|
+
```
|
11
|
-
・lxc-startやればlxcプロセスに直接問い合わせて後から、libvirtにコンテナが起動しましたという情報が行く
|
12
|
-
のどちらでしょうか?
|
13
31
|
|
32
|
+
デーモンが失敗していると書いてありますが、ある程度はlibvirtについて調べましたが正直何が何だかわかっていません。
|
33
|
+
|
34
|
+
|
35
|
+
---
|
36
|
+
|
37
|
+
lxcと結び付けるコマンド``` virsh -c lxc:/// ```とやりましたが、
|
38
|
+
```
|
39
|
+
#virsh -c lxc:///
|
40
|
+
setlocale: No such file or directory
|
41
|
+
error: failed to connect to the hypervisor
|
42
|
+
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
|
43
|
+
```
|
14
|
-
|
44
|
+
見つからないといわれたので作りました。
|
45
|
+
```
|
46
|
+
#mkdir /var/run/libvirt
|
47
|
+
#touch /var/run/libvirt/libvirt-sock
|
15
|
-
|
48
|
+
#virsh -c lxc:///
|
49
|
+
setlocale: No such file or directory
|
50
|
+
error: failed to connect to the hypervisor
|
51
|
+
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
|
52
|
+
|
53
|
+
```
|