From mboxrd@z Thu Jan 1 00:00:00 1970 From: arrao@cdac.in (Raghavendra) Date: Wed, 15 Oct 2014 15:53:43 +0530 Subject: booting kernel with kvm In-Reply-To: References: Message-ID: <543E4B2F.1030907@cdac.in> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hello, On Wednesday 15 October 2014 03:01 PM, harisha ja wrote: > > Hi All, > > I am interested in Linux kernel development. I have subscribed for > newbies mail for a while and this is my first mail to the group. My > intention and interest is to work on network( if possible mm) side of > kernel. First of all thanks for all the kernel developers and the guys > here for contribution to Linux community. > > Here is my doubt. > > 1) I downloaded the linux source code and created the config using > make defconfig and created image using make ( I did not do make > install as I want test it with kvm) > > I have windows 7 system and I have installed ubuntu using vmware. I > have installed KVM on ubuntu and I am trying to boot the kernal image > with KVM. But I am not sure what is the problem. I am stuck in this > screen. Is something I am missing here? > > The approach using kvm to put some logs and to see module > initialization is wrong?. > > The command I am using > kvm -kernel ./arch/x86/boot/bzImage -append root=/root/ Along with the kernel, you must also specify the file system image. A simple invoking of the command could be something like this : $ kvm -hda file_system.img -kernel bzImage -append "root=/dev/sda1" > > > I see the below message and then the qemu prompt does not boot and > stops by displaying below traceback. > > |Could not access KVM kernel module: No such file or directory > failed to initialize KVM: No such file or directory| > That's fine. QEMU uses something called as tcg accelerator to get the job done. > > > QEMU > 5.1654731 Stack: 5.1654731 c18ea844 claea9a0 00000000 fffffffa > d?861efc 00008001 d?8611 a35f91 5.1654731 cl8ddba8 d?861efc d7861efc > fffffffa 00000000 d7b6e000 cl8dd6 ff3dc0 5.1654731 d7b6e000 6e6b6e75 > 2d6e??61 636f 6c62 2c30286b c1002930 d78611 13c248 5.1654731 > Call Trace: > 5.1654731 l1 mount_block_root+Ox158/0x1de > 5.1654731 l1 ? do_general_protection+0x40/0x170 > 5.1654731 l1 ? SyS_mknod+0x28/0x30 > 5.1654731 l1 mount_root+Oxf3/Oxfb > 5.1654731 l1 prepare_namespace+0x123/0x167 > 5.1654731 ll ? SyS_access+0x20/0x30 > 5.1654731 l1 kernel_init_freeable+Ox1b5/0x1c2 > 5.1654731 l1 ? do_early_param+0x74/0x74 > 5.1654731 l1 kernel_init+Oxb/Oxe0 > 5.1654731 l1 ret_from_kernel_thread+0x21/0x30 > 5.1654731 l1 ? rest_init+0x60/0x60 > 5.1654731 Code: 00 00 00 00 31 ff 83 3d 8c a9 ae cl 00 74 05 e8 Oe dO > 9 c? 44 24 04 a0 a9 ae cl c7 04 24 44 a8 Be cl e8 b6 05 00 00 fb 3116 > <35>1 15 83 75 f0 01 8b 45 f0 ff 15 80 a9 ae cl 01 c6 8d be 5.1654731 > EIP: l1 panic+0x165/0x197 SS:ESP 0068:d7861eb8 5.1654731 --I > end trace a4Obaf277b417d8d 1-- This is probably because of the file system issue that I've mentioned previously. > > > > > > > Thanks > Harish > > > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies Raghavendra ------------------------------------------------------------------------------------------------------------------------------- [ C-DAC is on Social-Media too. Kindly follow us at: Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ] This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ------------------------------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141015/9c03666f/attachment-0001.html