kvm-qemu, libvirt-bin: kernel panic if using memory balloon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
Set up an ubuntu-server, install kvm-qemu, libvirt-bin and necessary tools.
Create various virtual machines running various Linux distributions. Make sure all VM together allocate more memory than the real host has, if they use all memory given to them. Set the minimal given memory to a value if all VM allocate memory the hosts memory isn't exceeded.
Make sure there is enough swap defined!
For example:
Host 8192MiB; define 14 VM minimal memory 512MiB, maximal memory 2048MiB.
If all hosts take minimal memory 7168MiB are allocated, leaving 1024MiB for the host.
But all VM are allowed to allocate as much as 28672MiB --- far more than the host can provide.
Start all available VM at once.
At startup all seems fine, until the host begins to swap. It's going to slow down everything, but nothing else happens. After a while most of the VM receive a kernel panic, because of out of memory conditions.
Second test:
Host 8192MiB; define 14 VM minimal memory 2048MiB, maximal memory 2048MiB.
Start all VM successive. The first three are no problem. The forth forces the host to swap. The host starts to slow down significantly. Start all remaining VM. The host will be setremely slow, VMs may need an hour or so to boot, but no kernel panic.
As soon as memory balooning is enabled again: VMs receive kernel panik.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: libvirt-bin 0.9.2-4ubuntu15.1
Uname: Linux 3.1.8 x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Fri Jan 13 16:43:29 2012
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in libvirt (Ubuntu): | |
status: | Incomplete → New |
Thanks for taking the time to report this bug.
By 'make sure there is enough swap defined', do you mean that host memory + host swap is greater than than the sum of memory used by all guests?