易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 3137|回复: 6
收起左侧

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

[复制链接]
发表于 2021-11-4 17:34:16 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
root@localhost:~# service qemu-guest-agent status
6 v- U% K  ^4 d9 m● qemu-guest-agent.service - QEMU Guest Agent
. p0 i1 y3 ~( R$ z7 x: z( ~     Loaded: loaded (/lib/systemd/system/qemu-guest-agent.service; static)
4 B2 y! _/ o- J. ^. ]+ j) ~' x     Active: inactive (dead)' D5 D$ S. u0 n% X' |* ?
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.$ E7 E3 X/ D3 P  B% N
Nov 04 09:14:44 localhost systemd[1]: Dependency failed for QEMU Guest Agent.' s+ i0 |" o/ @7 x) a6 X
Nov 04 09:14:44 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
" F3 l5 y; G6 t- h( j4 G/ aNov 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.% V6 m& M6 }2 o* N8 `
Nov 04 09:18:46 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
, C8 K& B" i* T2 S& HNov 04 09:18:46 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
7 T' q4 _% U! H, n/ W# lNov 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.
. f; A: O4 s9 j! ENov 04 09:28:24 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
$ }4 D7 Y( G$ n4 f, H+ cNov 04 09:28:24 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.3 f# Q1 h3 N8 L; u3 I- n6 F
root@localhost:~# service qemu-guest-agent stop9 [: ]0 B: L0 d5 g1 @% H4 d
root@localhost:~# service qemu-guest-agent start; a( c7 Q  X$ c. Q4 h+ d
A dependency job for qemu-guest-agent.service failed. See 'journalctl -xe' for details.0 @+ @& f# V) `- c* m( g
root@localhost:~# journalctl -xe
  r0 l3 H& }- _- W6 J' C0 [! B9 `░░ Defined-By: systemd+ `* Z+ b- p4 u- ]
