Skip to contentSkip to conversation

qemu-kvm crashes with Assertion ... failed.

DISCUSSION André Weidemann 3 participants 7 messages Mar 14, 2010 – Mar 25, 2010 KVM

lore
Share & tools
lore
#0 lore raw

Hi,
I cloned the qemu-kvm git repository today with "git clone git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git qemu-kvm-2010-03-14", ran configure and compiled it and did a "make install". Everything went fine without warnings or errors. For configure output take a look here: http://pastebin.com/BL4DYCRY

Here is my Server Hardware:
Asus P5Q Mainbaord
Intel Q9300
8GB RAM
RAID5 with mdadm consisting of 4x 1TB disks
The volume /dev/storage/Windows7test mentioned below is on this RAID5.

I ran my virtual machine with the following command:

qemu-system-x86_64 -cpu core2duo -vga cirrus -boot order=ndc -vnc 192.168.3.42:2 -k de -smp 4,cores=4 -drive file=/vmware/Windows7Test_600G.img,if=ide,index=0,cache=writeback -m 1024 -net nic,model=e1000,macaddr=DE:AD:BE:EF:12:3A -net tap,script=/usr/local/bin/qemu-ifup -monitor pty -name Windows7test,process=Windows7test -drive file=/dev/storage/Windows7test,if=ide,index=1,cache=none,aio=native

Windows7Test_600G.img is a qcow2 file and contains a Windows 7 Pro image. /dev/storage/Windows7test is formated with XFS

After starting the machine with the above command line, I booted into an Ubuntu 9.10 x86_64 Live Image via PXE and mounted /dev/sdb1 (/dev/storage/Windows7test) under /mnt. I then did "cd /mnt/" and ran "iozone -Ra -g 2G -b /tmp/iozone-aoi-linux-xls"

iozone ran some test and then kvm simply quit with the following error message:
qemu-system-x86_64: /usr/local/src/qemu-kvm-2010-03-10/hw/ide/internal.h:510: bmdma_active_if: Assertion `bmdma->unit != (uint8_t)-1' failed.

/var/log/syslog contained the folowing:

Mar 14 09:18:14 server kernel: [318080.627468] kvm: 1361: cpu0 kvm_set_msr_common: MSR_IA32_MCG_STATUS 0x0, nop
Mar 14 09:18:14 server  kernel: [318080.627473] kvm: 1361: cpu0 kvm_set_msr_common: MSR_IA32_MCG_CTL 0xffffffffffffffff, nop
Mar 14 09:18:14 server kernel: [318080.627476] kvm: 1361: cpu0 unhandled wrmsr: 0x400 data ffffffffffffffff
Mar 14 09:18:14 server kernel: [318080.627506] kvm: 1361: cpu1 kvm_set_msr_common: MSR_IA32_MCG_STATUS 0x0, nop
Mar 14 09:18:14 server  kernel: [318080.627509] kvm: 1361: cpu1 kvm_set_msr_common: MSR_IA32_MCG_CTL 0xffffffffffffffff, nop
Mar 14 09:18:14 server kernel: [318080.627511] kvm: 1361: cpu1 unhandled wrmsr: 0x400 data ffffffffffffffff
Mar 14 09:18:14 server kernel: [318080.627538] kvm: 1361: cpu2 kvm_set_msr_common: MSR_IA32_MCG_STATUS 0x0, nop
Mar 14 09:18:14 server kernel: [318080.627540] kvm: 1361: cpu2 kvm_set_msr_common: MSR_IA32_MCG_CTL 0xffffffffffffffff, nop
Mar 14 09:18:14 server kernel: [318080.627543] kvm: 1361: cpu2 unhandled wrmsr: 0x400 data ffffffffffffffff

I ws able to reproduce this error 3 times in a row.

Regards,
André

#1 lore raw
Quoted 16 lines · André Weidemann

Hi,
I cloned the qemu-kvm git repository today with "git clone
git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
qemu-kvm-2010-03-14", ran configure and compiled it and did a "make install". Everything went fine without warnings or errors. For configure output take a look here: http://pastebin.com/BL4DYCRY

Here is my Server Hardware:
Asus P5Q Mainbaord
Intel Q9300
8GB RAM
RAID5 with mdadm consisting of 4x 1TB disks
The volume /dev/storage/Windows7test mentioned below is on this RAID5.

I ran my virtual machine with the following command:

Quoted 7 lines

qemu-system-x86_64 -cpu core2duo -vga cirrus -boot order=ndc -vnc 192.168.3.42:2 -k de -smp 4,cores=4 -drive file=/vmware/Windows7Test_600G.img,if=ide,index=0,cache=writeback -m 1024 -net nic,model=e1000,macaddr=DE:AD:BE:EF:12:3A -net tap,script=/usr/local/bin/qemu-ifup -monitor pty -name Windows7test,process=Windows7test -drive file=/dev/storage/Windows7test,if=ide,index=1,cache=none,aio=native

Andre,

Can you try qemu-kvm-0.12.3 ?

Quoted 39 lines

Windows7Test_600G.img is a qcow2 file and contains a Windows 7 Pro image. /dev/storage/Windows7test is formated with XFS

After starting the machine with the above command line, I booted into an Ubuntu 9.10 x86_64 Live Image via PXE and mounted /dev/sdb1 (/dev/storage/Windows7test) under /mnt. I then did "cd /mnt/" and ran "iozone -Ra -g 2G -b /tmp/iozone-aoi-linux-xls"

iozone ran some test and then kvm simply quit with the following error message:
qemu-system-x86_64:
/usr/local/src/qemu-kvm-2010-03-10/hw/ide/internal.h:510:
bmdma_active_if: Assertion `bmdma->unit != (uint8_t)-1' failed.

