* Internal error, emulation failure when trying to boot Win7 install
@ 2014-01-07 18:48 Guido Winkelmann
2014-01-07 20:37 ` Guido Winkelmann
2014-01-08 21:40 ` Marcelo Tosatti
0 siblings, 2 replies; 5+ messages in thread
From: Guido Winkelmann @ 2014-01-07 18:48 UTC (permalink / raw)
To: kvm
Hi,
When trying to boot a Windows 7 install from a local virtual disks, qemu stops
with the messages:
KVM internal error. Suberror: 1
emulation failure
I've started qemu with libvirt. This is the output from libvirt's logfile:
2014-01-07 18:22:10.988+0000: starting up
LC_ALL=C
PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
HOME=/ USER=root QEMU_AUDIO_DRV=spice /usr/bin/qemu-kvm -name
win7_master,process=qemu:win7_master -S -machine pc-
i440fx-1.7,accel=kvm,usb=off -m 4096 -realtime mlock=off -smp
4,sockets=4,cores=1,threads=1 -uuid 0d640aa9-a88c-164b-398c-14186445d2a8 -no-
user-config -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/win7_master.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-
shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device
ahci,id=ahci0,bus=pci.0,addr=0x7 -device virtio-serial-pci,id=virtio-
serial0,bus=pci.0,addr=0x5 -drive file=/virtual_disks/systemrescuecd-
x86-3.8.1.iso,if=none,id=drive-ide0-0-1,readonly=on,format=raw,cache=none -
device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive
file=/virtual_disks/win7_master.img,if=none,id=drive-
sata0-0-0,format=qcow2,cache=none -device ide-hd,bus=ahci0.0,drive=drive-
sata0-0-0,id=sata0-0-0,bootindex=1 -netdev tap,fd=22,id=hostnet0 -device
e1000,netdev=hostnet0,id=net0,mac=52:54:00:e1:63:d3,bus=pci.0,addr=0x3 -
chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -
chardev spicevmc,id=charchannel0,name=vdagent -device
virtserialport,bus=virtio-
serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -
device usb-tablet,id=input0 -spice port=5900,addr=127.0.0.1,disable-
ticketing,seamless-migration=on -k de -device VGA,id=video0,bus=pci.0,addr=0x2
-device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-
codec0,bus=sound0.0,cad=0 -device virtio-balloon-
pci,id=balloon0,bus=pci.0,addr=0x6
char device redirected to /dev/pts/3 (label charserial0)
((null):14946): SpiceWorker-Warning **:
red_worker.c:11477:dev_destroy_primary_surface: double destroy of primary
surface
((null):14946): SpiceWorker-Warning **: red_worker.c:9663:red_create_surface:
condition `surface->context.canvas' reached
main_channel_link: add main channel client
main_channel_handle_parsed: net test: latency 0.137000 ms, bitrate 9799043062
bps (9345.095694 Mbps)
red_dispatcher_set_cursor_peer:
inputs_connect: inputs channel client create
KVM internal error. Suberror: 1
emulation failure
EAX=00000200 EBX=0000aa55 ECX=00000007 EDX=00000080
ESI=00007bd0 EDI=00000800 EBP=000007be ESP=00007be0
EIP=00000684 EFL=00003202 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 ffffffff 00809300
CS =0000 00000000 ffffffff 00809b00
SS =0000 00000000 ffffffff 00809300
DS =0000 00000000 ffffffff 00809300
FS =0000 00000000 ffffffff 00809300
GS =0000 00000000 ffffffff 00809300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT= 000f69e0 00000037
IDT= 00000000 000003ff
CR0=00000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000
DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
Code=7c 68 01 00 68 10 00 b4 42 8a 56 00 8b f4 cd 13 9f 83 c4 10 <9e> eb 14 b8
01 02 bb 00 7c 8a 56 00 8a 76 01 8a 4e 02 8a 6e 03 cd 13 66 61 73 1c fe 4e 11
qemu: terminating on signal 15 from pid 3795
2014-01-07 18:22:15.777+0000: shutting down
This happened with qemu 1.5 and 1.7. The linux kernel in use is 3.10.25-gentoo
The host CPU looks like this in lscpu:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 26
Stepping: 5
CPU MHz: 1600.000
BogoMIPS: 5345.33
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0-7
The Windows install in question is an image that has been pulled from a
working Windows 7 install (on a physical machine).
Guido
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Internal error, emulation failure when trying to boot Win7 install
2014-01-07 18:48 Internal error, emulation failure when trying to boot Win7 install Guido Winkelmann
@ 2014-01-07 20:37 ` Guido Winkelmann
2014-01-11 11:13 ` Gleb Natapov
2014-01-08 21:40 ` Marcelo Tosatti
1 sibling, 1 reply; 5+ messages in thread
From: Guido Winkelmann @ 2014-01-07 20:37 UTC (permalink / raw)
To: kvm
Some more information:
I have upgraded to Kernel 3.12.6, and the problem is still there.
However, when starting the same machine manually with simpler command line
like
qemu-kvm -cpu Nehalem -machine accel=kvm -m 4G /virtual_disks/win7_master.img
qemu will not crash, but Windows (in the guest machine) will still fail to
boot up all the way. It bluescreens once, restarts, then manages to start some
graphical computer repair wizard which will run for a long time and then
display a message saying it could not repair the computer, offering to send
the problem report to Microsoft... It didn't show an error message that would
tell me what is actually wrong, though.
Guido
On Tuesday 07 January 2014 19:48:41 Guido Winkelmann wrote:
>Hi,
>
>When trying to boot a Windows 7 install from a local virtual disks, qemu
>stops with the messages:
>
>KVM internal error. Suberror: 1
>emulation failure
>
>I've started qemu with libvirt. This is the output from libvirt's logfile:
>
>2014-01-07 18:22:10.988+0000: starting up
>LC_ALL=C
>PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/b
>in:/usr/local/sbin HOME=/ USER=root QEMU_AUDIO_DRV=spice /usr/bin/qemu-kvm
>-name
>win7_master,process=qemu:win7_master -S -machine pc-
>i440fx-1.7,accel=kvm,usb=off -m 4096 -realtime mlock=off -smp
>4,sockets=4,cores=1,threads=1 -uuid 0d640aa9-a88c-164b-398c-14186445d2a8 -no-
>user-config -nodefaults -chardev
>socket,id=charmonitor,path=/var/lib/libvirt/qemu/win7_master.monitor,server,n
>owait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime
>-no- shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device
>ahci,id=ahci0,bus=pci.0,addr=0x7 -device virtio-serial-pci,id=virtio-
>serial0,bus=pci.0,addr=0x5 -drive file=/virtual_disks/systemrescuecd-
>x86-3.8.1.iso,if=none,id=drive-ide0-0-1,readonly=on,format=raw,cache=none -
>device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive
>file=/virtual_disks/win7_master.img,if=none,id=drive-
>sata0-0-0,format=qcow2,cache=none -device ide-hd,bus=ahci0.0,drive=drive-
>sata0-0-0,id=sata0-0-0,bootindex=1 -netdev tap,fd=22,id=hostnet0 -device
>e1000,netdev=hostnet0,id=net0,mac=52:54:00:e1:63:d3,bus=pci.0,addr=0x3 -
>chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0
>- chardev spicevmc,id=charchannel0,name=vdagent -device
>virtserialport,bus=virtio-
>serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -
>device usb-tablet,id=input0 -spice port=5900,addr=127.0.0.1,disable-
>ticketing,seamless-migration=on -k de -device
>VGA,id=video0,bus=pci.0,addr=0x2 -device
>intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-
>codec0,bus=sound0.0,cad=0 -device virtio-balloon-
>pci,id=balloon0,bus=pci.0,addr=0x6
>char device redirected to /dev/pts/3 (label charserial0)
>((null):14946): SpiceWorker-Warning **:
>red_worker.c:11477:dev_destroy_primary_surface: double destroy of primary
>surface
>((null):14946): SpiceWorker-Warning **: red_worker.c:9663:red_create_surface:
>condition `surface->context.canvas' reached
>main_channel_link: add main channel client
>main_channel_handle_parsed: net test: latency 0.137000 ms, bitrate 9799043062
>bps (9345.095694 Mbps)
>red_dispatcher_set_cursor_peer:
>inputs_connect: inputs channel client create
>KVM internal error. Suberror: 1
>emulation failure
>EAX=00000200 EBX=0000aa55 ECX=00000007 EDX=00000080
>ESI=00007bd0 EDI=00000800 EBP=000007be ESP=00007be0
>EIP=00000684 EFL=00003202 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
>ES =0000 00000000 ffffffff 00809300
>CS =0000 00000000 ffffffff 00809b00
>SS =0000 00000000 ffffffff 00809300
>DS =0000 00000000 ffffffff 00809300
>FS =0000 00000000 ffffffff 00809300
>GS =0000 00000000 ffffffff 00809300
>LDT=0000 00000000 0000ffff 00008200
>TR =0000 00000000 0000ffff 00008b00
>GDT= 000f69e0 00000037
>IDT= 00000000 000003ff
>CR0=00000010 CR2=00000000 CR3=00000000 CR4=00000000
>DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000
>DR3=0000000000000000
>DR6=00000000ffff0ff0 DR7=0000000000000400
>EFER=0000000000000000
>Code=7c 68 01 00 68 10 00 b4 42 8a 56 00 8b f4 cd 13 9f 83 c4 10 <9e> eb 14
>b8 01 02 bb 00 7c 8a 56 00 8a 76 01 8a 4e 02 8a 6e 03 cd 13 66 61 73 1c fe
>4e 11 qemu: terminating on signal 15 from pid 3795
>2014-01-07 18:22:15.777+0000: shutting down
>
>This happened with qemu 1.5 and 1.7. The linux kernel in use is
>3.10.25-gentoo The host CPU looks like this in lscpu:
>
>Architecture: x86_64
>CPU op-mode(s): 32-bit, 64-bit
>Byte Order: Little Endian
>CPU(s): 8
>On-line CPU(s) list: 0-7
>Thread(s) per core: 2
>Core(s) per socket: 4
>Socket(s): 1
>NUMA node(s): 1
>Vendor ID: GenuineIntel
>CPU family: 6
>Model: 26
>Stepping: 5
>CPU MHz: 1600.000
>BogoMIPS: 5345.33
>Virtualization: VT-x
>L1d cache: 32K
>L1i cache: 32K
>L2 cache: 256K
>L3 cache: 8192K
>NUMA node0 CPU(s): 0-7
>
>The Windows install in question is an image that has been pulled from a
>working Windows 7 install (on a physical machine).
>
> Guido
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Internal error, emulation failure when trying to boot Win7 install
2014-01-07 18:48 Internal error, emulation failure when trying to boot Win7 install Guido Winkelmann
2014-01-07 20:37 ` Guido Winkelmann
@ 2014-01-08 21:40 ` Marcelo Tosatti
2014-01-09 10:04 ` Guido Winkelmann
1 sibling, 1 reply; 5+ messages in thread
From: Marcelo Tosatti @ 2014-01-08 21:40 UTC (permalink / raw)
To: Guido Winkelmann; +Cc: kvm
On Tue, Jan 07, 2014 at 07:48:41PM +0100, Guido Winkelmann wrote:
> Hi,
>
> When trying to boot a Windows 7 install from a local virtual disks, qemu stops
> with the messages:
>
> KVM internal error. Suberror: 1
> emulation failure
Can you please enable the following tracepoints via the
# cd /sys/kernel/debug/tracing/
# echo kvm_emulate_insn kvm_exit > set_event
provided that debugfs is mounted at /sys/kernel/debug.
Then execute the problematic guest, and make the content of /sys/kernel/debug/trace
available somewhere?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Internal error, emulation failure when trying to boot Win7 install
2014-01-08 21:40 ` Marcelo Tosatti
@ 2014-01-09 10:04 ` Guido Winkelmann
0 siblings, 0 replies; 5+ messages in thread
From: Guido Winkelmann @ 2014-01-09 10:04 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: kvm
On Wednesday 08 January 2014 19:40:10 Marcelo Tosatti wrote:
>On Tue, Jan 07, 2014 at 07:48:41PM +0100, Guido Winkelmann wrote:
>> Hi,
>>
>> When trying to boot a Windows 7 install from a local virtual disks, qemu
>> stops with the messages:
>>
>> KVM internal error. Suberror: 1
>> emulation failure
>
>Can you please enable the following tracepoints via the
>
># cd /sys/kernel/debug/tracing/
># echo kvm_emulate_insn kvm_exit > set_event
>
>provided that debugfs is mounted at /sys/kernel/debug.
>
>Then execute the problematic guest, and make the content of
>/sys/kernel/debug/trace available somewhere?
Unfortunately, today I found my workplace computer has been replaced with
newer hardware, and now I cannot reproduce the problem anymore.
Guido
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-01-11 11:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-07 18:48 Internal error, emulation failure when trying to boot Win7 install Guido Winkelmann
2014-01-07 20:37 ` Guido Winkelmann
2014-01-11 11:13 ` Gleb Natapov
2014-01-08 21:40 ` Marcelo Tosatti
2014-01-09 10:04 ` Guido Winkelmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox