|
|
virsh list$ Y5 G" i4 S! U+ E
error: failed to connect to the hypervisor4 m5 F" K2 X' \
error: no valid connection8 T, j( P4 S1 _! N- l
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
2 [7 \6 j) r. d+ m" L' {
7 t" t, j( {( d: T& ~8 V/ R8 P3 d b* Q6 f- a- d, I
解决办法:
l( }3 P+ u' @, e# \9 }, P# yum install -y avahi
8 b* p+ E6 N2 @. c" E1 KLoaded plugins: fastestmirror2 W" v4 X+ W) K
Loading mirror speeds from cached hostfile
+ @6 ^" N, C1 }& E5 b6 o, o. \: C7 w2 }Resolving Dependencies- @9 I- B5 b0 Z7 c0 H
--> Running transaction check% h2 c' l. i1 I, h8 ]
---> Package avahi.x86_64 0:0.6.31-15.el7_2.1 will be installed
5 ~! H; f+ Q) _# ]9 a0 x--> Processing Dependency: avahi-libs = 0.6.31-15.el7_2.1 for package: avahi-0.6.31-15.el7_2.1.x86_64' H# P6 f5 a i. e0 x
--> Running transaction check# [0 w) v8 I- t- c& f
---> Package avahi-libs.x86_64 0:0.6.31-15.el7 will be updated$ h) [( C+ Z7 B! t4 j
--> Processing Dependency: avahi-libs = 0.6.31-15.el7 for package: avahi-autoipd-0.6.31-15.el7.x86_64
W/ f" O( n. k---> Package avahi-libs.x86_64 0:0.6.31-15.el7_2.1 will be an update
, I6 i( G. t/ K' F8 [$ d--> Running transaction check8 y( {. W/ O( h' `5 O+ a l9 J/ C
---> Package avahi-autoipd.x86_64 0:0.6.31-15.el7 will be updated- \5 c) @/ ]& @
---> Package avahi-autoipd.x86_64 0:0.6.31-15.el7_2.1 will be an update6 G0 s, {7 }+ p U, K" d
--> Finished Dependency Resolution' |' o+ Y/ x, K: a
Dependencies Resolved
+ C# f1 B5 p" y6 ]9 S======================================================================================================================================================================================: x' D, G0 `0 b g* K {' n! O
Package Arch Version Repository Size
7 x$ J1 G+ E% a- A4 f; u======================================================================================================================================================================================
7 ?% g1 T1 i2 U+ [8 }Installing:" M7 T) L6 v+ q6 u- H% B) o
avahi x86_64 0.6.31-15.el7_2.1 updates 263 k
8 i1 u3 |, r$ c8 mUpdating for dependencies:$ y3 t6 ]( l5 F0 W
avahi-autoipd x86_64 0.6.31-15.el7_2.1 updates 39 k
5 Q2 I' J. t% x2 H& S0 V, ~1 u avahi-libs x86_64 0.6.31-15.el7_2.1 updates 61 k
3 J- D8 b X8 j; h9 oTransaction Summary
: K3 W4 l" t9 k" Y9 O0 a$ A. ^======================================================================================================================================================================================5 J @0 p) n' E, i
Install 1 Package
& q5 C: U* K7 n- `: N3 N _Upgrade ( 2 Dependent packages)
9 ^ L! y$ r3 Q! H- ]$ oTotal download size: 363 k
- I/ D! l0 C2 m" b. O& v0 T. N+ NDownloading packages:
0 i. c5 F: X. T6 V! t- {. S) rDelta RPMs disabled because /usr/bin/applydeltarpm not installed.) }% W/ D- D- ]( n- |- V/ F# t
(1/3): avahi-0.6.31-15.el7_2.1.x86_64.rpm | 263 kB 00:00:00
5 p! ]* F- V! t9 A7 k(2/3): avahi-libs-0.6.31-15.el7_2.1.x86_64.rpm | 61 kB 00:00:00 % k( _' U1 E& f! A4 ~7 Z
(3/3): avahi-autoipd-0.6.31-15.el7_2.1.x86_64.rpm | 39 kB 00:00:00 : Z0 E9 A) |) P5 j4 w+ g% ?1 I
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+ S6 k8 M( M* W4 HTotal 5.4 MB/s | 363 kB 00:00:00 # e1 i5 b9 w: g( s
Running transaction check/ e. A* O& l. G& c) a2 m
Running transaction test
. h: `' Q) L9 Q) R/ z- P7 STransaction test succeeded% x0 R7 v: p$ N% S; [9 c
Running transaction- U0 R. n. X7 x3 m
Updating : avahi-libs-0.6.31-15.el7_2.1.x86_64 1/5 . A$ q& \! X# r
Installing : avahi-0.6.31-15.el7_2.1.x86_64 2/5 " x0 |5 O/ T) K7 M
Updating : avahi-autoipd-0.6.31-15.el7_2.1.x86_64 3/5
. ]) k6 o( e* H) C. T0 c Cleanup : avahi-autoipd-0.6.31-15.el7.x86_64 4/5
9 e1 |, R+ Z& T P) M1 T Cleanup : avahi-libs-0.6.31-15.el7.x86_64 5/5 5 Z% S$ P5 O/ j# x d
Verifying : avahi-0.6.31-15.el7_2.1.x86_64 1/5 9 _; p' n: i V
Verifying : avahi-autoipd-0.6.31-15.el7_2.1.x86_64 2/5
: V8 B& N/ V5 O" G7 C# G Verifying : avahi-libs-0.6.31-15.el7_2.1.x86_64 3/5
( o5 S0 n5 d0 q/ J! |- @, ?" C- r; [ Verifying : avahi-autoipd-0.6.31-15.el7.x86_64 4/5
/ B1 o4 L0 u8 b" ^, h: t Verifying : avahi-libs-0.6.31-15.el7.x86_64 5/5
\7 x. y/ A. r7 f5 c1 F3 CInstalled:
: X' j; @# r3 y9 `2 y; Z2 e1 A avahi.x86_64 0:0.6.31-15.el7_2.1
T g7 k6 N3 j* G2 e% QDependency Updated:8 G1 \; G! ~9 |9 `+ g4 P
avahi-autoipd.x86_64 0:0.6.31-15.el7_2.1 avahi-libs.x86_64 0:0.6.31-15.el7_2.1
0 y# }0 o5 s. k cComplete!
3 ~+ D- M. D0 v3 y+ l# T; f3 X8 ~) e3 A8 L& n
# systemctl restart libvirtd.service/ o% h0 d* u; s, L7 T
8 @: K) P% w6 O! ? |
|