How to make a bootable hard disk image?

Paul Davies C pauldaviesc at gmail.com
Thu Jan 31 06:37:54 EST 2013


May I know how can I make the initrd image for a given kernel version in
order to boot it using QEMU?


On Thu, Jan 31, 2013 at 4:24 PM, Anuz Pratap Singh Tomar <
chambilkethakur at gmail.com> wrote:

>
>
> On Wed, Jan 30, 2013 at 11:05 PM, horseriver <horserivers at gmail.com>wrote:
>
>> On Thu, Jan 31, 2013 at 03:09:00PM +0700, Mulyadi Santosa wrote:
>> > On Thu, Jan 31, 2013 at 4:44 AM, horseriver <horserivers at gmail.com>
>> wrote:
>> > > On Thu, Jan 31, 2013 at 12:51:36PM +0700, Mulyadi Santosa wrote:
>> > >> On Thu, Jan 31, 2013 at 2:52 AM, horseriver <horserivers at gmail.com>
>> wrote:
>> > >> > hi:)
>> > >> >
>> > >> >    I want to boot kernel from hard disk image ,because i am using
>> a virtual machine .
>> > >> >    How to make this bootable image   ?
>> > >> >    After I  make it ,how do I put kernel Image into this image?
>> > >>
>> > >> If you are using qemu or kvm, you don't need to put the kernel inside
>> > >> the virtual machine image.
>> > >>
>> > >> Just use -kernel (or possibly -initrd) parameter and pass the path
>> and
>> > >> file name of your kernel image and you're good to go.
>> > >
>> > >   The path?
>> > >   How to write the path? You mean the virtual machine can share
>> physical
>> > >   hard disk with the host ,without its own hard disk image ?
>> >
>> > assume your virtual disk image is in /tmp/guest.img.
>> >
>> > Kernel is /tmp/kernel-image. Initrd is /tmp/initrd
>> >
>> > Usually, I invoke it this way:
>> > qemu -kernel /tmp/kernel-image -initrd /tmp/initrd -hda /tmp/guest.img
>>
>>   thanks!
>>   how does the /tmp/kernel-image made ?
>>
>> Really?
> your bzImage is your kernel-image.
>
>>
>> >
>> > Hope you got the idea....
>> >
>> >
>> > --
>> > regards,
>> >
>> > Mulyadi Santosa
>> > Freelance Linux trainer and consultant
>> >
>> > blog: the-hydra.blogspot.com
>> > training: mulyaditraining.blogspot.com
>> >
>> > _______________________________________________
>> > Kernelnewbies mailing list
>> > Kernelnewbies at kernelnewbies.org
>> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
>
>
> --
> Thank you
> Warm Regards
> Anuz
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
*Regards,*
*Paul Davies C*
vivafoss.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130131/b35ed67e/attachment.html 


More information about the Kernelnewbies mailing list