* Issues while "Debugging Windows Kernel" running on KVM
@ 2008-08-21 8:41 Muppana, Bhaskar
2008-08-21 13:47 ` Dor Laor
0 siblings, 1 reply; 2+ messages in thread
From: Muppana, Bhaskar @ 2008-08-21 8:41 UTC (permalink / raw)
To: kvm; +Cc: Muppana, Bhaskar
Hi,
I am facing issues while trying to debug Windows XP kernel running on
top of Linux KVM.
I have to debug Windows XP kernel running in a VM. I have dedicated
ttyS0 on the host to the guest. I am using the following command to
bring up Windows VM.
/usr/local/kvm/bin/qemu-system-x86_64 \
-hda /opt/vdisk.img \
-boot c \
-m 512 \
-net nic,model=rtl8139,macaddr=52:54:00:12:34:56 \
-net tap,ifname=qtap0,script=no \
-smp 1 \
-usb \
-usbdevice tablet \
-localtime \
-serial /dev/ttyS0
I have another machine, running Windows XP, connected to the Linux host
through serial cable.
--------
|Windows |
| VM |
|(target)|
--------
--------------- ----------------
| Windows Host | ----------------- | Linux with KVM |
--------------- ----------------
I am able to send messages between Windows host and target through
serial ports (tested using windows power shell). But, I am not able to
use Win DBG (Kernel Debugger) in host to connect to target. Target is
getting stuck while booting.
Debug enabled Windows entry in boot.ini:
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP
Professional" /fastdetect /debugport=COM1 /baudrate=115200
Can someone please help me regarding this?
Thanks,
Bhaskar
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Issues while "Debugging Windows Kernel" running on KVM
2008-08-21 8:41 Issues while "Debugging Windows Kernel" running on KVM Muppana, Bhaskar
@ 2008-08-21 13:47 ` Dor Laor
0 siblings, 0 replies; 2+ messages in thread
From: Dor Laor @ 2008-08-21 13:47 UTC (permalink / raw)
To: Muppana, Bhaskar; +Cc: kvm
Can you try http://kvm.qumranet.com/kvmwiki/WindowsGuestDebug
You can use windows host as a VM too.
Since (in the past) there was a problem with the virtual serial polling
you can use -no-kvm and the
qemu patch, as described in the wiki.
Good luck, Dor.
Muppana, Bhaskar wrote:
> Hi,
>
> I am facing issues while trying to debug Windows XP kernel running on
> top of Linux KVM.
>
> I have to debug Windows XP kernel running in a VM. I have dedicated
> ttyS0 on the host to the guest. I am using the following command to
> bring up Windows VM.
>
>
> /usr/local/kvm/bin/qemu-system-x86_64 \
> -hda /opt/vdisk.img \
> -boot c \
> -m 512 \
> -net nic,model=rtl8139,macaddr=52:54:00:12:34:56 \
> -net tap,ifname=qtap0,script=no \
> -smp 1 \
> -usb \
> -usbdevice tablet \
> -localtime \
> -serial /dev/ttyS0
>
>
>
> I have another machine, running Windows XP, connected to the Linux host
> through serial cable.
>
> --------
> |Windows |
> | VM |
> |(target)|
> --------
> --------------- ----------------
> | Windows Host | ----------------- | Linux with KVM |
> --------------- ----------------
>
> I am able to send messages between Windows host and target through
> serial ports (tested using windows power shell). But, I am not able to
> use Win DBG (Kernel Debugger) in host to connect to target. Target is
> getting stuck while booting.
>
> Debug enabled Windows entry in boot.ini:
>
> multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP
> Professional" /fastdetect /debugport=COM1 /baudrate=115200
>
>
> Can someone please help me regarding this?
>
>
>
> Thanks,
> Bhaskar
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-21 13:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21 8:41 Issues while "Debugging Windows Kernel" running on KVM Muppana, Bhaskar
2008-08-21 13:47 ` Dor Laor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox