<div dir="ltr">May I know how can I make the initrd image for a given kernel version in order to boot it using QEMU?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 31, 2013 at 4:24 PM, Anuz Pratap Singh Tomar <span dir="ltr">&lt;<a href="mailto:chambilkethakur@gmail.com" target="_blank">chambilkethakur@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"><br><br><div class="gmail_quote"><div class="im">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>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" target="_blank">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" target="_blank">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><div><br></div></div></blockquote></div><div>Really? <br>your bzImage is your kernel-image. <br></div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div>
<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" target="_blank">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" target="_blank">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></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Thank you <br>Warm Regards<br>Anuz<br>
</font></span><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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font face="&#39;arial narrow&#39;, sans-serif" color="#C0C0C0"><b>Regards,</b></font></div><div><font face="&#39;arial narrow&#39;, sans-serif" color="#C0C0C0"><b>Paul Davies C</b></font></div>

<a href="http://vivafoss.blogspot.com" target="_blank">vivafoss.blogspot.com</a>
</div>