I figured it out myself. Some time passed, but as I recall, the solution was to provide an initial ramdisk. This is how I worked with hardware acceleration.
Compilation
make defconfig CONFIG_EXT4_FS=y CONFIG_IA32_EMULATION=y CONFIG_VIRTIO_PCI=y (Virtualization -> PCI driver for virtio devices) CONFIG_VIRTIO_BALLOON=y (Virtualization -> Virtio balloon driver) CONFIG_VIRTIO_BLK=y (Device Drivers -> Block -> Virtio block driver) CONFIG_VIRTIO_NET=y (Device Drivers -> Network device support -> Virtio network driver) CONFIG_VIRTIO=y (automatically selected) CONFIG_VIRTIO_RING=y (automatically selected)
---> see http://www.linux-kvm.org/page/Virtio
Include paravirt in config
Disable NMI watchdog in HOST to use performance counters in GUEST. You can ignore it.
cat /proc/sys/kernel/nmi_watchdog
---> see http://kvm.et.redhat.com/page/Guest_PMU
Start at Qemu
sudo qemu-system-x86_64 -m 1024M -hda /var/lib/libvirt/images/DEbian.img -enable-kvm -initrd /home/username/compiled_kernel/initrd.img-3.2.46 -kernel /home/username/compiled_kernel/bzImage -append "root=/dev/sda1 console=ttyS0" -nographic -redir tcp:2222::22 -cpu host -smp cores=2
Start at KVM
Kernal: / home / username / compiled_kernel / bzImage
Initrd path: /home/username/compiled_kernel/initrd.img-3.2.46
Kernel Arguments: root = / dev / sda1
Hope this helps if someone has the same problems.
source share