我没有通过链接,我不使用 tcp 和端口,但我经常使用 qemu 从 xp32 物理主机调试 xp64 虚拟机
对于网络,我使用分接头适配器
并且我用于调试和非调试 Qemu 会话的 bat 文件如下所示
qemu 是非常旧的一个 0.9.0 for windows
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