I installed qemu from Slackbuilds without problems. As far as I can tell I have hardware support, and the necessary kernel modules:
>>>sudo lsmod | grep kvm
kvm_intel 119658 0
kvm 311379 1 kvm_intel
>>>cat /proc/cpuinfo | grep vmx
shows vmx in flags
I follow the instructions here
qemu window starts, showing nothing. top shows qemu process running consuming less than 10% cpu.
>>>qemu-img create -f qcow2 slack.img 10G
Formatting 'slack.img', fmt=qcow2 size=10737418240 encryption=off cluster_size=65536 lazy_refcounts=off
>>>qemu-system-i386 -m 256 -hda slack.img -cdrom ../Downloads/slackware-14.1-iso/slackware-14.1-install-dvd.iso -boot d
Same thing as above, black screen.
>>>qemu-system-i386 --bios /usr/share/qemu/bios.bin -m 256 -hda slack.img -cdrom ../Downloads/slackware-14.1-iso/slackware-14.1-install-dvd.iso -boot d
Trying with another bios. This boots after several seconds but then hangs after displaying a message about No volume groups found. At this point I'm not sure if qemu hangs or if it's just really slow. So I try to explicitly enable kvm:
qemu-system-i386 --enable-kvm --bios /usr/share/qemu/bios.bin -m 256 -hda slack.img -cdrom ../Downloads/slackware-14.1-iso/slackware-14.1-install-dvd.iso -boot d
This also hangs immediately with a black screen.
Any tips on how to get qemu with kvm up and running? I would prefer to get it up and running with just qemu to start with, because trying to use libvirt gave me even more problems, and I think it's easier to troubleshoot with fewer programs involved.
The version from slackbuilds i installed is 1.6.1.
I also tried to compile the latest version from git, 1.7.50. This also installed fine but gave me the same problems.