|
|
virsh list
6 f$ w U; n. y: g) i' zerror: failed to connect to the hypervisor
% j) u( Q2 v3 Qerror: no valid connection/ s7 ~- \" q8 [' p4 V
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory2 ?+ {% G3 A: e, {/ u7 A3 h
, x9 m' k6 A0 @3 O5 M: M/ c8 r# J+ x9 T
解决办法:6 ~( Z- [4 t) Y E
# yum install -y avahi
1 J; f. |7 I# Q$ r( M- |Loaded plugins: fastestmirror
, F" O8 [; p" S; OLoading mirror speeds from cached hostfile& t6 i0 |7 U# d/ d j/ A
Resolving Dependencies
' U' h3 y! O* i5 \, z& j5 U6 b--> Running transaction check+ e/ S. N" c( ~" I: z- [
---> Package avahi.x86_64 0:0.6.31-15.el7_2.1 will be installed
$ W; I, y0 E0 x' x--> Processing Dependency: avahi-libs = 0.6.31-15.el7_2.1 for package: avahi-0.6.31-15.el7_2.1.x86_64$ U2 R9 [2 L: {! Y
--> Running transaction check
( o) w7 u8 V' `9 ~8 o---> Package avahi-libs.x86_64 0:0.6.31-15.el7 will be updated
# y. z S9 c; o- V--> Processing Dependency: avahi-libs = 0.6.31-15.el7 for package: avahi-autoipd-0.6.31-15.el7.x86_64
2 p$ M) d v' h) N$ K---> Package avahi-libs.x86_64 0:0.6.31-15.el7_2.1 will be an update
" n7 B/ R8 _% n5 I6 F8 u--> Running transaction check8 \; E7 ^3 Y1 D- d
---> Package avahi-autoipd.x86_64 0:0.6.31-15.el7 will be updated/ k; R3 |2 w8 Y. U6 S+ c
---> Package avahi-autoipd.x86_64 0:0.6.31-15.el7_2.1 will be an update
: S) Z- G- e) h/ h" y) m; R8 G--> Finished Dependency Resolution/ v. G$ h5 N% [) k
Dependencies Resolved5 ?( d( i8 Q( v8 t5 L4 @( P7 N& P
======================================================================================================================================================================================3 j# P3 x' ^% C6 Z
Package Arch Version Repository Size! C% w2 r V3 Q& e: H5 }
======================================================================================================================================================================================
7 l; k" V& J7 ^( D& jInstalling:
- F. X% w$ P1 x7 L/ z avahi x86_64 0.6.31-15.el7_2.1 updates 263 k
" A. p' H- p, z( K1 KUpdating for dependencies:+ i/ g- Z# g$ }
avahi-autoipd x86_64 0.6.31-15.el7_2.1 updates 39 k
3 z# ^$ y, X/ Q2 }# R3 w9 E avahi-libs x86_64 0.6.31-15.el7_2.1 updates 61 k. d7 q9 _+ W' g% p0 ^7 @
Transaction Summary5 h) l2 }+ O& Q, a. v7 V: d
======================================================================================================================================================================================" q, g. o: m6 A" _" Y7 \
Install 1 Package
; B% @4 H& r! e" y8 g0 C/ UUpgrade ( 2 Dependent packages)$ U ~! s1 c. y! B7 n( K8 m" [; _
Total download size: 363 k
- h+ }% c" |# U/ N j, V! ?6 \Downloading packages:7 i; l' K1 K$ c* Q( _ d7 @% h
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
& ^# Q$ ~; c; M0 E; l2 h$ Y(1/3): avahi-0.6.31-15.el7_2.1.x86_64.rpm | 263 kB 00:00:00
8 L6 C, B+ \" Y* n. s7 a: X H0 }(2/3): avahi-libs-0.6.31-15.el7_2.1.x86_64.rpm | 61 kB 00:00:00
7 P* b) o2 w% \- O+ q4 z% K8 N(3/3): avahi-autoipd-0.6.31-15.el7_2.1.x86_64.rpm | 39 kB 00:00:00 & U2 L) I4 u8 B2 x% z# m* c
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4 t: [9 k4 R" W% m, j4 DTotal 5.4 MB/s | 363 kB 00:00:00
& x/ y( Q( D- y$ E# d+ dRunning transaction check
2 m) W5 r# u `& X" ~Running transaction test. y; ^- F& Y3 e5 ?
Transaction test succeeded; O/ o8 q- x" I' V, L6 d
Running transaction
& A) m3 z3 q7 h+ a R9 [ Updating : avahi-libs-0.6.31-15.el7_2.1.x86_64 1/5 " z4 Y# x7 l6 S) { u
Installing : avahi-0.6.31-15.el7_2.1.x86_64 2/5 * P# ?' ^7 Q9 D, B3 U# ]
Updating : avahi-autoipd-0.6.31-15.el7_2.1.x86_64 3/5
0 |0 @, R; T+ N" Y9 E: U) f Cleanup : avahi-autoipd-0.6.31-15.el7.x86_64 4/5
' y6 I" o; U' a, H6 _0 J0 Q( H Cleanup : avahi-libs-0.6.31-15.el7.x86_64 5/5
9 b' |3 y5 M. P( ^& I Verifying : avahi-0.6.31-15.el7_2.1.x86_64 1/5 * k) r5 O( \; t# U! C3 q9 w& `
Verifying : avahi-autoipd-0.6.31-15.el7_2.1.x86_64 2/5
. i8 r7 q. z$ b/ h% _+ W, A$ W9 w# ^ Verifying : avahi-libs-0.6.31-15.el7_2.1.x86_64 3/5 3 a' O- p g6 ^& u, E
Verifying : avahi-autoipd-0.6.31-15.el7.x86_64 4/5 # d6 v0 s) V/ Q" X! ^1 U, G) Y
Verifying : avahi-libs-0.6.31-15.el7.x86_64 5/5 # C, |$ \# V* z5 y( Z3 e
Installed:
9 p5 W4 ]6 ?0 c% z- W1 J4 E& k avahi.x86_64 0:0.6.31-15.el7_2.1 3 J& b& ~5 Q6 i. P) ]# j, c8 W
Dependency Updated:
! @) J, \9 c# n. U- a8 g( k, {3 s avahi-autoipd.x86_64 0:0.6.31-15.el7_2.1 avahi-libs.x86_64 0:0.6.31-15.el7_2.1
$ \2 B, W6 j# b$ C, N" pComplete!0 y/ Z- ~9 }& x
" ^7 |9 F3 N! F5 x; N
# systemctl restart libvirtd.service
5 E" f* J) N' @6 W9 d, i1 }* C, }6 m4 T5 |' C0 p0 C: i3 s
|
|