From: Ian Campbell Subject: Re: Driver domains and hotplug scripts, redux Date: Tue, 31 Jan 2012 13:51:59 +0000 Message-ID: <1328017919.26983.383.camel@zakaz.uk.xensource.com> References: <20244.25907.223422.50324@mariner.uk.xensource.com> <1326791863.14689.52.camel@zakaz.uk.xensource.com> <1326793927.14689.80.camel@zakaz.uk.xensource.com> <1326796747.14689.93.camel@zakaz.uk.xensource.com> <20120131100605.GB25307@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: Roger Pau =?ISO-8859-1?Q?Monn=E9?= , Ian Jackson , "xen-devel@lists.xensource.com" , "Tim (Xen.org)" List-Id: xen-devel@lists.xenproject.org On Tue, 2012-01-31 at 13:47 +0000, Stefano Stabellini wrote: > On Tue, 31 Jan 2012, Tim Deegan wrote: > > Hi, > > > > At 10:57 +0100 on 31 Jan (1328007457), Roger Pau Monn? wrote: > > > That's what I don't get. Booting the driver domain should be no > > > problem, because you can also have a xenbackendd running in the Dom0 > > > to boot the driver domain (or maybe you want to use both Dom0 and > > > another DomU as driver domains). > > > > > > What I don't get is what you do when you have to boot a PV DomU which > > > root HDD is on the driver domain. Dom0 needs the kernel/initrd from > > > the HDD (usually extracted using pygrub). Since the HDD is inside the > > > driver domain, Dom0 doesn't have access to that image, so there's no > > > way to extract the kernel/initrd from the Dom0. What I through is that > > > the driver domain has to run pygrub, extract the kernel/initrd, and > > > pass both files to the Dom0, but how can we pass those files? libvchan > > > seems like the best option, but I would like to head others opinions > > > about this. > > > > You could attach to the disk image (using blkfront in dom0 and > > blkback/tap/whatever in the driver domain), run pygrub and detach. > > That's basically the same thing you have to do with a qcow image in a > > traditional dom0. > > this > > > > Or you could use pvgrub to boot the domain, so dom0 code never has to > > touch the guets-supplied disk image or kernel. That seems much better > > to me, but maybe it wouldn't work for some existing deployments? > > It wouldn't work with guests that use grub2, I believe. One of the grub2 developers posted about working on pv grub2 back in November... Ian.