/var/log/syslog contained the folowing:

Mar 14 09:18:14 server kernel: [318080.627468] kvm: 1361: cpu0
kvm_set_msr_common: MSR_IA32_MCG_STATUS 0x0, nop
Mar 14 09:18:14 server  kernel: [318080.627473] kvm: 1361: cpu0
kvm_set_msr_common: MSR_IA32_MCG_CTL 0xffffffffffffffff, nop
Mar 14 09:18:14 server kernel: [318080.627476] kvm: 1361: cpu0
unhandled wrmsr: 0x400 data ffffffffffffffff
Mar 14 09:18:14 server kernel: [318080.627506] kvm: 1361: cpu1
kvm_set_msr_common: MSR_IA32_MCG_STATUS 0x0, nop
Mar 14 09:18:14 server  kernel: [318080.627509] kvm: 1361: cpu1
kvm_set_msr_common: MSR_IA32_MCG_CTL 0xffffffffffffffff, nop
Mar 14 09:18:14 server kernel: [318080.627511] kvm: 1361: cpu1
unhandled wrmsr: 0x400 data ffffffffffffffff
Mar 14 09:18:14 server kernel: [318080.627538] kvm: 1361: cpu2
kvm_set_msr_common: MSR_IA32_MCG_STATUS 0x0, nop
Mar 14 09:18:14 server kernel: [318080.627540] kvm: 1361: cpu2
kvm_set_msr_common: MSR_IA32_MCG_CTL 0xffffffffffffffff, nop
Mar 14 09:18:14 server kernel: [318080.627543] kvm: 1361: cpu2

unhandled wrmsr: 0x400 data ffffffffffffffff

I ws able to reproduce this error 3 times in a row.

Regards,
André

#2 lore raw
Quoted 25 lines · Marcelo Tosatti
Quoted 16 lines · André Weidemann

Hi,
I cloned the qemu-kvm git repository today with "git clone
git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
qemu-kvm-2010-03-14", ran configure and compiled it and did a "make install". Everything went fine without warnings or errors. For configure output take a look here: http://pastebin.com/BL4DYCRY

Here is my Server Hardware:
Asus P5Q Mainbaord
Intel Q9300
8GB RAM
RAID5 with mdadm consisting of 4x 1TB disks
The volume /dev/storage/Windows7test mentioned below is on this RAID5.

