From: horserivers@gmail.com (horseriver)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to make a bootable hard disk image?
Date: Thu, 31 Jan 2013 07:05:29 +0800 [thread overview]
Message-ID: <20130130230529.GB3131@debian.localdomain> (raw)
In-Reply-To: <CAGdaadb54+VJsyf_AkH5QB=QQ+xMxsP642TT+YhWQ7BbFqaWAA@mail.gmail.com>
On Thu, Jan 31, 2013 at 03:09:00PM +0700, Mulyadi Santosa wrote:
> On Thu, Jan 31, 2013 at 4:44 AM, horseriver <horserivers@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@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 ?
>
> 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
next prev parent reply other threads:[~2013-01-30 23:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-30 19:52 How to make a bootable hard disk image? horseriver
2013-01-31 5:51 ` Mulyadi Santosa
2013-01-30 21:44 ` horseriver
2013-01-31 8:09 ` Mulyadi Santosa
2013-01-30 23:05 ` horseriver [this message]
2013-01-31 10:54 ` Anuz Pratap Singh Tomar
2013-01-31 2:20 ` horseriver
2013-01-31 11:37 ` Paul Davies C
2013-02-01 8:07 ` Karaoui mohamed lamine
2013-02-04 5:15 ` Mulyadi Santosa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130130230529.GB3131@debian.localdomain \
--to=horserivers@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).