1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
socket: 0.860
device: 0.796
architecture: 0.718
ppc: 0.642
PID: 0.620
graphic: 0.612
network: 0.594
semantic: 0.573
VMM: 0.543
KVM: 0.541
vnc: 0.537
hypervisor: 0.531
risc-v: 0.506
files: 0.487
x86: 0.473
kernel: 0.470
performance: 0.464
arm: 0.458
TCG: 0.457
permissions: 0.441
i386: 0.427
boot: 0.419
register: 0.409
mistranslation: 0.395
peripherals: 0.365
user-level: 0.329
debug: 0.273
virtual: 0.212
assembly: 0.152
Cannot exec certain QMP guest commands using unix socket but Virsh can
Description of problem:
There are two channels configured to communicate the guest.
- a) qemu.guest_agent.0
- b) unix socket: -qmp unix:/tmp/qmp_win7-101.sock,server,nowait
**For unix socket connection, certain commands like ```guest-info``` and other guest functions are missing.** However, invoking guest-xx functions successfully in Virsh (through qemu.guest_agent.0).
Steps to reproduce:
```
$sudo socat unix-connect:/tmp/qmp_win7-101.sock readline
{"QMP": {"version": {"qemu": {"micro": 0, "minor": 2, "major": 4}, "package": "qemu-kvm-4.2.0-59.module_el8.5.0+1063+c9b9feff.1"}, "capabilities": ["oob"]}}
{"execute":"qmp_capabilities"}
{"return": {}}
{"execute": "guest-info"}
{"error": {"class": "CommandNotFound", "desc": "The command guest-info has not been found"}}
```
I checked ```/etc/sysconfig/qemu-ga``` and unmarked blacklist functions, but it did not solve this problem.
```
# original contents of qemu-ga
#BLACKLIST_RPC=guest-file-open,guest-file-close,guest-file-read,guest-file-write,guest-file-seek,guest-file-flush,guest-exec,guest-exec-status
```
|