From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Make grub treat a virtual hard disk as a physical hard disk
Date: Fri, 15 Apr 2011 22:12:14 +0200 [thread overview]
Message-ID: <4DA8A69E.1020001@gmail.com> (raw)
In-Reply-To: <20110415194151.GP343@caffeine.csclub.uwaterloo.ca>
[-- Attachment #1: Type: text/plain, Size: 1637 bytes --]
On 15.04.2011 21:41, Lennart Sorensen wrote:
> On Fri, Apr 15, 2011 at 03:37:32PM -0400, Swapnesh Chaubal wrote:
>> I am working on booting a physical machine using VHD files (regarding which
>> I have not accomplished much) and I believe one way to go about it would be
>> to make grub treat a virtual hard disk as physical hard disk. This way, the
>> physical machine does not need to know what it is booting from and the rest
>> of the booting and running should proceed as it normally does.
>>
>> Is there any way to achieve this?
> And who is going to map the VHD file to the physical disk for the system
> running from the VHD file?
>
> You probably could convince grub to read a filesystem, find a vhd file,
> teach grub how to parse it and figure out how to find the right offsets
> in it to read its filesystem and find the kernel to boot that way,
This part is done and supported (loopback command) as long as the disk
format is raw (I don't know whether VHD is raw or not).
> but
> you still have the larger problem of then making that kernel work with
> a VHD file rather than direct hardware access (in fact it would have to
> do both. Read the physical device and filesystem to get at the vhd and
> read that).
This part is OS-specific. In case of GNU/Linux, FreeBSD, GNU/kFreeBSD,
NetBSD, OpenBSD, xnu-based Systems (Darwin and MacOSX), Solaris and
probably some other multiboot systems you can have a small initial
ramdisk which is used as root at first and has a sole purpose of finding
the other root and mounting it accordingly.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
next prev parent reply other threads:[~2011-04-15 20:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-15 19:37 Make grub treat a virtual hard disk as a physical hard disk Swapnesh Chaubal
2011-04-15 19:41 ` Lennart Sorensen
2011-04-15 20:00 ` Swapnesh Chaubal
2011-04-15 20:12 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2011-04-15 20:38 ` Lennart Sorensen
2011-04-15 20:43 ` Lennart Sorensen
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=4DA8A69E.1020001@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.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 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.