blob: a7f65641e942741dbc3b2e90f44d5ff3706cbeb5 (
plain) (
blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
vnc: 0.554
PID: 0.470
device: 0.458
semantic: 0.435
network: 0.428
x86: 0.425
architecture: 0.408
assembly: 0.351
ppc: 0.347
performance: 0.345
user-level: 0.338
socket: 0.320
peripherals: 0.297
files: 0.295
permissions: 0.278
kernel: 0.245
mistranslation: 0.238
register: 0.225
graphic: 0.216
hypervisor: 0.194
arm: 0.190
virtual: 0.179
i386: 0.151
risc-v: 0.147
debug: 0.142
VMM: 0.132
boot: 0.121
TCG: 0.112
KVM: 0.098
tap downscript is not executed when exiting qemu through "quit" monitor command
When you tell qemu to shutdown using the "quit" monitor command, the downscript of the tap interface is not executed.
To reproduce:
Create the test script /tmp/qemu-ifdown-test.sh :
==
#!/bin/bash
touch /tmp/is_this_working
==
Run:
==
# chmod +x /tmp/qemu-ifdown-test.sh
# qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
VNC server running on `127.0.0.1:5900'
# nc -U /tmp/monitor.socket
QEMU 0.12.5 monitor - type 'help' for more information
(qemu) quit
quit
# ls /tmp/is*
ls: cannot access /tmp/is*: No such file or directory
==
If I quit qemu by sending a SIGTERM instead of using the "quit" command, the downscript does get executed:
==
# qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
VNC server running on `127.0.0.1:5900'
# killall qemu-system-x86_64
# ls /tmp/is*
/tmp/is_this_working
==
Issue occurs with both 0.12.3 and 0.12.5
Have you reported this to QEMU developers' mailing list?
Thanks for providing instructions on how to reproduce this bug. I ran your instructions on qemu.git/master and the issue does not occur.
QEMU 0.12.x is old, please try the latest stable release 0.15.0 or qemu.git/master.
|