Running a KVM guest with > 3.5 GB of RAM

We've been running KVM for a while now, but only last week I noticed that the guests I had running with more than 3.5GB of RAM somehow didn't see more than those 3.5. While booting, the following message is displayed: 'WARNING: BIOS bug: CPU MTRRs don't cover all of memory, losing xxxMB of RAM.' along whith a stacktrace. KVM depends on the Bochs bios, which apparently doesn't support this amount of memory. Or rather didn't, because an updated bios is available in the Bochs cvs. Just checkout the bochs/bios/BIOS-bochs-latest and replace the /usr/share/kvm/bios.bin (at least that's where it is on Ubuntu). Stop and start the guests (a restart doesn't update the bios) and the amount of RAM is detected properly.

Update: The BIOS I used above seems to have a problem with the network connection. The VMs send out a DHCP request but do not accept the offer returned by the DHCP server. I solved this by using BIOS-bochs-kvm from this rpm.

Trackback URL for this post:

http://www.func.nl/trackback/95

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".