Can some one tell how install openwrt on mikroitk KVM step by step???. I downloaded images from
here: http://downloads.openwrt.org/barrier_breaker/14.07/x86/kvm_guest/
Are these images correct? which image I should use?
When I create new kvm? what are kernel, initrd, kernel cmdline???
The problem is that you unfortunately do not understand some basic concepts. You have multiple things wrong, not just one thing wrong.
Your disk image file is compressed with gzip (.gz). Nowhere in the RouterOS KVM manual does it say that KVM supports that. I strongly suspect it does not. Don’t use a compressed image file.
Repeating the disk image file name as the boot kernel is nonsense. If you are going to populate that field, it needs to point to an actual kernel. With Xen that field was required for non-RouterOS guests and had to point to a kernel that was outside of the disk image, but I think with KVM the referenced path points to a file inside of the disk image (I am not 100% sure since I have not tried it myself; if I am wrong and it works like Xen did, you may need to extract the kernel file and the initrd file (if present) from the disk image and upload them to the router separately).
All /dev device node names are case-sensitive. First serial interface on Linux is ttyS0, not ttys0. Also, the virtual console feature will not work if your OpenWRT kernel does not have serial console support compiled into it, since KVM emulates a serial port to the guest when you use that feature. If you do not understand what this means or how to do this, then it may be easier for you to use VNC instead of the emulated serial console.
I would suggest that you play around with KVM and Linux separately from RouterOS first so that you can learn about the fundamentals, and then apply what you have learned to KVM on RouterOS.
I just tried this out for myself and it works perfectly fine. You didn’t bother to try my earlier suggestion, which was to connect to the console using VNC. If you had done so, you would have seen that it was crashing with this error on bootup:
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I then specified kernel-cmdline=“root=/dev/sda” and it booted up without a problem.
Anyway, if you use the “combined” image instead of the “rootfs” image, it already contains the kernel inside of it (so you don’t need to upload it separately) as well as a GRUB bootloader that supplies all of the necessary kernel command-line options for you (so you don’t need to configure anything for kernel-cmdline). Literally all you do is uncompress it, upload it, and then set disk-images=hda:openwrt-x86-kvm_guest-combined-ext4.img and it “just works”.
[ 0.405116] VFS: Cannot open root device "sda" or unknown-block(0,0): error -6
[ 0.406402] Please append a correct "root=" boot option; here are the available partitions:
[ 0.407889] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 0.409358] Kernel Offset: 0x0 from 0xc1000000 (relocation range: 0xc0000000-0xc87effff)
[ 0.410012] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 132.804790] random: nonblocking pool is initialized