找回密码
 注册
查看: 3160|回复: 6

A dependency job for qemu-guest-agent.service failed. See 'journalctl -xe' for d

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-11-4 17:34:16 | 显示全部楼层 |阅读模式
root@localhost:~# service qemu-guest-agent status
+ U8 Z- I" |* E: q6 ]● qemu-guest-agent.service - QEMU Guest Agent
) W+ w' M1 b7 k4 d' i: t     Loaded: loaded (/lib/systemd/system/qemu-guest-agent.service; static)
% ~/ f* \  H7 t/ V- E+ u. w5 ^     Active: inactive (dead)3 w5 f4 s) v' E0 K2 s! a
Nov 04 09:14:44 localhost systemd[1]: qemu-guest-agent.service: Bound to unit dev-virtio\x2dports-org.qemu.guest_agent.0.device, but unit isn't active.: [2 @; N2 W9 W' o6 d1 j/ J% q8 p
Nov 04 09:14:44 localhost systemd[1]: Dependency failed for QEMU Guest Agent.; Z; @  Z  ]& i2 O, Z$ B
Nov 04 09:14:44 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
$ O; l0 Y3 y3 z) l2 m: xNov 04 09:18:46 localhost systemd[1]: qemu-guest-agent.service: Bound to unit dev-virtio\x2dports-org.qemu.guest_agent.0.device, but unit isn't active.$ f7 K7 m  B: T
Nov 04 09:18:46 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
) x5 A! ]' ]/ A$ a8 T, xNov 04 09:18:46 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
( o0 p3 V: W7 I5 M' p# dNov 04 09:28:24 localhost systemd[1]: qemu-guest-agent.service: Bound to unit dev-virtio\x2dports-org.qemu.guest_agent.0.device, but unit isn't active./ K) m# n2 b8 {) z# Q+ e! f/ [0 F
Nov 04 09:28:24 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
8 m, B. b9 S" n) i' \/ UNov 04 09:28:24 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
. p" ]* z) B. ~$ j+ H6 R& xroot@localhost:~# service qemu-guest-agent stop
' v: f7 x0 e# t% troot@localhost:~# service qemu-guest-agent start+ W! K! X1 X2 J' S
A dependency job for qemu-guest-agent.service failed. See 'journalctl -xe' for details.
" s0 J% Z' \( ~3 w# i& croot@localhost:~# journalctl -xe3 @3 Q6 S; J/ L9 f, ?
░░ Defined-By: systemd4 L7 V$ S& u" }
░░ Support: http://www.ubuntu.com/support, O( Q4 o2 R* I5 L
░░
/ O  }" f4 U7 l: M) m░░ The unit packagekit.service has successfully entered the 'dead' state.
( o0 f! Q! ]' i( H1 A. dNov 04 09:30:47 localhost systemd[1]: Unnecessary job for /dev/virtio-ports/org.qemu.guest_agent.0 was removed.
6 V3 v( d: r- [+ N' O, j░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed
# {* r& @4 B8 C" U" {- j8 S░░ Defined-By: systemd& `6 v% n0 c/ e7 H2 M& q1 ^* n
░░ Support: http://www.ubuntu.com/support
) n; J6 K  |. o$ f$ E░░ 1 K  C% u' f( q) d
░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure.7 _: O8 q3 w# T/ N
░░
% ]. ]" g7 s, }. `. c% D5 F░░ The job identifier is 1084 and the job result is collected.
& y; J- J% }  `& Y, t8 xNov 04 09:32:21 localhost systemd[1]: dev-virtio\x2dports-org.qemu.guest_agent.0.device: Job dev-virtio\x2dports-org.qemu.guest_agent.0.device/start timed out.5 ~' M/ W/ K' p8 K
Nov 04 09:32:21 localhost systemd[1]: Timed out waiting for device /dev/virtio-ports/org.qemu.guest_agent.0.7 N/ ~. \$ f& c( y* |
░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed9 l( Z6 d: ]* s
░░ Defined-By: systemd
5 _+ S/ o4 J, p2 x░░ Support: http://www.ubuntu.com/support% C. F( J" x2 S$ K0 C+ i2 r. A
░░ 0 R! \1 `0 D7 r; u! R
░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure.1 {1 E# ^/ u2 h2 [( X5 m4 |& e) a
░░ & l) C0 Y: U$ C1 v
░░ The job identifier is 1223 and the job result is timeout./ U; @" @: l  p3 Q1 k& Q- A
Nov 04 09:32:21 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
  y6 c& j- O- a% k! ]░░ Subject: A start job for unit qemu-guest-agent.service has failed. x) e8 R! c# n; v  N
░░ Defined-By: systemd$ s# m& D! [+ |1 V/ U+ L
░░ Support: http://www.ubuntu.com/support
  s5 N3 A8 D' O6 U9 v  \) C░░
% o7 E, j$ W3 H9 N░░ A start job for unit qemu-guest-agent.service has finished with a failure.
/ c( ~/ H7 Z+ h; S░░ 6 _" ^" M) a8 p6 Y
░░ The job identifier is 1155 and the job result is dependency.
/ D1 z4 ~+ m1 e6 j* f% f+ L+ A% rNov 04 09:32:21 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
, N" C: \1 n# r' b% ENov 04 09:32:21 localhost systemd[1]: dev-virtio\x2dports-org.qemu.guest_agent.0.device: Job dev-virtio\x2dports-org.qemu.guest_agent.0.device/start failed with r>7 I; W& R: R6 f, O; S
lines 2580-2610/2610 (END)
% d% ?1 D7 V1 y" D& {

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 16:33:24 | 显示全部楼层
Sep 23 16:26:56 bogon systemd[1]: Unnecessary job for dev-virtio\x2dports-org.qemu.guest_agent.0.device was removed.- U5 n4 }# G! z) V4 H
Sep 23 16:26:56 bogon systemd[1]: qemu-guest-agent.service: Bound to unit dev-virtio\x2dports-org.qemu.guest_agent.0.device, but unit isn't active.
9 S3 D& O/ t" F, ~$ sSep 23 16:26:56 bogon systemd[1]: Dependency failed for QEMU Guest Agent.
# ^! C# K( y4 O; q5 bSep 23 16:26:56 bogon systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.6 i/ K1 o, v) Z7 P" c! D
Sep 23 16:30:07 bogon systemd[1]: Starting system activity accounting tool...
2 P! }7 B# ~3 o5 y/ U5 Q% HSep 23 16:30:07 bogon systemd[1]: sysstat-collect.service: Succeeded.
8 a9 i/ r1 [+ Q. G1 L: @7 }2 WSep 23 16:30:07 bogon systemd[1]: Started system activity accounting tool.
' i8 y# t# \9 n, L& ^8 o7 u0 lSep 23 16:31:59 bogon systemd[1]: Unnecessary job for dev-virtio\x2dports-org.qemu.guest_agent.0.device was removed.
7 {8 l9 H; F9 f9 G3 N; a( |9 B; l" KSep 23 16:31:59 bogon systemd[1]: qemu-guest-agent.service: Bound to unit dev-virtio\x2dports-org.qemu.guest_agent.0.device, but unit isn't active.
6 O& w; m$ C' L5 E; }Sep 23 16:31:59 bogon systemd[1]: Dependency failed for QEMU Guest Agent.
6 i( S) D8 V; S' M5 {Sep 23 16:31:59 bogon systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 16:53:57 | 显示全部楼层
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.0 @4 S5 p( y. D* q" C8 ?
Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64021: critical: error opening channel: No such file or directory! H( h' B3 ~0 L0 F; ^
Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64051: critical: error opening channel
# _# _( u2 P' |; o( m. dSep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64068: critical: failed to create guest agent channel$ F& I. o! `% f1 K9 A
Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64073: critical: failed to initialize guest agent channel
, a* G$ h" O  }/ V& q3 ^2 @5 kSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE  _  V/ n4 M. E/ S3 c& N9 Y$ Y% o
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.5 X, ?' u3 f/ D! v: u: Q, A
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.9 _0 w' F, T; ?: Q- a3 O
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 1.; i1 T9 [5 Y) @3 @
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
4 h: p( ?  M& x9 o6 u/ c" ]Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
- a/ U5 J9 D  j5 c" MSep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75703: critical: error opening channel: No such file or directory
) h, J' r. s4 Z  s3 m" R1 @; \Sep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75744: critical: error opening channel
+ C% k9 M- H4 m- _- \+ [8 m: xSep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75749: critical: failed to create guest agent channel# U4 {8 A/ K; [+ Q3 E
Sep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75753: critical: failed to initialize guest agent channel
0 c' k& E0 a/ @- n" {5 j" Y% kSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE# C! n$ j% C7 B7 L1 a/ ~8 V2 }8 _
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
) S; i! Y5 h- `) ?( X4 q. GSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.* A& @& M  R- N! ~+ g) r) [
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 2." p6 @% U5 f7 W  T9 G) P
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.  t! M( z+ d% a  d: V/ A/ T9 U
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.1 P( H! w( G9 [2 }
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87186: critical: error opening channel: No such file or directory
, |  c( }) q% ]; uSep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87212: critical: error opening channel# ^9 F  D, G, z- z* v; T! P. e7 e
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87218: critical: failed to create guest agent channel6 @% A& O' ^! {8 e
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87222: critical: failed to initialize guest agent channel+ z6 o0 x9 a2 H! Y: }7 t  X
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
4 V+ z' Y, x  nSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
" t$ f7 V% Z" F$ Z- RSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart." i* W9 Q  ?$ D' {( I1 {' O  Y2 F
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 3.: v; W6 ?) j2 S0 n  |4 s$ ]
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.: J. N/ v3 P. _2 w
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
" v, l. r7 `5 j2 _Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98561: critical: error opening channel: No such file or directory
. N3 U5 S5 m7 F& p' X7 jSep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98584: critical: error opening channel* @' e! t) Y8 ^, h  d3 ~% x
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98590: critical: failed to create guest agent channel
" x% R' Y" F! q3 |Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98594: critical: failed to initialize guest agent channel
- L# ~% f! D: XSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
2 X/ l0 [: B! E7 z( WSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
" Z5 O# Y+ ]- U7 F1 r3 K, f8 ZSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
% C( S& u9 A" {5 V3 t  y( KSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 4.
8 V$ z3 f- N) k5 o2 r( r& ~Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.% Y" T  o# i" U! W: T8 x  D2 f
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.3 d8 `  Z2 i9 A* _( P) D' B
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109701: critical: error opening channel: No such file or directory. D) L/ T7 j3 F+ a6 ~4 i
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109724: critical: error opening channel# S1 U1 d. y& C% Y% s* R
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109729: critical: failed to create guest agent channel
% g5 T+ [& @4 uSep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109733: critical: failed to initialize guest agent channel
" N, C9 O- Y) p3 X) [. V  P* F0 KSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE5 W6 k/ ?6 p) x/ ?
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
5 z; O5 m* X: l# ^Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
  }& `& m) E1 k4 K. KSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 5.
9 v- m6 h+ X- R& {* @3 P2 Y: rSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
; [! G3 [6 C* ^- q$ TSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Start request repeated too quickly.
; h% H& a% i: l! gSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.- d* z  X% G" o& _( T5 A1 r
Sep 23 16:53:47 bogon systemd[1]: Failed to start QEMU Guest Agent.

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 16:54:10 | 显示全部楼层
暂时没有办法解决问题。

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 16:54:27 | 显示全部楼层
安装qemu-guest-agent:用于从面板在线更新密码/密钥
- d" ^- r3 [" C# d- e+ ~yum install -y qemu-guest-agent
. y$ U' c! M+ N$ G0 f; a4 u( ^配置qemu-ga,修改
, B, D; `) R" V+ [) m, U: Q. Psed -i 's/FSFREEZE_HOOK_PATHNAME=/#FSFREEZE_HOOK_PATHNAME=/g' /etc/sysconfig/qemu-ga# Y; b# W. c% E  x* |

: }% f/ w& {7 _' ?5 l. {cat >>/etc/sysconfig/qemu-ga <<EOF
5 z$ ^9 k8 M* l! Y  l7 Q9 }TRANSPORT_METHOD="virtio-serial"
2 E4 ~( N! [' h0 E8 xDEVPATH="/dev/virtio-ports/org.qemu.guest_agent.0"
8 _. C0 ~/ n) qLOGFILE="/var/log/qemu-ga/qemu-ga.log"                r: y# A% j1 c. a- K) C
PIDFILE="/var/run/qemu-ga.pid"/ u: u4 ^$ t# y0 {# z& z
BLACKLIST_RPC=""
% D7 r3 ]* M! Y  q8 |$ u9 qFSFREEZE_HOOK_ENABLE=00 J' W; O6 F6 O3 ^* S6 t
EOF
7 w' T& j* B0 ~5 M4 ]* T2 r+ d5 T' I& m7 S
systemctl enable qemu-guest-agent.service
. r3 H7 q) K' B' f- M# p. A' v

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 17:05:23 | 显示全部楼层
[root@compute03 images]# virsh edit Uniontechos1 - r# J) g9 j) t- b7 L

$ j% ~8 \/ V" N' N* V" A<channel type='unix'>7 g- P7 }! ~4 ^" F( {$ h6 p; N
   <target type='virtio' name='org.qemu.guest_agent.0'/>
# V  V8 a) [' L" `2 Y</channel>
4 J9 }: o3 N: L" k% W% ]4 ^, `9 l; o* r; B  I

% C4 s" U/ f) I9 [  TDomain Uniontechos1 XML configuration edited.: ]' e  |& s: ]- X5 a; n

4 Z9 ]4 j6 c4 ^7 V* X* e[root@compute03 images]# virsh destroy Uniontechos1
$ F) Y7 s9 I; a2 |& M. TDomain Uniontechos1 destroyed
* T  q: V5 ?2 _
$ v; L. a- {6 `% w, u' }5 v[root@compute03 images]# virsh start Uniontechos1 7 i9 ~- }1 L& j) {
Domain Uniontechos1 started
. M0 ?+ @& {' M' M, _2 c# k' B; V
1 p4 K# M; G7 M# S# h[root@compute03 images]# virsh edit Uniontechos1 ! D8 ]" f! E- D/ d1 A$ U! }/ L
Domain Uniontechos1 XML configuration not changed.
( m# E' W# G2 v2 |( M% ]& x' n- T- W* e) G3 o) j7 W
next to vm install  qemu-guest-agent* }/ t2 ~( }  C. \8 N* a  F/ J
+ @+ X3 c( b+ T/ f( @2 A; o
# yum install qemu-guest-agent
* W/ w! x5 w( U' p' {

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 17:15:50 | 显示全部楼层
[root@bogon Packages]# rpm -ivh qemu-guest-agent-4.2.0-48.0.2.module+uelc20+637+3837eb37.3.x86_64.rpm ( S3 F5 `1 W2 o4 l
Verifying...                          ################################# [100%]/ B1 H0 \+ V# H
Preparing...                          ################################# [100%]) X; R; W! G5 }8 x8 ?+ {
Updating / installing...) ^4 r0 G! Z8 h! o: }' r
   1:qemu-guest-agent-15:4.2.0-48.0.2.################################# [100%]
, |5 k7 X" j1 J. S$ u  m[root@bogon Packages]# cd Packages/cd
5 |$ g8 h, D2 o3 \-bash: cd: Packages/cd: No such file or directory; F9 @. A' U  F% s
[root@bogon Packages]# cd
) O* {2 B# U/ \/ f- ^/ G7 N[root@bogon ~]# systemctl start qemu-guest-agent.service $ d- J. y: w! B% @
[root@bogon ~]# systemctl status qemu-guest-agent.service % u5 x  D  }/ ?0 `2 ~
● qemu-guest-agent.service - QEMU Guest Agent
, N, y: }5 r; `9 Y& ?( a, e- F   Loaded: loaded (/usr/lib/systemd/system/qemu-guest-agent.service; enabled; vendor preset: enabled)  w; X. o5 w- k& [& Q8 V: [
   Active: active (running) since Fri 2022-09-23 17:14:22 CST; 6s ago
1 e6 n0 s1 V# g: Q5 Y! b Main PID: 1940 (qemu-ga): J. }, I8 A, G% ~
    Tasks: 1 (limit: 49744)
0 G6 p$ y1 o' h9 s, @  e   Memory: 836.0K' m& x1 G! g" O# q. i! \% j
   CGroup: /system.slice/qemu-guest-agent.service& o& j" |* }! m( t! m
           └─1940 /usr/bin/qemu-ga --method=virtio-serial --path=/dev/virtio-ports/org.qemu.guest_agent>
/ J5 u' {2 {6 M% ]1 h( F+ f4 d1 y8 p+ t9 q
Sep 23 17:14:22 bogon systemd[1]: Started QEMU Guest Agent.
* N# d$ |' g$ U7 Z! Y3 N5 Y/ \- r" G[root@bogon ~]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:49 , Processed in 0.016234 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表