Re: qemu-kvm crashes with Assertion ... failed.

2010-03-25 Thread André Weidemann

Hi,

On 24.03.2010 17:23, Avi Kivity wrote:


On 03/24/2010 06:20 PM, André Weidemann wrote:

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.)




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é
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: qemu-kvm crashes with Assertion ... failed.

2010-03-24 Thread Avi Kivity

On 03/17/2010 11:14 PM, André Weidemann wrote:

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

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?


--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: qemu-kvm crashes with Assertion ... failed.

2010-03-24 Thread André Weidemann

Hi,
On 24.03.2010 13:17, Avi Kivity wrote:

On 03/17/2010 11:14 PM, André Weidemann wrote:

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

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?


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é
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: qemu-kvm crashes with Assertion ... failed.

2010-03-24 Thread Avi Kivity

On 03/24/2010 06:20 PM, André Weidemann wrote:

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.)


--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: qemu-kvm crashes with Assertion ... failed.

2010-03-17 Thread Marcelo Tosatti
On Sun, Mar 14, 2010 at 09:57:52AM +0100, André Weidemann wrote:
 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

Andre,

Can you try qemu-kvm-0.12.3 ?

 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 0x, nop
 Mar 14 09:18:14 server kernel: [318080.627476] kvm: 1361: cpu0
 unhandled wrmsr: 0x400 data 
 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 0x, nop
 Mar 14 09:18:14 server kernel: [318080.627511] kvm: 1361: cpu1
 unhandled wrmsr: 0x400 data 
 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 0x, nop
 Mar 14 09:18:14 server kernel: [318080.627543] kvm: 1361: cpu2
 unhandled wrmsr: 0x400 data 
 
 
 I ws able to reproduce this error 3 times in a row.
 
 Regards,
  André
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: qemu-kvm crashes with Assertion ... failed.

2010-03-17 Thread André Weidemann

On 17.03.2010 19:22, Marcelo Tosatti wrote:

On Sun, Mar 14, 2010 at 09:57:52AM +0100, André Weidemann wrote:

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


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é
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


qemu-kvm crashes with Assertion ... failed.

2010-03-14 Thread 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:

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 0x, nop
Mar 14 09:18:14 server kernel: [318080.627476] kvm: 1361: cpu0 unhandled 
wrmsr: 0x400 data 
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 0x, nop
Mar 14 09:18:14 server kernel: [318080.627511] kvm: 1361: cpu1 unhandled 
wrmsr: 0x400 data 
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 0x, nop
Mar 14 09:18:14 server kernel: [318080.627543] kvm: 1361: cpu2 unhandled 
wrmsr: 0x400 data 



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

Regards,
 André
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html