View previous topic :: View next topic |
Author |
Message |
lefta n00b
Joined: 29 Apr 2011 Posts: 25
|
Posted: Wed May 13, 2015 5:35 pm Post subject: [Solved] [Qemu/KVM] Windows guests freeze |
|
|
Hello everybody,
Some months ago, I managed to make a virtual machine with Qemu/KVM. Everything went fine.
One or two months ago, I started my VM, but Windows 7 froze right after openning a session. I couldn't find a way to get past this freeze.
On freeze, Qemu outputs "main-loop: WARNING: I/O thread spun for 1000 iterations".
Waiting past the loop is not an option, as Windows crashes complaining for missed clock interrupts.
However, the installation CD does not crash, but freezes every few seconds.
I stripped down the command line to:
Code: | qemu-system-x86_64 \
-m 1G \
-vga none \
-boot d \
-drive file=/home/ced/Documents/iso/windows7.iso,id=virtdrv,if=none,format=raw -device ide-cd,bus=ide.1,drive=virtdrv \
-enable-kvm \
-cpu host -smp 1,sockets=1,cores=1,threads=1 |
dmesg:
Code: | [ 1684.510717] kvm: zapping shadow pages for mmio generation wraparound |
Code: | % emerge -pv qemu
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] app-emulation/qemu-2.3.0::gentoo USE="aio alsa bluetooth caps curl fdt jpeg ncurses nls opengl pin-upstream-blobs png python seccomp threads usb uuid vhost-net vnc -accessibility -debug -filecaps -glusterfs -gtk -gtk2 -infiniband -iscsi -lzo -nfs -numa -pulseaudio -rbd -sasl -sdl (-selinux) -smartcard -snappy -spice -ssh -static -static-softmmu -static-user -systemtap -tci {-test} -tls -usbredir -vde -virtfs -xattr -xen -xfs" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="x86_64 -aarch64 -alpha -arm -cris -i386 -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -moxie -or32 -ppc -ppc64 -ppcemb -s390x -sh4 -sh4eb -sparc -sparc64 -unicore32 -xtensa -xtensaeb" QEMU_USER_TARGETS="-aarch64 -alpha -arm -armeb -cris -i386 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -or32 -ppc -ppc64 -ppc64abi32 -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -unicore32 -x86_64" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB |
Before this problem, I updated my system. As I don't update it so often, I had about 200 updates (1/3 of my system).
Google did not give any usefull result.
Hints :
- SystemRescueCD (x86) and Gentoo live CD (amd64) do not have the problem.
- Windows 7 installation CD (x86 & amd64) freezes.
- Windows 8.1 installation CD (amd64) freezes.
- Windows 7 installation CD (x86) without KVM freezes even faster.
- Windows 7 installation CD (amd64) does not freeze on a friend's arch linux box.
- All 2.x QEmu versions in portage tree suffer from the same problem.
- Seabios 1.7.5 and 1.7.4 don't work.
- OVMF uefi don't work.
- Linux kernels from 3.18.2 to latest (4.0.3) have the problem too.
My guesses :
- It is not KVM related (obviously).
- KVM seems to delay the freeze (why?).
- It seems to be configuration related (see EDIT 2).
So the question is : what can make Windows freeze but not Linux?
EDIT : I tested on another computer, with totally different specs, I get the exact same behavior.
So it is not hardware related, it is either a bug or a misconfiguration. It is driving me mad
EDIT 2 : A friend tested on his arch linux box, with the exact same iso and the exact same command line. Now I am sure it is a misconfiguration, but I still have to find where...
Last edited by lefta on Sun May 31, 2015 5:00 pm; edited 1 time in total |
|
Back to top |
|
|
lefta n00b
Joined: 29 Apr 2011 Posts: 25
|
Posted: Sun May 31, 2015 5:00 pm Post subject: |
|
|
After one month testing, configuring and downgrading everything I could think of, I finally found the culprit : clang. Building qemu with gcc solved the problem. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|