Debugging 使用虚拟串行端口调试Windows XP来宾
我正在尝试通过QEmu虚拟串行端口调试Windows XP来宾内核 我下面使用Debugging 使用虚拟串行端口调试Windows XP来宾,debugging,tcp,windbg,qemu,virtual-serial-port,Debugging,Tcp,Windbg,Qemu,Virtual Serial Port,我正在尝试通过QEmu虚拟串行端口调试Windows XP来宾内核 我下面使用 qemu-system-x86_64 \-m 1024 \-drive file=win-target.img \-serial tcp:127.0.0.1:4445 问题是QEmu无法以错误消息启动 qemu-system-x86_64:-串行tcp:127.0.0.1:portNo:未指定主机和/或端口 qemu:无法将串行设备连接到字符后端“tcp:127.0.0.1:portNo” 尽管我可以通过在tcp:
qemu-system-x86_64 \-m 1024 \-drive file=win-target.img \-serial tcp:127.0.0.1:4445
问题是QEmu无法以错误消息启动
qemu-system-x86_64:-串行tcp:127.0.0.1:portNo:未指定主机和/或端口
qemu:无法将串行设备连接到字符后端“tcp:127.0.0.1:portNo”
尽管我可以通过在tcp:ip:portNumber
之后添加service,nowait
成功创建调试器VM
有什么我遗漏的吗?我没有通过链接,我不使用tcp和端口,但我经常使用qemu从xp32物理主机调试xp64虚拟机 对于网络,我使用tap适配器 我用于调试和非调试Qemu会话的bat文件如下所示
qemu是非常古老的windows版本0.9.0
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
bat文件的内容
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
我没有通过链接,也没有使用tcp和端口,但我经常使用qemu从xp32物理主机调试xp64虚拟机 对于网络,我使用tap适配器 我用于调试和非调试Qemu会话的bat文件如下所示
qemu是非常古老的windows版本0.9.0
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
bat文件的内容
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
谢谢你的建议,但我特别希望通过tcp连接进行调试。谢谢你的建议,但我特别希望通过tcp连接进行调试。