FreeBSD amd64 randomly reboots under high load (KVM)

Andrew McDonnell bugs at andrewmcdonnell.net
Mon Nov 17 20:50:34 UTC 2014


Hi Matthew,

I actually managed to fix it an hour after posting by specifying '-cpu host' 
to kvm,

I tried this after reading 
http://lists.freebsd.org/pipermail/freebsd-amd64/2014-January/015790.html

and discovering the message "KVM: Guest triggered AMD Erratum 383" in dmesg

So it seems there is some bug with amd64 host and the qemu virtual CPU

cheers,
Andrew



On 18/11/14 04:32, Mateusz Matuszkowiak wrote:
> Hi Andrew.
> What is your hypervisor's hardware spec, meaning is there AMD cpu, perhaps Ipteron? Because in my case, after switching HW (to intel based), the issue seems is gone. The guest is working stable now.
> Regards,
> Matthew
>
> the truth is negotiable
>
> On 17/11/14 11:55:24,
> Andrew McDonnell <bugs at andrewmcdonnell.net> wrote:
>> Hi Matthew
>>
>>> Hello,
>>>
>>> I'm experiencing strange behaviour with any FreeBSD 64bit running under KVM
>>> Qemu. When machine is under high load for example compiling from ports,
>>> after a random time it will get rebooted with no piece of information in
>>> logs or what so ever. In this case I'm unable to get any kernel
>>> panic/traces (kdb is enabled). On the KVM side also there are no error
>>> logs.
>>>
>>> This is confirmed on FreeBSD amd64 8.4; 9.0; 9.1; 9.2-RC and 10-Current.
>>>
>>> Anyone experienced such behaviour on 64bits or mayby have a clue how can I
>>> debug this?
>>
>> This exactly is happening to me now.
>>
>> My host is a Debian Wheezy AMD64 running Qemu kvm 2.0.0+dfsg-4~bpo70+1
>>
>> My guest is FreeBSD 10 FreeBSD 10.0-RELEASE (GENERIC) #0 r260789error about
>>
>> And part way through make world via freebsd-wifi-build/build/bin/build I am
>> experiencing spontaneous reboots.
>>
>> My kvm command line is:
>>
>> kvm --enable-kvm -localtime -m 1536 -smp 2 -k en-us -hda freebsd.qcow2 \
>>    -soundhw sb16 -net nic -net user,hostfwd=tcp::62222-:22 -monitor stdio
>>
>> I built this VM and a build of world kernel install etc. completed without
>> problems yesterday.
>>
>> But today when I repeated after a clean I am experiencing the problem.
>>
>> I am wondering whether having accidentally killed the guest corrupted to disk
>> somehow, but the problem keeps happening even after running fsck on /
>>
>>>
>>> With kind regards,
>>> Matthew
>>
>> HTH,
>> Andrew
>>
>> --
>> http://blog.oldcomputerjunk.net
>> https://au.linkedin.com/in/amcdonnell
>> https://github.com/andymc73
>> Twitter: @pastcompute
>> GPG: http://www.andrewmcdonnell.net/gpg.html
>>


More information about the freebsd-bugs mailing list