I have two hosts.
Host A:
Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
2CPUS
10 cores and 2 thread per cpu.
Host B:
Intel(R) Xeon(R) CPU L5520 @ 2.27GHz
2CPUS
4 cores and 2 thread per cpu.
In host B, I run a windows 2012 vm , double click a exe file inside vm and I got a blue screen error.
error code : KMODE_EXCEPTION_NOT_HANDLED
I use the same image to create a vm in host A, I can open the exe file inside vm and everything is ok.
I had try:
1. use "<cpu mode="host-model"/>" instead of "<cpu mode="host-passthrough"/> "
2. use qemu2.5 instead of /usr/libexec/qemu-kvm(1.5.3)
Any idea?
Host :
Linux hostA 4.2.0-1.el7.elrepo.x86_64
#virsh version
Compiled against library: libvirt 1.2.8
Using library: libvirt 1.2.8
Using API: QEMU 1.2.8
Running hypervisor: QEMU 1.5.3
#cat libvirl.xml
<name>test</name>
<description>test</description>
<os>
<type>hvm</type>
<boot dev="hd"/>
</os>
<features>
<acpi/>
</features>
<clock offset="localtime"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<vcpu current="2">2</vcpu>
<cpu mode="host-passthrough"/>
<memory>2097152</memory>
<currentMemory>2097152</currentMemory>
<devices>
<emulator/>
<disk device="disk" type="file">
<driver name="qemu" type="qcow2" cache="none"/>
<source file="/home/test.qcow2"/>
<target bus="virtio" dev="vda"/>
</disk>
<disk type="file" device="cdrom">
<source dev=""/>
<target dev="hdc" bus="ide"/>
</disk>
<serial type="pty">
<source path="/dev/pts/1"/>
<target port="0"/>
</serial>
<input type="tablet" bus="usb"/>
<input type="mouse" bus="ps2"/>
<graphics type="vnc" port="-1" autoport="yes" keymap="en-us" listen="0.0.0.0"/>
<channel type="unix">
<source mode="bind" path="/var/lib/libvirt/qemu/test.org.qemu.guest_agent.0"/>
<target type="virtio" name="org.qemu.guest_agent.0"/>
</channel>
</devices>
<qemu:commandline></qemu:commandline>
</domain>
# qemu-img info /home/test.qcow2
image: /home/test.qcow2
file format: qcow2
virtual size: 50G (53687091200 bytes)
disk size: 0
cluster_size: 65536
backing file: /home/windows2012.raw
Format specific information:
compat: 1.1
lazy refcounts: false
Thanks,
John