[libvirt] libvirt and "kvm -cpu=qemu32" problem

Scaldov M.V. scaldov at yandex.ru
Fri Aug 28 08:30:14 UTC 2009


Problem is that the images of windows 2003 server, windows 2000 and
some other do not start and go to BSOD due to processor mismatch if
they were created under either qemu or vmware, or from
bare-metal installed OS.

By default libvirt starts kvm with "-cpu=qemu32" option instead of, for
example, "-cpu=pentium3".

There is patch for libvirt-0.6.5 to avoid this problem.
Now libvirt takes into account <cpumodel> node from .xml domain config,
which overrides libvirt's default -cpu option for kvm.

I think, this patch is vital, because of it helps to avoid a waste of
time with reinstalling and reconfiguring windows server images.

<domain type='kvm'>
  <name>w2k3s</name>
  <uuid>e2725d10-7ada-4f71-eea7-fa6cc1a541ee</uuid>
  <memory>262144</memory>
  <currentMemory>262144</currentMemory>
  <vcpu>1</vcpu>
  <cpumodel>pentium3</cpumodel>			<------
  <os>
    <type arch='i686'>hvm</type>
    <boot dev='hd'/>
  </os>

Sorry for not patching GIT-version, GIT is hard to compile in a small
time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpumodel.patch
Type: text/x-patch
Size: 1552 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090828/65e62e77/attachment-0001.bin>


More information about the libvir-list mailing list