<br><br><div class="gmail_quote">On Wed, Jan 30, 2013 at 11:05 PM, horseriver <span dir="ltr">&lt;<a href="mailto:horserivers@gmail.com" target="_blank">horserivers@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Thu, Jan 31, 2013 at 03:09:00PM +0700, Mulyadi Santosa wrote:<br>
&gt; On Thu, Jan 31, 2013 at 4:44 AM, horseriver &lt;<a href="mailto:horserivers@gmail.com">horserivers@gmail.com</a>&gt; wrote:<br>
&gt; &gt; On Thu, Jan 31, 2013 at 12:51:36PM +0700, Mulyadi Santosa wrote:<br>
&gt; &gt;&gt; On Thu, Jan 31, 2013 at 2:52 AM, horseriver &lt;<a href="mailto:horserivers@gmail.com">horserivers@gmail.com</a>&gt; wrote:<br>
&gt; &gt;&gt; &gt; hi:)<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;    I want to boot kernel from hard disk image ,because i am using a virtual machine .<br>
&gt; &gt;&gt; &gt;    How to make this bootable image   ?<br>
&gt; &gt;&gt; &gt;    After I  make it ,how do I put kernel Image into this image?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; If you are using qemu or kvm, you don&#39;t need to put the kernel inside<br>
&gt; &gt;&gt; the virtual machine image.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Just use -kernel (or possibly -initrd) parameter and pass the path and<br>
&gt; &gt;&gt; file name of your kernel image and you&#39;re good to go.<br>
&gt; &gt;<br>
&gt; &gt;   The path?<br>
&gt; &gt;   How to write the path? You mean the virtual machine can share physical<br>
&gt; &gt;   hard disk with the host ,without its own hard disk image ?<br>
&gt;<br>
&gt; assume your virtual disk image is in /tmp/guest.img.<br>
&gt;<br>
&gt; Kernel is /tmp/kernel-image. Initrd is /tmp/initrd<br>
&gt;<br>
&gt; Usually, I invoke it this way:<br>
&gt; qemu -kernel /tmp/kernel-image -initrd /tmp/initrd -hda /tmp/guest.img<br>
<br>
</div>  thanks!<br>
  how does the /tmp/kernel-image made ?<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div>Really? <br>your bzImage is your kernel-image. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">
<br>
&gt;<br>
&gt; Hope you got the idea....<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; regards,<br>
&gt;<br>
&gt; Mulyadi Santosa<br>
&gt; Freelance Linux trainer and consultant<br>
&gt;<br>
&gt; blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
&gt; training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Kernelnewbies mailing list<br>
&gt; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
&gt; <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thank you <br>Warm Regards<br>Anuz<br>