Ubuntu 14.04 + QEmu 2.0 + KSM = 1, makes Windows 2008 R2 guests to crash (BSOD)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Guys,
I'm trying to run Windows 2008 as a QEmu guest on my Ubuntu 14.04 but, after lots of tests, I figured out that it doesn't work, QEmu makes Windows 2008 to crash, and it is not a Windows fault, I'm pretty sure that it is a QEmu bug.
Lab environment (5 servers):
3 physical servers: Dell R610
2 physycal servers: IBM x3650
* Where Windows crash (5 servers tested) ?
Ubuntu 14.04 + QEmu 2.0 + VirtIO 0.1-81 = Windows 2008 crash every hour
- Installed with "apt-get install ubuntu-
* Where Windows do not crash (5 servers tested) ?
Ubuntu 14.04 + Xen 4.4 + gplpv_Vista2008
- Installed with "apt-get install xen-system-amd64".
So, after removing QEmu from my environment, and using Xen instead, all Windows guests are now running without any crash.
What kind of information, can I provide for you guys, to deep debug this QEmu problem ?
Plus, it is interesting to note that a lot of times, all Windows guests (on top of QEmu / KVM) crashes at the exactly the same time! So, it can not be a problem within each Windows guest, but at the Hypervisor itself! Something happen there, that affects almost all Windows guests simultaneously.
Also, it worth to mention that this problem is probably affecting clouds based on OpenStack IceHouse, on top of Ubuntu + QEmu 2.0...
Screenshots:
http://
http://
NOTE: I'm using KSM (Kernel Samepage Merging) with QEmu, to save RAM. It seems that when with Xen (+QEmu / HVM), KSM is not used :'( , but it is enabled ( 1 > /sys/kernel/
Also, I did not run tests on this environment with Ubuntu 12.04.4 (or 12.04.4 with Ubuntu Cloud Archives, to get newer versions of QEmu (but not 2.0) for old LTS).
CURIOSITY: On older hardware, like Dell R1950, and at my old Intel Desktop Core i7, I'm running Windows 2008 and 7, on Ubuntu 14.04 with QEmu 2.0 without any crash... I really like to figure out why QEmu is crashing Windows guests on Dell R610 and on IBM x3650...
Attaching the VM's configuration files on next posts...
Best,
Thiago
---
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Jul 15 08:32 seq
crw-rw---- 1 root audio 116, 33 Jul 15 08:32 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
DistroRelease: Ubuntu 14.04
InstallationDate: Installed on 2014-06-23 (22 days ago)
InstallationMedia: Ubuntu-Server 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
IwConfig: Error: [Errno 2] No such file or directory
MachineType: Dell Inc. PowerEdge R610
Package: qemu
PciMultimedia:
ProcFB:
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.127.4
RfKill: Error: [Errno 2] No such file or directory
Tags: trusty
Uname: Linux 3.13.0-30-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
_MarkForUpload: True
dmi.bios.date: 07/23/2013
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 6.4.0
dmi.board.name: 0DFXXD
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 23
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: PowerEdge R610
dmi.sys.vendor: Dell Inc.
tags: | added: 2008 crash qemu windows |
tags: | added: bsod |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- QEmu makes Windows 2008 guests to crash (BSOD) + QEmu 2.0 makes Windows 2008 guests to crash (BSOD) |
description: | updated |
affects: | qemu → qemu (Ubuntu) |
tags: |
added: latest-bios-6.4.0 removed: 2008 bsod crash qemu windows |
tags: | added: ksm-numa-guest-freeze |
Guys!
I can confirm that, after disabling KSM, all "guest problems" disappeared!! All Windows 2008 R2 guests are now very stable under QEmu 2.0 but, KSM is disabled.
* Windows 2008 R2 guests running for about 6 hours without any crash *
Workaround - disabling KSM:
--- qemu-kvm
root@hyper-kvm-1:~# cat /etc/default/
KSM_ENABLED=0
SLEEP_MILLISECS=200
VHOST_NET_ENABLED=1
KVM_HUGEPAGES=0
---
--- mm/ksm/ run
root@hyper-kvm-1:~# cat /sys/kernel/
0
---
But, I'm wasting a lot RAM memory, since my guests are clones of each other, I really need QEmu with KSM... :-(
Is there any way to re-enable KSM while preserving system stability? Maybe updating to mainline Kernel? New QEmu version!? Backports?!
-
NOTE:
Do you guys thinks that this problem might be related to the following BUG:
QEMU Windows guest unstable after random amount of time: /bugs.launchpad .net/ubuntu/ +source/ linux/+ bug/1322441
https:/
???
-
Also, Windows 7, when with KSM enabled, crashes during the installation, every time. After disabling KSM, I was able to install and use Windows 7 without any crash, and with SPICE! So, maybe, with Windows 7 ISO CD in hands, this problem might be easy to reproduce, while with Windows 2008 R2, it randomly crashes within ~2 hours...
Cheers!
Thiago