2015-11-24 170 views
1

我试图通过QEmu虚拟串行端口调试Windows XP guest虚拟机内核。使用虚拟串行端口调试Windows XP guest虚拟机

我用

qemu-system-x86_64 \-m 1024 \-drive file=win-target.img \-serial tcp:127.0.0.1:4445 

问题以下"Setting up the target VM" (linux-kvm.org)设置被调试的是QEMU无法启动并显示错误消息

QEMU系统-x86_64的:-serial TCP:127.0 .0.1:portNo:未指定主机和/或端口 qemu:无法将串行设备连接到字符后端'tcp:127.0.0.1:portNo'

虽然我可以通过在tcp:ip:portNumber之后添加serve,nowait来成功创建调试器VM。

有什么我失踪?

回答

0

我没有通过链接不见了,我不使用TCP和端口,但我经常使用QEMU

网络,我使用的龙头适配器

和bat文件XP64虚拟机调试从XP32物理主机我用这两种调试和非调试的Qemu会话如下
的QEMU是非常古老的一个0.9.0的Windows bat文件的

during kernel debugging the windbg tends to be terminated several times 
    during startup (enabling DEBUG_SPEW ctrl+alt+d and enabling a log prior 
    to startup of vm shows too much commands in serial pipe restarting 
    kd connection error but i couldnt find anything relevent to solve the issue  
    i simply restart the vm with the bat after a few restarts of the batfile  
    windbg starts running and then there is no problems of windbg termination 

内容

IF "%1" == ""  goto nodebug 
IF "%1" == "dbg" goto debug 

:nodebug 
%cd%\qemu-system-x86_64.exe -L . -m 700 -hda xp64.img -net nic,model=rtl8139 -net tap,ifname=mytap -localtime 
goto exit 

:debug 
%cd%\qemu-system-x86_64.exe -L . -m 700 -hda xp64.img -net nic,model=rtl8139 -net tap,ifname=mytap -localtime -serial pipe:debugPipe 
goto exit 

:exit 
+0

感谢您的建议,但我特别希望通过TCP连接进行调试。 – abhi

相关问题