Skip to contentSkip to conversation

kvm crash on vista boot loader

DISCUSSION Vladimir Stavrinov 4 participants 7 messages Oct 19, 2007 – Oct 31, 2007 4 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

Microsoft.Windows.Vista.Ultimate.X86.OEM guest successfully installed but after that kvm crash immediately after startup on vista boot loader and dump registers into linux console:

unhandled vm exit: 0x80000021 vcpu_id 0
rax 0000000060000010 rbx 0000000000000080 rcx 0000000000000000 rdx 0000000000000080 rsi 000000000026b238 rdi 000000000008b238 rsp 0000000000000200 rbp 0000000000001f20 r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11 0000000000000000 r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 0000000000000000 rip 000000000000009b rflags 00023002
cs b000 (002b0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ds 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
es 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ss 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
fs 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
gs 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0000 (30c00000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0) ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0) gdt 2b0000/27
idt 0/3ff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
./kvm-vista: line 38: 14430 Aborted qemu-system-x86_64 -usb -usbdevice tablet -localtime -m 768 -boot c -net nic,model=rtl8139 -net tap,ifname=tap-vs,script=no -hda /home/vs/vista.img

This is true for kvm-48,46 and something similar for kvm-44. This was testing with 3 different vista distros. Some time ago (don't remember the old kvm version) it was working. But now vista booted with -no-kvm option only. By the way, the w2k, w2003 and wxp are working fine (not simultaneously) on the same machine. It's seems like there are some problems with SMP and Vista in kvm

Here is host info:

Linux core 2.6.22-2-686 #1 SMP Fri Aug 31 00:24:01 UTC 2007 i686 GNU/Linux

ii  bash                                   3.1dfsg-8                  The GNU Bourne Again SHell
ii  gcc                                    4:4.2.1-6                  The GNU C compiler
ii  gcc-3.4                                3.4.6-6                    The GNU C compiler
ii  gcc-3.4-base                           3.4.6-6                    The GNU Compiler Collection (base package)
ii  gcc-4.1                                4.1.2-16                   The GNU C compiler
ii  gcc-4.1-base                           4.1.2-16                   The GNU Compiler Collection (base package)
ii  gcc-4.2                                4.2.2-3                    The GNU C compiler
ii  gcc-4.2-base                           4.2.2-3                    The GNU Compiler Collection (base package)
ii  libc6                                  2.6.1-6                    GNU C Library: Shared libraries
ii  libc6-dev                              2.6.1-6                    GNU C Library: Development Libraries and Hea

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
stepping : 6
cpu MHz : 1864.854
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3732.62
clflush size : 64

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
stepping : 6
cpu MHz : 1864.854
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3729.91
clflush size : 64

MemTotal:      2050516 kB
MemFree:         66028 kB
Buffers:        260068 kB
Cached:        1355260 kB
SwapCached:       2944 kB
Active:         852984 kB
Inactive:       880612 kB
HighTotal:     1153256 kB
HighFree:         4296 kB
LowTotal:       897260 kB
LowFree:         61732 kB
SwapTotal:     3903752 kB
SwapFree:      3897212 kB
Dirty:              12 kB
Writeback:           0 kB
AnonPages:      117020 kB
Mapped:          37984 kB
Slab:           234172 kB
SReclaimable:   218292 kB
SUnreclaim:      15880 kB
PageTables:        908 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   4929008 kB
Committed_AS:   243972 kB
VmallocTotal:   114680 kB
VmallocUsed:      6564 kB
VmallocChunk:   107768 kB
Signature · 10 lines
*********************************
****   Vladimir Stavrinov  ******
*******   vs-/[email protected]   ******
*********************************

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
#2 lore raw
In reply to a message not in the archive
Quoted 24 lines · Vladimir Stavrinov

Microsoft.Windows.Vista.Ultimate.X86.OEM guest successfully installed but after that kvm crash immediately after startup on vista boot loader and dump registers into linux console:

unhandled vm exit: 0x80000021 vcpu_id 0
rax 0000000060000010 rbx 0000000000000080 rcx 0000000000000000 rdx 0000000000000080 rsi 000000000026b238 rdi 000000000008b238 rsp 0000000000000200 rbp 0000000000001f20 r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11 0000000000000000 r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 0000000000000000 rip 000000000000009b rflags 00023002
cs b000 (002b0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ds 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
es 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ss 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
fs 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
gs 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0000 (30c00000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0) ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0) gdt 2b0000/27
idt 0/3ff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
./kvm-vista: line 38: 14430 Aborted qemu-system-x86_64 -usb -usbdevice tablet -localtime -m 768 -boot c -net nic,model=rtl8139 -net tap,ifname=tap-vs,script=no -hda /home/vs/vista.img

Quoted 9 lines

This is true for kvm-48,46 and something similar for kvm-44. This was testing with 3 different vista distros. Some time ago (don't remember the old kvm version) it was working. But now vista booted with -no-kvm option only. By the way, the w2k, w2003 and wxp are working fine (not simultaneously) on the same machine. It's seems like there are some problems with SMP and Vista in kvm

Can you also give a shot with the -no-kvm-irqchip flag? Maybe this is the source for the failures.

Quoted 83 lines

Here is host info:

Linux core 2.6.22-2-686 #1 SMP Fri Aug 31 00:24:01 UTC 2007 i686 GNU/Linux

ii  bash                                   3.1dfsg-8                  The GNU Bourne Again SHell
ii  gcc                                    4:4.2.1-6                  The GNU C compiler
ii  gcc-3.4                                3.4.6-6                    The GNU C compiler
ii  gcc-3.4-base                           3.4.6-6                    The GNU Compiler Collection (base package)
ii  gcc-4.1                                4.1.2-16                   The GNU C compiler
ii  gcc-4.1-base                           4.1.2-16                   The GNU Compiler Collection (base package)
ii  gcc-4.2                                4.2.2-3                    The GNU C compiler
ii  gcc-4.2-base                           4.2.2-3                    The GNU Compiler Collection (base package)
ii  libc6                                  2.6.1-6                    GNU C Library: Shared libraries
ii  libc6-dev                              2.6.1-6                    GNU C Library: Development Libraries and Hea

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
stepping : 6
cpu MHz : 1864.854
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3732.62
clflush size : 64

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
stepping : 6
cpu MHz : 1864.854
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3729.91
clflush size : 64

MemTotal:      2050516 kB
MemFree:         66028 kB
Buffers:        260068 kB
Cached:        1355260 kB
SwapCached:       2944 kB
Active:         852984 kB
Inactive:       880612 kB
HighTotal:     1153256 kB
HighFree:         4296 kB
LowTotal:       897260 kB
LowFree:         61732 kB
SwapTotal:     3903752 kB
SwapFree:      3897212 kB
Dirty:              12 kB
Writeback:           0 kB
AnonPages:      117020 kB
Mapped:          37984 kB
Slab:           234172 kB
SReclaimable:   218292 kB
SUnreclaim:      15880 kB
Quoted 11 lines
PageTables:        908 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   4929008 kB
Committed_AS:   243972 kB
VmallocTotal:   114680 kB
VmallocUsed:      6564 kB
VmallocChunk:   107768 kB

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

#4 lore raw
In reply to a message not in the archive
Quoted 2 lines · Dor Laor

Can you also give a shot with the -no-kvm-irqchip flag? Maybe this is the source for the failures.

Sorry, I forgot to mention this, but I have tested it earlier and got the same result: crash at boot loader and dump registers.

Some more details: at the and of installation process the instant I have logged in, Vista say: "logoff" and "shutdown" and go to reboot where crashed then as usual.

**********************************
**** Vladimir Stavrinov ******
******* vs-/[email protected] **********
***** http://inist.ru/ *****
**********************************

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

#10 lore raw
In reply to a message not in the archive
Quoted 5 lines · Vladimir Stavrinov

Microsoft.Windows.Vista.Ultimate.X86.OEM guest successfully installed but after that kvm crash immediately after startup on vista boot loader and dump registers into linux console:

Hmm. I just went through a full install/boot cycle with no problems (om kvm-48+).

Quoted 20 lines

unhandled vm exit: 0x80000021 vcpu_id 0
rax 0000000060000010 rbx 0000000000000080 rcx 0000000000000000 rdx 0000000000000080 rsi 000000000026b238 rdi 000000000008b238 rsp 0000000000000200 rbp 0000000000001f20 r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11 0000000000000000 r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 0000000000000000 rip 000000000000009b rflags 00023002
cs b000 (002b0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ds 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
es 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ss 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
fs 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
gs 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0000 (30c00000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0) ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0) gdt 2b0000/27
idt 0/3ff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
./kvm-vista: line 38: 14430 Aborted qemu-system-x86_64 -usb -usbdevice tablet -localtime -m 768 -boot c -net nic,model=rtl8139 -net tap,ifname=tap-vs,script=no -hda /home/vs/vista.img

Quoted 8 lines

This is true for kvm-48,46 and something similar for kvm-44. This was testing with 3 different vista distros. Some time ago (don't remember the old kvm version) it was working. But now vista booted with -no-kvm option only. By the way, the w2k, w2003 and wxp are working fine (not simultaneously) on the same machine. It's seems like there are some problems with SMP and Vista in kvm

It's possible a reset problem caused this. What happens if you start the guest again with the same parameters?

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
#5 lore raw
In reply to a message not in the archive

Hi!

I have tried vista with some older kvm (44,33,28) and it crash at boot loader again, but with some other symptom: no dump registers, but short error message: "Bus error".

Sorry, but are You working on this problem now? And how many chances are to make vista boot on kvm in this or next week?

Signature · 11 lines
*********************************
****   Vladimir Stavrinov  ******
*******   vs-/[email protected]   ******
*********************************


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
#7 lore raw
In reply to a message not in the archive
Quoted 7 lines · Vladimir Stavrinov

Hi!

I have tried vista with some older kvm (44,33,28) and it crash at boot loader again, but with some other symptom: no dump registers, but short error message: "Bus error".

Can you please try latest kvm (49)?
If it does not work (it should), try adding -no-kvm-irqchip Regards,
Dor.

Quoted 11 lines

Sorry, but are You working on this problem now? And how many chances are to make vista boot on kvm in this or next week?

--

*********************************
**** Vladimir Stavrinov ******
******* vs-/[email protected] ******
*********************************

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

#9 lore raw
In reply to a message not in the archive
Quoted 8 lines · Dor Laor
Quoted 7 lines · Vladimir Stavrinov

Hi!

I have tried vista with some older kvm (44,33,28) and it crash at boot loader again, but with some other symptom: no dump registers, but short error message: "Bus error".

this bus error mean something probably mean that something going wrong in the mmaped memory, try the latest kvm, and report if it work (update the qemu bios as well, and make sure you are using the new module (rmmod kvm_intel/kvm_amd rmmod kvm, insmod kernel/kvm.ko insmod kernel/kvm-intel/kvm-amd.ko)

it should work to you,

but if it doesnt try --no-kvm and report what happen,

another thing:

you are using intel or amd?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/