public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* KVM hangs with windows XP guest - help with debugging?
@ 2008-04-01 14:46 Jonathan Underwood
  2008-04-01 15:44 ` Felix Leimbach
  2008-04-01 17:10 ` Avi Kivity
  0 siblings, 2 replies; 5+ messages in thread
From: Jonathan Underwood @ 2008-04-01 14:46 UTC (permalink / raw)
  To: kvm-devel

Hi,

I am trying to run Windows XP pro as a guest under kvm. The host
system is Fedora 8. I have seen this behaviour with kvm-60 (as
currently packaged for Fedora 8) and kvm-64 (using the rawhide
package).

Essentially, I install XP Pro successfuly. When I then try and run the
SP2 exe in order to update it to SP2, KVM always freezes at the point
where is says "Running post install processes). The command line I am
using is:

/usr/bin/qemu-kvm -M pc -m 512 -smp 1 -monitor pty -localtime -no-acpi
-boot c -hda /home/VM/WindowsXP.img -net
nic,macaddr=00:16:3e:2a:1b:db,vlan=0 -net tap,fd=12,script=,vlan=0
-usb -usbdevice tablet -no-kvm-pit

I have tried this both via virt-manager (i.e. connecting to the guest
via vnc) and straight at the command line, and it happens for both.

Host machine details:

model name      : Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz

kernel 2.6.24.3-50.fc8 (x86_64)

When kvm hangs, there's no output produced on the console. What can I
do to debug this further?

Thanks,
Jonathan.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: KVM hangs with windows XP guest - help with debugging?
  2008-04-01 14:46 KVM hangs with windows XP guest - help with debugging? Jonathan Underwood
@ 2008-04-01 15:44 ` Felix Leimbach
  2008-04-01 17:10 ` Avi Kivity
  1 sibling, 0 replies; 5+ messages in thread
From: Felix Leimbach @ 2008-04-01 15:44 UTC (permalink / raw)
  To: kvm-devel


