From: Tim Deegan Subject: Re: Driver domains and hotplug scripts, redux Date: Tue, 31 Jan 2012 10:06:05 +0000 Message-ID: <20120131100605.GB25307@ocelot.phlegethon.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline 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: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: "xen-devel@lists.xensource.com" , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org 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. 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? Cheers, Tim.