I ran my virtual machine with the following command:

Quoted 7 lines

qemu-system-x86_64 -cpu core2duo -vga cirrus -boot order=ndc -vnc 192.168.3.42:2 -k de -smp 4,cores=4 -drive file=/vmware/Windows7Test_600G.img,if=ide,index=0,cache=writeback -m 1024 -net nic,model=e1000,macaddr=DE:AD:BE:EF:12:3A -net tap,script=/usr/local/bin/qemu-ifup -monitor pty -name Windows7test,process=Windows7test -drive file=/dev/storage/Windows7test,if=ide,index=1,cache=none,aio=native

Quoted 3 lines

Andre,

Can you try qemu-kvm-0.12.3 ?

I did the following:
git clone git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git qemu-kvm-2010-03-17 cd qemu-kvm-2010-03-17
git checkout -b test qemu-kvm-0.12.3
./configure
make -j6 && make install

I started the VM again exactly as I did the last time and it crashed again with the same error message. "qemu-system-x86_64: /usr/local/src/qemu-kvm-2010-03-17/hw/ide/internal.h:507: bmdma_active_if: Assertion `bmdma->unit != (uint8_t)-1' failed."

André

#3 lore raw
Quoted 20 lines · André Weidemann
Quoted 11 lines
Quoted 7 lines

qemu-system-x86_64 -cpu core2duo -vga cirrus -boot order=ndc -vnc 192.168.3.42:2 -k de -smp 4,cores=4 -drive file=/vmware/Windows7Test_600G.img,if=ide,index=0,cache=writeback -m 1024 -net nic,model=e1000,macaddr=DE:AD:BE:EF:12:3A -net tap,script=/usr/local/bin/qemu-ifup -monitor pty -name Windows7test,process=Windows7test -drive file=/dev/storage/Windows7test,if=ide,index=1,cache=none,aio=native

Andre,

Can you try qemu-kvm-0.12.3 ?

I did the following:
git clone git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git qemu-kvm-2010-03-17 cd qemu-kvm-2010-03-17
git checkout -b test qemu-kvm-0.12.3
./configure
make -j6 && make install

Quoted 3 lines

I started the VM again exactly as I did the last time and it crashed again with the same error message. "qemu-system-x86_64: /usr/local/src/qemu-kvm-2010-03-17/hw/ide/internal.h:507: bmdma_active_if: Assertion `bmdma->unit != (uint8_t)-1' failed."

Does this happen with a guest installed on kvm, or just with the guest that (guessing from the name) was imported from vmware?

Signature · 1 line
error compiling committee.c: too many arguments to function
#4 lore raw

Hi,

Quoted 29 lines · Avi Kivity
Quoted 21 lines · André Weidemann
Quoted 11 lines
Quoted 7 lines

qemu-system-x86_64 -cpu core2duo -vga cirrus -boot order=ndc -vnc 192.168.3.42:2 -k de -smp 4,cores=4 -drive file=/vmware/Windows7Test_600G.img,if=ide,index=0,cache=writeback -m 1024 -net nic,model=e1000,macaddr=DE:AD:BE:EF:12:3A -net tap,script=/usr/local/bin/qemu-ifup -monitor pty -name Windows7test,process=Windows7test -drive file=/dev/storage/Windows7test,if=ide,index=1,cache=none,aio=native

Andre,

Can you try qemu-kvm-0.12.3 ?

I did the following:
git clone git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
qemu-kvm-2010-03-17
cd qemu-kvm-2010-03-17
git checkout -b test qemu-kvm-0.12.3
./configure
make -j6 && make install

Quoted 6 lines

I started the VM again exactly as I did the last time and it crashed again with the same error message.
"qemu-system-x86_64:
/usr/local/src/qemu-kvm-2010-03-17/hw/ide/internal.h:507:
bmdma_active_if: Assertion `bmdma->unit != (uint8_t)-1' failed."

Quoted 2 lines

Does this happen with a guest installed on kvm, or just with the guest that (guessing from the name) was imported from vmware?

I booted the VM via PXE into an Ubuntu Live CD image. I only added the Windows disk image, so I could copy the resulting Excel file (from iozone) to this disk. The Windows 7 on this disk was installed under kvm 0.12.3.

Regards
André

#5 lore raw
Quoted 6 lines · André Weidemann
Quoted 2 lines

Does this happen with a guest installed on kvm, or just with the guest that (guessing from the name) was imported from vmware?

I booted the VM via PXE into an Ubuntu Live CD image. I only added the Windows disk image, so I could copy the resulting Excel file (from iozone) to this disk. The Windows 7 on this disk was installed under kvm 0.12.3.

What version of Ubuntu? Can you post a way to reproduce this reliably (how you created the disk etc.)

Signature · 1 line
error compiling committee.c: too many arguments to function
#6 lore raw

Hi,

Quoted 5 lines · Avi Kivity
Quoted 4 lines · André Weidemann
Quoted 2 lines

Does this happen with a guest installed on kvm, or just with the guest that (guessing from the name) was imported from vmware?

Quoted 9 lines
Quoted 5 lines

I booted the VM via PXE into an Ubuntu Live CD image. I only added the Windows disk image, so I could copy the resulting Excel file (from iozone) to this disk. The Windows 7 on this disk was installed under kvm 0.12.3.

What version of Ubuntu? Can you post a way to reproduce this reliably (how you created the disk etc.)

In that particular case I ran Ubuntu Desktop 9.10 x86_64 inside the VM. I set my server up so I can boot any machine on the network via PXE. I used the live CD that you can download here: http://141.30.3.84/ubuntu-releases/9.10/ubuntu-9.10-desktop-amd64.iso

Since this setup is a very special I booted the VM from the CD-ISO and installed Ubuntu onto an LV(100GB). This way I think, it is easier to reproduce.

At first I installed Ubuntu on an LV which resides on a VG that is on a RAID5 created via mdadm (4x 1TB HDDs).

Here is the command line, I used to start the VM:
qemu-system-x86_64 -cpu core2duo -vga cirrus -boot order=d -vnc 192.168.3.42:2 -k de -smp 4,cores=4 -m 1024 -net nic,model=e1000,macaddr=DE:AD:BE:EF:12:3A -net tap,script=/usr/local/bin/qemu-ifup -monitor pty -name Ubuntu9.10test,process=Ubuntu9.10test -cdrom /tftpboot/ubuntu-9.10-desktop-amd64.iso -drive file=/dev/storage/UbuntuTest,if=ide,index=1,cache=none,aio=native

I booted into the Ubuntu Live CD and chose to install Ubuntu from the desktop. I had the partitioner install Ubuntu onto the entire disk. I did not setup any partitions manually. During the install process, the VM crashed again. The VM did not always crash at same stage of the installation process. But it nevertheless did, every time I tried to install it and I tried 3 times in a row.

I then changes index=1 to index=0 and ran another 3 tests. Ubuntu crashed 2 out of 3 times during installation.

To rule out the problem to be related to the LV on the RAID5, I then installed Ubuntu on a physical drive(250GB SATA). Therefore I changes the command line to this:
qemu-system-x86_64 -cpu core2duo -vga cirrus -boot order=d -vnc 192.168.3.42:2 -k de -smp 4,cores=4 -m 1024 -net nic,model=e1000,macaddr=DE:AD:BE:EF:12:3A -net tap,script=/usr/local/bin/qemu-ifup -monitor pty -name Ubuntu9.10test,process=Ubuntu9.10test -cdrom /tftpboot/ubuntu-9.10-desktop-amd64.iso -drive file=/dev/sdg,if=ide,index=0,cache=none,aio=native I gave it another three tries. 2 out of 3 installations made the VM crash at around 95% and 43%.

So the crash does not seem to be related to running iozone inside the VM, but to disk access in general.

On the Server I am running Ubuntu Server 9.10 x86_64 with kernel 2.6.31-20-server. The server is equipped with an Intel Q9300 CPU and 8GB RAM. If you need more information, let me know.

André