From: Anthony Liguori <aliguori@us.ibm.com>
To: Ewan Mellor <ewan@xensource.com>
Cc: Michael Paesold <mpaesold@gmx.at>,
Xen Devel <xen-devel@lists.xensource.com>
Subject: Re: Deficiencies in guest bootloader design
Date: Thu, 13 Apr 2006 10:24:44 -0500 [thread overview]
Message-ID: <443E6D3C.3080802@us.ibm.com> (raw)
In-Reply-To: <20060413151044.GB23641@leeni.uk.xensource.com>
Ewan Mellor wrote:
> On Thu, Apr 13, 2006 at 04:29:23PM +0200, Michael Paesold wrote:
>
>
>> I have tried to use a dynamically activated block device with pygrub
>> (actually drbd, but could be enbd, nbd, or simply any vbd other than phy:
>> or file:). That does not work.
>>
>> The problem is that the bootloader is not called from Xend, after virtual
>> block devices are setup, but instead it is called directly from xm, i.e. in
>> xm/create.py.
>>
>> If I have looked correctly, (1) a bootloader cannot be used for devices
>> such as nbd: or enbd: devices, and (2) a bootloader cannot be used when
>> accessing Xend via XML-RPC (or libvirt or similar), because the whole
>> notion of a "bootloader" at domain creation time is only available in "xm",
>> but not in Xend.
>>
>> It should be fixable, since at least on guest *restart*,
>> xend/XendDomainInfo.py already uses the bootloader to re-extract the kernel
>> image from the vbd.
>>
>> Is there anyone working on bootloader improvements? If not, is a change to
>> move the bootloader stuff from xm to Xend acceptable? In that case I could
>> try to come up with a patch.
>>
>
> Certainly such a patch would be accepted.
>
Just as a warning, it's not going to be simple to run something like
pygrub from Xend. The reason it runs from xm now is that it needs to
interact with the user. If it were launched from Xend, it need to find
a way to attach to a PTY that xenconsoled would use so that it can
display the text over the normal console before actually launching the
domain.
It's certainly not impossible but it touches quite a few things.
Regards,
Anthony Liguori
>> There are some issues though. In XendDomainInfo.initDomain, image.create is
>> done before self.createDevices. Can this be changed easily?
>>
>
> Off the top of my head, I can't think why this would be too much of a problem.
> Why do you ask though? If the bootloader is running inside the guest, then
> that is happening after both of those things, because at the point at which we
> are doing initDomain, the guest hasn't even started running yet. Why does
> ordering here concern you?
>
> Don't forget that VMX domains handle their devices differently to para-virt
> domains, and the VMX folks won't appreciate it if you break their code ;-)
>
> Cheers,
>
> Ewan.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
next prev parent reply other threads:[~2006-04-13 15:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-13 14:29 Deficiencies in guest bootloader design Michael Paesold
2006-04-13 14:34 ` Matt Ayres
2006-04-13 17:28 ` Michael Paesold
2006-04-13 15:10 ` Ewan Mellor
2006-04-13 15:24 ` Anthony Liguori [this message]
2006-04-13 15:36 ` Ewan Mellor
2006-04-13 15:40 ` Anthony Liguori
2006-04-13 18:09 ` Michael Paesold
2006-04-13 17:13 ` Michael Paesold
2006-04-13 19:19 ` Michael Paesold
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=443E6D3C.3080802@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=ewan@xensource.com \
--cc=mpaesold@gmx.at \
--cc=xen-devel@lists.xensource.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.