<div dir="ltr">Hi Paul,<div><br></div><div>Thanks for your reply. Please see inline.</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 15, 2014 at 3:47 PM, Paul Bolle <span dir="ltr"><<a href="mailto:pebolle@tiscali.nl" target="_blank">pebolle@tiscali.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 2014-10-15 at 15:01 +0530, harisha ja wrote:<br>
> I have windows 7 system and I have installed ubuntu using vmware. I<br>
> have installed KVM on ubuntu and I am trying to boot the kernal image<br>
> with KVM.<br>
<br>
</span>Does vmware emulate the KVM related chip functionality (ie, "VT" for an<br>
x86 Intel CPU or "AMD-V (SVM)" for x86 AMD CPU)?<br></blockquote><div><br></div><div> I am not sure about this. How I can check it? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> But I am not sure what is the problem. I am stuck in this screen. Is<br>
> something I am missing here?<br>
><br>
> The approach using kvm to put some logs and to see module<br>
> initialization is wrong?.<br>
><br>
> The command I am using<br>
> kvm -kernel ./arch/x86/boot/bzImage -append root=/root/<br>
<br>
</span>You call this command in your vmware session of a virtual Ubuntu system,<br>
don't you?<br>
<span class=""><br></span></blockquote><div>Yes. Windows7 (Host) -> Ubuntu 12 ( Installed on top of windows7 using vmware ) -> KVM ( I am trying to load the kernal image built using This KVM)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> I see the below message and then the qemu prompt does not boot and<br>
> stops by displaying below traceback.<br>
><br>
> Could not access KVM kernel module: No such file or directory<br>
> failed to initialize KVM: No such file or directory<br>
<br>
</span>Is this the only message, or only the part you thought was interesting?<br></blockquote><div><br></div><div>I am getting many messages like booting from ROM and Decompressing linux kernel and then it prints lot of other messages but not sure how I can redirecting those from kvm terminal to txt file. I am not being able to attach the screen-shots because of email size restrictions.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> QEMU<br>
> 5.1654731 Stack: 5.1654731 c18ea844 claea9a0 00000000 fffffffa<br>
> d?861efc 00008001 d?8611 a35f91 5.1654731 cl8ddba8 d?861efc d7861efc<br>
> fffffffa 00000000 d7b6e000 cl8dd6 ff3dc0 5.1654731 d7b6e000 6e6b6e75<br>
> 2d6e??61 636f 6c62 2c30286b c1002930 d78611 13c248 5.1654731<br>
> Call Trace:<br>
> 5.1654731 l<c1a35f91>1 mount_block_root+Ox158/0x1de<br>
> 5.1654731 l<c1002930>1 ? do_general_protection+0x40/0x170<br>
> 5.1654731 l<c113c248>1 ? SyS_mknod+0x28/0x30<br>
> 5.1654731 l<cla3610a>1 mount_root+Oxf3/Oxfb<br>
> 5.1654731 l<c1a36235>1 prepare_namespace+0x123/0x167<br>
> 5.1654731 l<c112cf30>l ? SyS_access+0x20/0x30<br>
> 5.1654731 l<cla35cf7>1 kernel_init_freeable+Ox1b5/0x1c2<br>
> 5.1654731 l<c1a35545>1 ? do_early_param+0x74/0x74<br>
> 5.1654731 l<c174caab>1 kernel_init+Oxb/Oxe0<br>
> 5.1654731 l<c175a041>1 ret_from_kernel_thread+0x21/0x30<br>
> 5.1654731 l<c174caa0>1 ? rest_init+0x60/0x60<br>
> 5.1654731 Code: 00 00 00 00 31 ff 83 3d 8c a9 ae cl 00 74 05 e8 Oe dO<br>
> 9 c? 44 24 04 a0 a9 ae cl c7 04 24 44 a8 Be cl e8 b6 05 00 00 fb 3116<br>
> <35>1 15 83 75 f0 01 8b 45 f0 ff 15 80 a9 ae cl 01 c6 8d be 5.1654731<br>
> EIP: l<c174f2e9>1 panic+0x165/0x197 SS:ESP 0068:d7861eb8 5.1654731 --I<br>
> end trace a4Obaf277b417d8d 1--<br>
<br>
</span>This looks like the kind of backtrace one gets when the kernel can't<br>
find its root device. I see something like it every now and then, and it<br>
mostly means that I made a mistake when I configured a machine. It also<br>
means, I think, that the KVM problem you quoted wasn't fatal for this<br>
virtual boot.<br>
<br>
Setting the root device might be tricky to get right when booting a<br>
virtualized system. At least, I remember fiddling with it. But your<br>
"root" kernel parameter should be something like:<br>
root=/dev/sda1<br>
<br>
It rather depends on how your Ubuntu system is setup (ie, what the<br>
layout is of the image that vmware uses to boot Ubuntu, apparently).<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>I changed this and it tried to boot the kernal but after that kvm is not giving any console. I don't want to do make install and and reboot complete ubuntu to check my print log because I feel it takes more time. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<br>
Paul Bolle<br>
<br>
</font></span></blockquote></div><br></div></div></div>