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
|
peripherals: 0.882
virtual: 0.861
graphic: 0.854
mistranslation: 0.805
device: 0.793
x86: 0.771
hypervisor: 0.733
socket: 0.723
architecture: 0.719
KVM: 0.691
performance: 0.684
network: 0.674
user-level: 0.671
PID: 0.640
debug: 0.638
VMM: 0.621
kernel: 0.539
register: 0.533
files: 0.529
ppc: 0.525
permissions: 0.521
assembly: 0.428
risc-v: 0.410
semantic: 0.388
vnc: 0.386
TCG: 0.378
boot: 0.326
arm: 0.280
i386: 0.211
can not run vm with a serial port
environment:
server: centOS 6.5, 3.14.19, x86_64
qemu-kvm: QEMU PC emulator version 0.12.1 (qemu-kvm-0.12.1.2), Copyright (c) 2003-2008 Fabrice Bellard
qemu-system-x86_64 :QEMU emulator version 1.2.0 (qemu-kvm-1.2.0), Copyright (c) 2003-2008 Fabrice Bellard
virt-manager: 0.9.0
VM: centOS 6.5, 3.12.30, x86_64
reproduce step:
1. add serial device
2. select device type: unix socket
device parameters: path=/dev/ttyS0
mode=client mode(connect)
3. run the VM
phenomenon:
Error starting domain: internal error process exited while connecting to monitor: qemu-kvm: -chardev socket,id=charserial0,path=/dev/ttyS0,server,nowait: socket bind failed: Address already in use
qemu-kvm: -chardev socket,id=charserial0,path=/dev/ttyS0,server,nowait: chardev: opening backend "socket" failed
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 44, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1114, in startup
self._backend.create()
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 678, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error process exited while connecting to monitor: qemu-kvm: -chardev socket,id=charserial0,path=/dev/ttyS0,server,nowait: socket bind failed: Address already in use
qemu-kvm: -chardev socket,id=charserial0,path=/dev/ttyS0,server,nowait: chardev: opening backend "socket" failed
Opening a socket with the name of a device file can not work, you've got to specify a different name for a unix socket instead. So this is not a bug.
(or if you just wanted to complain about the rather ugly traceback instead of a nice error message: Please file a bug against virt-manager instead. Thanks!)
|