From: Kevin Wolf <kwolf@redhat.com>
To: Fabian Greffrath <fabian@greffrath.com>
Cc: Stefan Hajnoczi <stefanha@gmail.com>,
John Snow <jsnow@redhat.com>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] suggestion for the QEMU advent calendar
Date: Tue, 9 Dec 2014 10:28:46 +0100 [thread overview]
Message-ID: <20141209092846.GA4088@noname.str.redhat.com> (raw)
In-Reply-To: <1418057677.8306.6.camel@greffrath.com>
Am 08.12.2014 um 17:54 hat Fabian Greffrath geschrieben:
> PS: I am a bit shocked by the fact how complicated it is to install GRUB
> on a disk image. And, John, even if the approach you outlined worked, I
> guess GRUB will find its device.map puzzled when it will get rebooted
> from inside an image file instead of an actual hard-drive partition the
> next time.
As long as you don't say which version of GRUB, it's easy. Install GRUB
Legacy, copy stage[12] and menu.lst to the image and do this in the GRUB
shell:
device (hd0) $IMAGE_PATH
root (hd0,0)
install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.lst
Or boot from a floppy/CD with GRUB in the VM and run the same thing
without the "device" command.
Syslinux is relatively easy as well. Just avoid GRUB 2 if you want to
set up disk images from the host. I've done it before, but it's ugly...
Kevin
next prev parent reply other threads:[~2014-12-09 9:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-05 8:37 [Qemu-devel] suggestion for the QEMU advent calendar Fabian Greffrath
2014-12-08 10:14 ` Stefan Hajnoczi
2014-12-08 15:54 ` Fabian Greffrath
2014-12-08 16:03 ` John Snow
2014-12-08 16:54 ` Fabian Greffrath
2014-12-08 17:19 ` Stefan Hajnoczi
2014-12-09 9:28 ` Kevin Wolf [this message]
2014-12-09 9:44 ` Fabian Greffrath
2014-12-09 9:51 ` Stefan Hajnoczi
2014-12-09 9:54 ` Fabian Greffrath
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=20141209092846.GA4088@noname.str.redhat.com \
--to=kwolf@redhat.com \
--cc=fabian@greffrath.com \
--cc=jsnow@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.