[-- Attachment #1.1: Type: text/plain, Size: 629 bytes --]

  On 01.04.2008 Jonathan Underwood wrote:
>  Essentially, I install XP Pro successfuly. When I then try and run the
>  SP2 exe in order to update it to SP2, KVM always freezes at the point
>  where is says "Running post install processes).

Hi Jonathan,

the problem looks similar to the Win2003 Server hangs I encountered 
recently [1]. I was also using a 2.6.24.3 kernel, although mine is a 
self-rolled vanilla+grsec kernel.
Since I'm testing with the 2.6.25-rc7 kernel I do no longer have those 
problems.
So you might give upgrading a shot.

regards,
Felix

[1] http://article.gmane.org/gmane.comp.emulators.kvm.devel/15223

[-- Attachment #1.2: Type: text/html, Size: 1122 bytes --]

[-- Attachment #2: Type: text/plain, Size: 278 bytes --]

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: KVM hangs with windows XP guest - help with debugging?
  2008-04-01 14:46 KVM hangs with windows XP guest - help with debugging? Jonathan Underwood
  2008-04-01 15:44 ` Felix Leimbach
@ 2008-04-01 17:10 ` Avi Kivity
  2008-04-02 11:17   ` Jonathan Underwood
  1 sibling, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2008-04-01 17:10 UTC (permalink / raw)
  To: Jonathan Underwood; +Cc: kvm-devel

Jonathan Underwood wrote:
> Hi,
>
> I am trying to run Windows XP pro as a guest under kvm. The host
> system is Fedora 8. I have seen this behaviour with kvm-60 (as
> currently packaged for Fedora 8) and kvm-64 (using the rawhide
> package).
>
> Essentially, I install XP Pro successfuly. When I then try and run the
> SP2 exe in order to update it to SP2, KVM always freezes at the point
> where is says "Running post install processes). The command line I am
> using is:
>
> /usr/bin/qemu-kvm -M pc -m 512 -smp 1 -monitor pty -localtime -no-acpi
> -boot c -hda /home/VM/WindowsXP.img -net
> nic,macaddr=00:16:3e:2a:1b:db,vlan=0 -net tap,fd=12,script=,vlan=0
> -usb -usbdevice tablet -no-kvm-pit
>
> I have tried this both via virt-manager (i.e. connecting to the guest
> via vnc) and straight at the command line, and it happens for both.
>
> Host machine details:
>
> model name      : Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
>
> kernel 2.6.24.3-50.fc8 (x86_64)
>
> When kvm hangs, there's no output produced on the console. What can I
> do to debug this further?
>   

Please run 'kvm_stat -1' (found in the tarball) while the guest is 
hanging and report the output.  Also report whether the qemu process is 
consuming cpu or not.

-- 
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: KVM hangs with windows XP guest - help with debugging?
  2008-04-01 17:10 ` Avi Kivity
@ 2008-04-02 11:17   ` Jonathan Underwood
  2008-04-02 11:50     ` Jonathan Underwood
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Underwood @ 2008-04-02 11:17 UTC (permalink / raw)
  To: kvm-devel

On 01/04/2008, Avi Kivity <avi@qumranet.com> wrote:

>  Please run 'kvm_stat -1' (found in the tarball) while the guest is hanging
> and report the output.
# /home/jgu/Desktop/kvm_stat -1
efer_reload              8757563       129
exits                   17039786       362
halt_exits                384540       129
halt_wakeup                    0         0
invlpg                         0         0
io_exits                 3938052       100
irq_exits                 113040         0
irq_window                     0         0
light_exits              8419349       233
mmio_exits               4813794         0
pf_fixed                 5871571        99
pf_guest                  523123         0
request_irq                    0         0
signal_exits              136078         0
tlb_flush                 618467        33

> Also report whether the qemu process is consuming
> cpu or not.
>

Yes, it's hammering the CPU flat out.

Let me know if i can provide more info.
J.

>  --
>  Any sufficiently difficult bug is indistinguishable from a feature.
>
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: KVM hangs with windows XP guest - help with debugging?
  2008-04-02 11:17   ` Jonathan Underwood
@ 2008-04-02 11:50     ` Jonathan Underwood
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Underwood @ 2008-04-02 11:50 UTC (permalink / raw)
  To: kvm-devel

On 02/04/2008, Jonathan Underwood <jonathan.underwood@gmail.com> wrote:
> On 01/04/2008, Avi Kivity <avi@qumranet.com> wrote:
>
>  >  Please run 'kvm_stat -1' (found in the tarball) while the guest is hanging
>  > and report the output.
>
> # /home/jgu/Desktop/kvm_stat -1
>  efer_reload              8757563       129
>  exits                   17039786       362
>  halt_exits                384540       129
>  halt_wakeup                    0         0
>  invlpg                         0         0
>  io_exits                 3938052       100
>  irq_exits                 113040         0
>  irq_window                     0         0
>  light_exits              8419349       233
>  mmio_exits               4813794         0
>  pf_fixed                 5871571        99
>  pf_guest                  523123         0
>  request_irq                    0         0
>  signal_exits              136078         0
>  tlb_flush                 618467        33
>

Actually, that VM did eventually spring back into life, bizarrely.
However, later on I saw another hard hang:

# /home/jgu/Desktop/kvm_stat -1
efer_reload             28180156      1140
exits                  339058958    312917
halt_exits               1254859         0
halt_wakeup                    0         0
invlpg                         0         0
io_exits                18320867         0
irq_exits                 826972         0
irq_window                     0         0
light_exits            312098749    312898
mmio_exits               9583557         0
pf_fixed               110064034    312919
pf_guest                 2235329         0
request_irq                    0         0
signal_exits             1207511      1087
tlb_flush                2391783         0

And the VM was consuming still CPU

J.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-02 11:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-01 14:46 KVM hangs with windows XP guest - help with debugging? Jonathan Underwood
2008-04-01 15:44 ` Felix Leimbach
2008-04-01 17:10 ` Avi Kivity
2008-04-02 11:17   ` Jonathan Underwood
2008-04-02 11:50     ` Jonathan Underwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox