找回密码
 注册
查看: 3162|回复: 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- f7 M7 U& p& J; I
● qemu-guest-agent.service - QEMU Guest Agent
9 d. {6 t% _, L# B. E) L# i     Loaded: loaded (/lib/systemd/system/qemu-guest-agent.service; static)
4 d' \5 B& p$ B# X* w/ `! e: N     Active: inactive (dead)% [. }+ c! ]; 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.
9 H. F) ~. T" \, ?6 D* F/ Q- ENov 04 09:14:44 localhost systemd[1]: Dependency failed for QEMU Guest Agent.+ w- B2 V% `9 R/ A
Nov 04 09:14:44 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'./ R+ v, Z9 E+ h- A6 }. t& W
Nov 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.
/ v( W# d5 L0 @8 z; E- {Nov 04 09:18:46 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
4 n  P- r1 W% @' b$ s0 G  @& [% ]Nov 04 09:18:46 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
* d* C+ u9 W: g& E9 ?3 p2 ^0 W  hNov 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.
/ c0 @- f& R. t: MNov 04 09:28:24 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
, s3 x1 f5 Z+ I) O: ~Nov 04 09:28:24 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
; w  V$ ?2 J4 q, A5 U9 Uroot@localhost:~# service qemu-guest-agent stop
6 f* ~" N8 {- H, M, Z6 K" Wroot@localhost:~# service qemu-guest-agent start3 X# s7 j/ @  _: A- f
A dependency job for qemu-guest-agent.service failed. See 'journalctl -xe' for details.
6 s5 D  v0 O) F  l* Jroot@localhost:~# journalctl -xe
5 W  C# o  X. T1 z  A5 h  v░░ Defined-By: systemd
* R6 D* J( S. H7 S" l, t1 L* Q! e░░ Support: http://www.ubuntu.com/support
% z+ G1 H  @( Y" i+ e░░ : E$ z0 x8 f, _5 R) I
░░ The unit packagekit.service has successfully entered the 'dead' state.# a4 E8 E* c1 g+ W3 U' Z$ ~6 K
Nov 04 09:30:47 localhost systemd[1]: Unnecessary job for /dev/virtio-ports/org.qemu.guest_agent.0 was removed." }( ]0 ~& W, n
░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed
4 S( Y3 t. _2 s░░ Defined-By: systemd
( d  p' ]1 M0 b8 ?░░ Support: http://www.ubuntu.com/support
' a- s6 W$ ]2 a5 y# ]. K, _/ }% I░░ 9 O4 k: P) l4 z# J% \1 Z
░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure.4 r6 Y- H/ W1 O  ]/ H8 Z
░░   m8 _6 r( O& {! C' U# E
░░ The job identifier is 1084 and the job result is collected.
: F& q# `0 F% w& z7 HNov 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.
( {4 N8 \" ^" o) Z: iNov 04 09:32:21 localhost systemd[1]: Timed out waiting for device /dev/virtio-ports/org.qemu.guest_agent.0.
/ `% v& e( B( w! X7 Q░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed
+ n* @) `/ B4 ^) s& p6 x8 c! \4 T* i$ K░░ Defined-By: systemd6 [+ J7 J3 E6 O5 O: s
░░ Support: http://www.ubuntu.com/support
' x$ j; W8 h  d! d2 M8 o: }5 E░░
* [( E; @1 P$ Y░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure.6 \2 b; ^2 q+ M. x% v# g
░░ 0 ?/ L: i! ~: [  E2 G
░░ The job identifier is 1223 and the job result is timeout.& p7 s1 Z; I9 s4 m% [7 G. l
Nov 04 09:32:21 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
6 T5 {. k& i0 {! }4 }! n( c░░ Subject: A start job for unit qemu-guest-agent.service has failed) w$ R6 @* l6 E% [1 O
░░ Defined-By: systemd
0 d9 d" o) r" h: B" G. O3 {- y░░ Support: http://www.ubuntu.com/support* \! k3 R8 m1 U6 x7 d1 i
░░
( u$ D: W3 O5 z2 b░░ A start job for unit qemu-guest-agent.service has finished with a failure.
( g7 w* N2 o* b" k8 f, P. i* a░░
6 |+ a  o2 r: B, N& q2 J░░ The job identifier is 1155 and the job result is dependency.
) n* L+ E7 `7 }! m  LNov 04 09:32:21 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
+ u/ t; C" T% s8 T% CNov 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>
& h8 Q7 b- |0 c; G: Llines 2580-2610/2610 (END)
- g0 U6 d. t# C8 p5 J6 n# A6 D) G

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.
) m, Z( B0 e! ~# p0 G8 a, B. jSep 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.
7 n( F" d4 l, n& c( MSep 23 16:26:56 bogon systemd[1]: Dependency failed for QEMU Guest Agent.
$ L* z6 k2 ^7 tSep 23 16:26:56 bogon systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.- @. h0 F# L% J3 j/ |3 I( E
Sep 23 16:30:07 bogon systemd[1]: Starting system activity accounting tool...1 M9 ^$ ]; j# C- |0 Q
Sep 23 16:30:07 bogon systemd[1]: sysstat-collect.service: Succeeded.
) A0 T9 n. i3 y7 F& i8 MSep 23 16:30:07 bogon systemd[1]: Started system activity accounting tool.
2 L5 g+ T/ L# Y' U5 tSep 23 16:31:59 bogon systemd[1]: Unnecessary job for dev-virtio\x2dports-org.qemu.guest_agent.0.device was removed.
$ k! X5 {% v, I, _Sep 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.
" [7 _' V, q% ]* X9 A  w0 kSep 23 16:31:59 bogon systemd[1]: Dependency failed for QEMU Guest Agent.
" x' r2 h& s/ mSep 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.
  G+ s2 J! P, Q3 Q4 H8 u  WSep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64021: critical: error opening channel: No such file or directory
) Q! k0 G$ U5 q$ a" ]; k0 Q# h, nSep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64051: critical: error opening channel
1 W: M. d% U) ~0 C6 MSep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64068: critical: failed to create guest agent channel! j0 b# s3 b6 _( }; `( X6 Y6 _
Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64073: critical: failed to initialize guest agent channel
$ C1 n8 X; k' f1 G: o* RSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
$ q& @) y! e& n" GSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.1 S, a9 i9 U6 B
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.. }! f0 Y) q; D  U" i) X  t
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 1." S0 @# K" B. f; t$ ~
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
% T- Q  Q/ w* t  q: @2 aSep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
; ]" \/ V9 Z: ISep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75703: critical: error opening channel: No such file or directory
/ `7 l! B( R3 BSep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75744: critical: error opening channel
8 Q2 Y: Z2 _4 ~9 C& ISep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75749: critical: failed to create guest agent channel4 q* \/ Q5 U- f# `, ?! ]* G
Sep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75753: critical: failed to initialize guest agent channel, c! H( \! a' b  r' |
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE; N  S% j$ S% y+ z. l
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.- k  o, u  P3 [  J. l! }
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
* F$ Q7 j* u) z3 PSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 2.
6 r1 s- E% m- n0 p3 a. VSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
" }0 ~1 q  m: r5 g+ USep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.8 R( Z3 v  h  f; {( m+ g: I
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87186: critical: error opening channel: No such file or directory! Q3 ^: G( b; t" Z6 R; n
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87212: critical: error opening channel5 ?; P, u! b0 Q# q
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87218: critical: failed to create guest agent channel
% T. ^* T4 n! K; u: _% oSep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87222: critical: failed to initialize guest agent channel
9 Z" b% ^* {4 l! z6 D3 nSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
! Y$ _  `* d: ^" {Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
+ x. H6 w* v4 g' X* V( H/ @Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
9 J/ U8 q3 m# A4 D4 SSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 3.8 f( ^* s. f, `& O5 @# |( Y
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.$ y! a- U' V/ S, N3 U( F
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent." y$ J2 ?+ j3 F! a
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98561: critical: error opening channel: No such file or directory7 z" |5 C8 J# F% f& L: P# T. e9 z- N$ L
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98584: critical: error opening channel  ]! ^* u3 j9 `2 T3 C, I
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98590: critical: failed to create guest agent channel
1 O/ x+ l4 R% W2 e0 o6 x; OSep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98594: critical: failed to initialize guest agent channel
% q9 {8 \" V! ^4 w; ~Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
; i9 ?4 h! {# W4 Y4 v# b9 RSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
! \1 F9 o2 H. @/ Q. w# u, ?Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
8 D& Y# ]+ e+ S+ S0 C4 cSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 4.
* t) d, B7 k/ U0 d4 sSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
" M; |% r. s5 N, F2 S% g( g' s) lSep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent., l# C$ E0 T7 L+ K! M
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109701: critical: error opening channel: No such file or directory+ o# A( `! {  }  B& \) ^0 r+ k
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109724: critical: error opening channel  ?3 W9 \: x) I" V# j
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109729: critical: failed to create guest agent channel
/ p( t" E: ?8 H* W0 M8 S  XSep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109733: critical: failed to initialize guest agent channel
+ h7 M, d) o! A1 N" ySep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE/ b: l3 A( I7 X% U6 K2 H
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
% a* l" M- \0 @# e. d8 aSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.6 ]6 U& {3 {" B' Q8 ]
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 5.
' b" m9 C, ^9 A- l1 ~7 Y# bSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
( }  w) @; \3 V0 [* p' e0 }% kSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Start request repeated too quickly.
! d. B; v) M0 Z" h. S1 y& A2 GSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.9 ]. f% z/ F- C: D2 e/ u
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:用于从面板在线更新密码/密钥 " Y: B) E8 d- k0 U, c1 z
yum install -y qemu-guest-agent
. ^  {7 m/ w5 T- F. o  I/ w; g8 b配置qemu-ga,修改) n9 q0 \1 L1 M  |2 x2 A2 p! M
sed -i 's/FSFREEZE_HOOK_PATHNAME=/#FSFREEZE_HOOK_PATHNAME=/g' /etc/sysconfig/qemu-ga. J; c' p% C' i

1 R$ _- T) T# ecat >>/etc/sysconfig/qemu-ga <<EOF/ Z$ I; O: |- }: p( q+ j
TRANSPORT_METHOD="virtio-serial"
, ?! B8 a0 s# \: \/ m" e. ]DEVPATH="/dev/virtio-ports/org.qemu.guest_agent.0") l3 d, v8 ]- D& ?! {1 `
LOGFILE="/var/log/qemu-ga/qemu-ga.log"              ; e6 `; A& Z' ^! ~  `# B) P
PIDFILE="/var/run/qemu-ga.pid"9 i% y5 a! z& A2 a
BLACKLIST_RPC=""# E8 y1 z7 R& }' k
FSFREEZE_HOOK_ENABLE=0# `% L% \# e) p! c8 }- ^1 ]
EOF( e, ~5 n! j* s  @7 I
4 n+ x" Y  b3 e% z0 b
systemctl enable qemu-guest-agent.service
7 B. X: K1 B  n' [! {# I

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 17:05:23 | 显示全部楼层
[root@compute03 images]# virsh edit Uniontechos1 # E) Y- D0 U* O7 z4 |" A" u3 U% y

9 J* ~4 J$ o1 h( ]: O9 W! U' `<channel type='unix'>$ d* d; b) v* W! R  \* J( g
   <target type='virtio' name='org.qemu.guest_agent.0'/>
. y# |$ [- A5 y6 E! B8 s</channel>
4 D& L) e3 \, K# L. g
+ l+ p/ n; g4 ~  v9 S# A9 F" M; r* ?
Domain Uniontechos1 XML configuration edited.6 c7 t5 ]+ P0 V: Q" c2 H

# j% O/ `( s/ _$ o6 I% x0 [[root@compute03 images]# virsh destroy Uniontechos1 6 F, N! {& d/ L4 X# U# n
Domain Uniontechos1 destroyed. r1 [  }: O  A1 s. ?- v
0 C5 ?" G; ?+ \2 {5 l
[root@compute03 images]# virsh start Uniontechos1
, I. w, A$ u* b* dDomain Uniontechos1 started
  G7 l1 [* B7 j7 ?$ A6 i. t  j* X/ L8 Y5 ~
[root@compute03 images]# virsh edit Uniontechos1 , A5 N0 O8 U( W+ A6 H+ O: O
Domain Uniontechos1 XML configuration not changed.
/ t. O9 p* P; d2 z1 w) `# k0 s* {' i6 u
next to vm install  qemu-guest-agent
3 U6 ^& [. \2 q+ w& l* a4 I" Z2 g
# yum install qemu-guest-agent
. f/ d: n9 ?, y& r: A

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 % X$ E" ~* \, T, N8 o
Verifying...                          ################################# [100%]
" T2 U7 a$ C! k4 e( p$ JPreparing...                          ################################# [100%]
/ |" S% G  h* v6 t( HUpdating / installing...
; h1 }2 i" h1 p. v) A# ~/ [6 L2 p   1:qemu-guest-agent-15:4.2.0-48.0.2.################################# [100%]
2 K: ^8 |) c+ H3 p' \! `, R" o[root@bogon Packages]# cd Packages/cd
0 [" d. R) G  U; C  m, y-bash: cd: Packages/cd: No such file or directory
2 q" Z) y6 c8 y6 ?+ |1 T  h[root@bogon Packages]# cd
- z' ?: i5 l  }[root@bogon ~]# systemctl start qemu-guest-agent.service , I0 n: A5 U7 |5 _) r8 \' k6 g
[root@bogon ~]# systemctl status qemu-guest-agent.service
1 g6 Q6 P; k+ w  f# B: y4 V+ P# e, N● qemu-guest-agent.service - QEMU Guest Agent! ^! S8 [9 B+ G2 C
   Loaded: loaded (/usr/lib/systemd/system/qemu-guest-agent.service; enabled; vendor preset: enabled)/ z8 q6 c6 A. Y' F5 o8 l- u
   Active: active (running) since Fri 2022-09-23 17:14:22 CST; 6s ago( R9 V0 s$ y' S
Main PID: 1940 (qemu-ga)7 P( E* @0 P3 t$ o# i0 a% V
    Tasks: 1 (limit: 49744)
# [  h* t0 D& u! h! K   Memory: 836.0K
. D7 s; C0 A5 Z$ z8 f! \   CGroup: /system.slice/qemu-guest-agent.service# ?! p$ l* g1 s3 d* O, }
           └─1940 /usr/bin/qemu-ga --method=virtio-serial --path=/dev/virtio-ports/org.qemu.guest_agent>
% T. h1 T/ Z4 D4 s* R
& b5 s1 n# A! o# T* DSep 23 17:14:22 bogon systemd[1]: Started QEMU Guest Agent.
  U9 V8 u, F4 ^5 u: e! J0 ]4 V[root@bogon ~]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 03:06 , Processed in 0.023393 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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