░░ Support: http://www.ubuntu.com/support
8 g/ |6 a. C1 ^6 P░░
9 s4 c, U% ~! W) z( h( m░░ The unit packagekit.service has successfully entered the 'dead' state.
& P, t& M1 i' Q2 B2 r7 ?Nov 04 09:30:47 localhost systemd[1]: Unnecessary job for /dev/virtio-ports/org.qemu.guest_agent.0 was removed.
( z4 R/ E' P; c7 c7 x1 W; ~░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed
5 F7 x( s- f. N  d. l! H" _░░ Defined-By: systemd
$ j* |# Z. a7 e2 K% \! e! Z░░ Support: http://www.ubuntu.com/support
5 p6 ~; e6 Q  j8 }# e3 V░░
+ \7 ^9 e% r. N1 ^% t* l) f+ i░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure.9 ~( T' y  P/ w& e% \
░░
& k, `2 e  V0 r$ \! j* O░░ The job identifier is 1084 and the job result is collected.  ?3 G0 `  ]' J5 q5 S; `
Nov 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.+ H' c& U" V( C
Nov 04 09:32:21 localhost systemd[1]: Timed out waiting for device /dev/virtio-ports/org.qemu.guest_agent.0.9 T$ o# |* R6 N+ m# c1 O- f
░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed
  [: e1 `" h. F% g& C░░ Defined-By: systemd
+ i7 I8 b: f+ r& h; O░░ Support: http://www.ubuntu.com/support" R5 f% q/ k& p6 M" [* B6 N& u
░░
0 n  U+ V3 s5 X7 q4 Z; W░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure.4 j- [6 l8 U: w- [
░░
1 E; A6 S5 p4 E░░ The job identifier is 1223 and the job result is timeout.
- Z) E2 O( e& u& F2 GNov 04 09:32:21 localhost systemd[1]: Dependency failed for QEMU Guest Agent.7 P1 C& j. A; A, S+ N! b+ R5 t! x
░░ Subject: A start job for unit qemu-guest-agent.service has failed
- F- Y5 V" ~* H. w░░ Defined-By: systemd8 o4 i, r# r3 z" O
░░ Support: http://www.ubuntu.com/support
7 `( Q2 t% C# l- Z' j; r░░ 3 n; @8 s0 n1 ^; U9 f5 s. Q
░░ A start job for unit qemu-guest-agent.service has finished with a failure.9 L0 C) F# `& H- g$ F
░░ 0 t$ C3 e! r9 ?( m4 z
░░ The job identifier is 1155 and the job result is dependency.  A9 P' ~2 C6 T% r
Nov 04 09:32:21 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
# I, t9 r! K5 S. }6 F/ G4 a/ iNov 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>
. y: q* ]+ h6 Y- I. olines 2580-2610/2610 (END)
' `/ v) c3 U! p# S
 楼主| 发表于 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.  d5 h$ s8 g% N6 _' b; P
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.
# m7 n0 g9 z8 E. \Sep 23 16:26:56 bogon systemd[1]: Dependency failed for QEMU Guest Agent.( b4 A: ]( ^0 o8 ?5 v
Sep 23 16:26:56 bogon systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.  w. U9 I4 c- y% \+ e; E  e! a; `
Sep 23 16:30:07 bogon systemd[1]: Starting system activity accounting tool...
0 t5 M- Y5 `8 B0 h3 Q5 pSep 23 16:30:07 bogon systemd[1]: sysstat-collect.service: Succeeded.
+ V; l& N- \9 fSep 23 16:30:07 bogon systemd[1]: Started system activity accounting tool.
: E. Q2 Q1 ?$ j) ^" m8 t6 m' I' gSep 23 16:31:59 bogon systemd[1]: Unnecessary job for dev-virtio\x2dports-org.qemu.guest_agent.0.device was removed.
% d1 ]# O5 s/ I' |+ g6 p3 LSep 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.
& T$ V2 ?, d& i, O9 N0 \0 HSep 23 16:31:59 bogon systemd[1]: Dependency failed for QEMU Guest Agent.% L& [  X# h' ^! J. E& k1 a& `/ \
Sep 23 16:31:59 bogon systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
 楼主| 发表于 2022-9-23 16:53:57 | 显示全部楼层
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.4 i4 i- W4 y: P" \1 S
Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64021: critical: error opening channel: No such file or directory
4 M9 B; L/ k" J% {2 `6 V( |Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64051: critical: error opening channel+ [, F7 b$ B3 C
Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64068: critical: failed to create guest agent channel: _6 ^( j8 U  X
Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64073: critical: failed to initialize guest agent channel
7 {& h# |) K# I) `! y6 xSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE7 v7 O- L5 q( N! b- x- A) {& E& C8 D
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.( o( `) A, ]  w1 W% G! w
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart./ _+ e6 F' y; w" b3 c" h  g
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 1.
4 k' f0 X/ ^$ K6 F7 b1 \8 |Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.! v; x) }3 B. f# F
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
9 d2 T5 [- x0 |2 m) m/ P1 XSep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75703: critical: error opening channel: No such file or directory5 A8 O+ P* f3 ~4 Q0 s9 j
Sep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75744: critical: error opening channel( {) m% A% R" c2 @! f4 \
Sep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75749: critical: failed to create guest agent channel* B- |; K4 F: \" a5 u  _
Sep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75753: critical: failed to initialize guest agent channel4 }4 X6 h4 ]3 {7 A
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE* b* N  M) W, [; o: X0 Y5 N: C' G
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.; u  t- V1 `, L! j) i6 f0 ?7 r8 `, ]
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart." x# ?( H, j  e
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 2.
0 U5 g) @/ L; BSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.6 g+ b6 U  S! v0 g1 q
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
8 n2 o5 u$ b( @" H" USep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87186: critical: error opening channel: No such file or directory. J8 n7 T1 f1 m$ o: S  @
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87212: critical: error opening channel+ g; T# b' D& x' N
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87218: critical: failed to create guest agent channel
5 Z$ w4 e5 v; _$ v" ASep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87222: critical: failed to initialize guest agent channel4 d4 ?7 t+ c3 U
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE1 W  {: g' S( H. q7 ?$ x' v
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.' L9 n# l6 Q  k$ x1 a
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.: M7 k/ [! i; k8 Y% ^  p
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 3." A" Z' W( \, j* i9 S9 K, I; ?
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.8 Z/ H$ x8 t  J( H, U
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.7 M3 o7 {$ A0 [
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98561: critical: error opening channel: No such file or directory$ Z$ b* n( A$ n$ x
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98584: critical: error opening channel) Q. h& M0 b! K
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98590: critical: failed to create guest agent channel
2 P4 y6 |1 ^' b+ `6 DSep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98594: critical: failed to initialize guest agent channel
9 l3 t5 b, k& u( Q  r  b$ oSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
5 M4 m: W1 e# RSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.' v) B/ {' B6 [3 X% b
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
. H* R; q1 r% c! P: CSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 4.4 ?% |7 W, t3 Y- v, J
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
2 l' ~9 [* D8 x& USep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.( p& w6 R) D! S. y' G! P9 N
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109701: critical: error opening channel: No such file or directory; |/ f$ t( x7 w6 i1 m
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109724: critical: error opening channel2 n: c, H; t) ~. F
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109729: critical: failed to create guest agent channel
) @, l9 E8 g4 V* k0 VSep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109733: critical: failed to initialize guest agent channel
  l+ n4 V0 _1 C" ]6 ZSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE( t2 M3 |% Q7 V) S* N* _2 ^
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.( O5 [: F) Q0 Z2 L0 G, Z
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.* _5 r& b: O. f. E
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 5.5 |0 a: v# \+ ^
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
; S0 H' Q% e; y) R0 uSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Start request repeated too quickly.' s, v' y7 n7 ?0 u* c. C
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.% d6 H! z: n8 l/ O
Sep 23 16:53:47 bogon systemd[1]: Failed to start QEMU Guest Agent.
 楼主| 发表于 2022-9-23 16:54:10 | 显示全部楼层
暂时没有办法解决问题。
 楼主| 发表于 2022-9-23 16:54:27 | 显示全部楼层
安装qemu-guest-agent:用于从面板在线更新密码/密钥
# v$ J; `2 I: wyum install -y qemu-guest-agent
+ @) E/ x. M! V配置qemu-ga,修改
6 T% v4 w; i8 F/ qsed -i 's/FSFREEZE_HOOK_PATHNAME=/#FSFREEZE_HOOK_PATHNAME=/g' /etc/sysconfig/qemu-ga
: F4 l: M% e9 j2 }% |# c. v) ^, v3 R2 a
cat >>/etc/sysconfig/qemu-ga <<EOF  X4 v6 C" l8 e9 ?
TRANSPORT_METHOD="virtio-serial"
& _1 I( o* h2 H, HDEVPATH="/dev/virtio-ports/org.qemu.guest_agent.0"- q  j2 L% u6 c# T" W
LOGFILE="/var/log/qemu-ga/qemu-ga.log"              
. @/ m- C5 p9 w' v9 M5 E) GPIDFILE="/var/run/qemu-ga.pid") S( J+ R% {% E8 f& L( U
BLACKLIST_RPC=""
7 }( |9 h9 n/ P% ?' ^9 @FSFREEZE_HOOK_ENABLE=0$ d# k% t2 L" p- ^, ?
EOF
+ N: x8 a) ?0 z& G1 t8 Y% k1 M1 d1 x5 O. |( f
systemctl enable qemu-guest-agent.service& `( u, v$ Q) J. n6 K
 楼主| 发表于 2022-9-23 17:05:23 | 显示全部楼层
[root@compute03 images]# virsh edit Uniontechos1 4 o6 s0 d$ {0 _* f: M6 c/ G3 _

% x% n, X/ `. E( U+ z: \<channel type='unix'>: l1 L! f& ]) r. ?' S
   <target type='virtio' name='org.qemu.guest_agent.0'/>
, V) d8 g. t$ q8 ^0 i. D" g</channel>
4 w/ a) P4 X/ _
) q4 _; \( Q4 n- o. \$ x$ X5 c
  d* x8 Q# h1 J0 y9 Z& V+ UDomain Uniontechos1 XML configuration edited.8 ~8 B4 t0 [: U+ c* d- ]. K: n. m
2 a; Q) ^! b5 X- m8 R. T
[root@compute03 images]# virsh destroy Uniontechos1
: R. E6 ]0 T! [& k6 YDomain Uniontechos1 destroyed& z% U3 D3 |  N. ~( _
0 s2 l# i# d% K; ^3 X' D% }" o6 X4 Z$ B
[root@compute03 images]# virsh start Uniontechos1 , S3 x: `4 c, H  P/ _2 [7 K
Domain Uniontechos1 started
; J& ]4 z% u1 t# }. s" H% u0 ^( Q
[root@compute03 images]# virsh edit Uniontechos1
, g/ K! k! T% o5 H( r( Z' ~Domain Uniontechos1 XML configuration not changed.3 `# [8 R, {6 L" ?
* W- ?5 t% j  I- n, o1 U
next to vm install  qemu-guest-agent
* ~: Z7 R2 U+ S" s$ }0 d! I
2 u6 m, U: v1 k& w# yum install qemu-guest-agent; m  K- o2 G' g# L- X" B
 楼主| 发表于 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 , U+ o8 G9 _2 ~( @) V7 q7 @8 l# `. C" Y
Verifying...                          ################################# [100%]6 Z0 E3 q( S6 r3 W  ~+ V
Preparing...                          ################################# [100%]
: E. H  R+ H4 pUpdating / installing...
. A7 v3 t8 n4 `, s/ ]4 ]& o; h8 b   1:qemu-guest-agent-15:4.2.0-48.0.2.################################# [100%]
: x3 `5 ]8 o, k[root@bogon Packages]# cd Packages/cd
$ L" ^# L% q# \: j& y: s-bash: cd: Packages/cd: No such file or directory
4 v2 V; K% i; {% n- i1 V$ m# r[root@bogon Packages]# cd + A7 `; M. ?! t$ t
[root@bogon ~]# systemctl start qemu-guest-agent.service
9 @; M5 f& s" h4 Q[root@bogon ~]# systemctl status qemu-guest-agent.service
6 g5 y0 n4 X: F/ h' W6 @7 i● qemu-guest-agent.service - QEMU Guest Agent' j( L! E6 u8 R& l0 P5 V8 [8 X  D( e
   Loaded: loaded (/usr/lib/systemd/system/qemu-guest-agent.service; enabled; vendor preset: enabled): E/ E1 n+ B3 d7 ?
   Active: active (running) since Fri 2022-09-23 17:14:22 CST; 6s ago
8 s" Y, a2 {. e* O Main PID: 1940 (qemu-ga)
3 Q% D1 |9 C) d! x, [' S    Tasks: 1 (limit: 49744)
) n& ^- f8 D' V% d( f2 t% L   Memory: 836.0K
) E% R2 m  n) }* g   CGroup: /system.slice/qemu-guest-agent.service
9 X9 q! o2 b; m           └─1940 /usr/bin/qemu-ga --method=virtio-serial --path=/dev/virtio-ports/org.qemu.guest_agent>
. d: E3 Q4 D4 L3 v; W5 ?
9 @" V+ t, X2 r4 Z8 F" M6 }- \/ RSep 23 17:14:22 bogon systemd[1]: Started QEMU Guest Agent.4 d9 W# a- a* j$ c& B
[root@bogon ~]#
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:25 , Processed in 0.051273 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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