blob: cd8d2e594369a0575fcdb712258cdaed7d56b13a (
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
|
Setup virtual serial connection for Windows VMs FAILS
Hi,
To setup a virtual serial connections between two Windows 2008 R2(64-bit) guest VMs, I am referring the link
http://www.linux-kvm.org/page/WindowsGuestDrivers/UpdatedGuestDebugging
I started the host VM using the command
# /usr/local/bin/qemu-system-x86_64 -smp 1 -enable-kvm -m 512 -boot c -chardev stdio,id=mon0 -mon chardev=mon0 -serial tcp::4445,server,nowait -hda /mnt/sda5/var/lib/libvirt/images/win2008host.img
To start a target VM, the link specifies the below command
/usr/local/bin/qemu-system-x86_64 \--enable-kvm \-m 1024 \-drive file=win-target.img \-chardev stdio,id=mon0 \-mdev=mon0 \-serial tcp:127.0.0.1:4445.
I am using the QEMU emulator version 0.15.1 (qemu-kvm-0.15.1). The command is lil bit changed and also doesn't have -mdev option. I executed the below command.
# /usr/local/bin/qemu-system-x86_64 -enable-kvm -smp 1 -m 512 -boot c -chardev stdio,id=mon0 -mon chardev=mon0 -serial tcp:127.0.0.1:4455 -hda /var/lib/libvirt/images/win2008target.img
It through the error
inet_connect_opts: connect(ipv4,127.0.0.1,127.0.0.1,4455): Connection refused
chardev: opening backend "socket" failed: Connection refused
qemu: could not open serial device 'tcp:127.0.0.1:4455': Connection refused
Please let me know if any one knows how to fix issue.
My Linux System Info:
# cat /etc/redhat-release
Fedora release 12 (Constantine)
# uname -a
Linux petla 2.6.31.5-127.fc12.x86_64 #1 SMP Sat Nov 7 21:11:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
#cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5645 @ 2.40GHz
#/usr/local/bin/qemu-system-x86_64 --version
QEMU emulator version 0.15.1 (qemu-kvm-0.15.1), Copyright (c) 2003-2008 Fabrice Bellard
Guest VMs(host and target): Windows Server 2008 R2 (64-bit)
Thanks in Advance
Venkatesh
|