Thanks for helping me.
I tried version 2.7 and got the same result.

Finally, I found the vm won't get blue screen in follows case:
1. Remove   <cpu mode="host-passthrough"/> from libvirt
2. Use SandyBridge:  (my cpu is Nehalem)
<cpu mode='custom' match='exact'>
    <model fallback='allow'>SandyBridge</model>
    <feature policy='force' name='aes'/>
    <feature policy='force' name='pclmuldq'/>
    <feature policy='force' name='x2apic'/>
    <feature policy='force' name='tsc-deadline'/>
    <feature policy='force' name='xsave'/>
    <feature policy='force' name='avx'/>
    <feature policy='force' name='rdtscp'/>
  </cpu>

But in these cases, my application will crash with error "safengine, an
internal error has occurred" after running server hours.(may be several
minutes, may be 24 hours).
It ran well in physical machine for a week.

By the way, I got blue screen again when I used Nehalem model and double
clicked my exe file:

<cpu mode='custom' match='exact'>
    <model fallback='allow'>Nehalem</model>
</cpu>


And I have two questions:
1. How can I run my application without error ?
2. Why vm show the blue screen error when I double click my exe file with
Nehalem architecture, but is fine with SandyBridge architecture? My machine
is Nehalem architecture.

Thanks,
John



2016-10-10 14:45 GMT+08:00 Steffen Weißgerber <weissgerb...@ksnb.de>:

> Hi,
>
> did you ever thought about using an actual version of qemu?
>
> Version 2.7 is stable at the moment, I think, and should handle
> Windows VM much better than older version.
>
> Regards
>
> Steffen
>
>
>
>
> >>> "John Y." <wjseven1...@gmail.com> schrieb am Sonntag, 9. Oktober 2016
> um
> 03:21:
> > 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
> >
> > <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0";
> type="kvm">
> >
> >   <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
>
>
> --
> Klinik-Service Neubrandenburg GmbH
> Allendestr. 30, 17036 Neubrandenburg
> Amtsgericht Neubrandenburg, HRB 2457
> Geschaeftsfuehrerin: Gudrun Kappich
>
>

Reply via email to