2015-11-24 166 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

相關問題