質問編集履歴
1
質問を変えました
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
libvirt
|
1
|
+
libvirtエラーが治りません。
|
test
CHANGED
@@ -1,29 +1,105 @@
|
|
1
|
-
環境
|
1
|
+
環境:ubuntu15.10
|
2
|
+
|
3
|
+
lxcをlibvirtと結び付けたい。
|
2
4
|
|
3
5
|
|
4
6
|
|
5
|
-
|
7
|
+
インストールしたパッケージ
|
6
8
|
|
9
|
+
```
|
10
|
+
|
11
|
+
#apt-get -y install libvert-bin lxc
|
12
|
+
|
7
|
-
libvirt
|
13
|
+
#systemctl status libvirt-bin
|
14
|
+
|
15
|
+
```
|
16
|
+
|
17
|
+
以下ログ(/var/log/libvirt/には何もログはありませんでした。)
|
8
18
|
|
9
19
|
|
10
20
|
|
11
|
-
|
21
|
+
```
|
12
22
|
|
23
|
+
systemctl status libvirt-bin
|
24
|
+
|
25
|
+
● libvirt-bin.service - Virtualization daemon
|
26
|
+
|
27
|
+
Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor preset: enabled)
|
28
|
+
|
29
|
+
Active: failed (Result: start-limit) since Mon 2016-02-01 16:50:14 JST; 2h 45min ago
|
30
|
+
|
13
|
-
|
31
|
+
Docs: man:libvirtd(8)
|
32
|
+
|
33
|
+
http://libvirt.org
|
34
|
+
|
35
|
+
Process: 2134 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=1/FAILURE)
|
36
|
+
|
37
|
+
Main PID: 2134 (code=exited, status=1/FAILURE)
|
14
38
|
|
15
39
|
|
16
40
|
|
17
|
-
|
41
|
+
Feb 01 16:50:14 host systemd[1]: Failed to start Virtualization daemon.
|
18
42
|
|
19
|
-
|
43
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Unit entered failed state.
|
20
44
|
|
21
|
-
|
45
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Failed with result 'exit-code'.
|
22
46
|
|
47
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Service hold-off time over, scheduling restart.
|
48
|
+
|
49
|
+
Feb 01 16:50:14 host systemd[1]: Stopped Virtualization daemon.
|
50
|
+
|
51
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Start request repeated too quickly.
|
52
|
+
|
53
|
+
Feb 01 16:50:14 host systemd[1]: Failed to start Virtualization daemon.
|
54
|
+
|
55
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Unit entered failed state.
|
56
|
+
|
57
|
+
Feb 01 16:50:14 host systemd[1]: libvirt-bin.service: Failed with result 'start-limit'.
|
58
|
+
|
23
|
-
|
59
|
+
```
|
24
60
|
|
25
61
|
|
26
62
|
|
27
|
-
|
63
|
+
デーモンが失敗していると書いてありますが、ある程度はlibvirtについて調べましたが正直何が何だかわかっていません。
|
28
64
|
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
---
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
lxcと結び付けるコマンド``` virsh -c lxc:/// ```とやりましたが、
|
74
|
+
|
75
|
+
```
|
76
|
+
|
77
|
+
#virsh -c lxc:///
|
78
|
+
|
79
|
+
setlocale: No such file or directory
|
80
|
+
|
81
|
+
error: failed to connect to the hypervisor
|
82
|
+
|
83
|
+
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
|
84
|
+
|
85
|
+
```
|
86
|
+
|
29
|
-
|
87
|
+
見つからないといわれたので作りました。
|
88
|
+
|
89
|
+
```
|
90
|
+
|
91
|
+
#mkdir /var/run/libvirt
|
92
|
+
|
93
|
+
#touch /var/run/libvirt/libvirt-sock
|
94
|
+
|
95
|
+
#virsh -c lxc:///
|
96
|
+
|
97
|
+
setlocale: No such file or directory
|
98
|
+
|
99
|
+
error: failed to connect to the hypervisor
|
100
|
+
|
101
|
+
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
```
|