From: "Hayawardh V" Subject: Re: Enabling domU to create other domUs Date: Tue, 8 Jul 2008 22:45:34 -0400 Message-ID: <68f1f87c0807081945m72a886abn4fd5020cb4a57f2a@mail.gmail.com> References: <68f1f87c0807071014y69c3d573y2ef0d6c487371710@mail.gmail.com> <617dbaa80807080925l85f43bfje39e15bb22954b70@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0798044319==" Return-path: In-Reply-To: <617dbaa80807080925l85f43bfje39e15bb22954b70@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0798044319== Content-Type: multipart/alternative; boundary="----=_Part_30621_31239345.1215571534805" ------=_Part_30621_31239345.1215571534805 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tue, Jul 8, 2008 at 12:25 PM, Derek Murray wrote: > Hi Hayawardh, > > > If you did make your DomU privileged, this would make it privileged > over all domains, which requires you to trust each DomU with this > privilege. This is probably not acceptable from a security > point-of-view. If you had the inclination, you could probably conjure > up a Xen Security Module that enforced hierarchical privilege, but you > would probably still have to modify the tools. > This is exactly what I have in mind. Can you just give me a few additional pointers of what needs to be done with the tools, and the hypervisor? Thanks a lot! > > If you simply want to be able to create domains from a DomU, have you > considered installing xm in that domain and configuring it to use the > instance of xend that runs in Dom0? > > Regards, > > Derek Murray. > > On Mon, Jul 7, 2008 at 6:14 PM, Hayawardh V wrote: > > Hi, > > > > What changes would have to be made if I wanted to have a domU create VMs? > > I tried installing the xen tools into a domU rootfs image, and then > booted > > the domU. However, xend refuses to start inside the domU. > > > > I realise the changes might be extensive, but I just want an idea of what > > needs to be done. > > > > Also, I find that hardcoded checks like > > if (current-> domain->domain_id != 0) > > return -EPERM > > are extremely few in the current hypervisor. > > > > Regards, > > Hayawardh > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > > > > ------=_Part_30621_31239345.1215571534805 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On Tue, Jul 8, 2008 at 12:25 PM, Derek Murray <Derek.Murray@cl.cam.ac.uk> wrote:
Hi Hayawardh,


If you did make your DomU privileged, this would make it privileged
over all domains, which requires you to trust each DomU with this
privilege. This is probably not acceptable from a security
point-of-view. If you had the inclination, you could probably conjure
up a Xen Security Module that enforced hierarchical privilege, but you
would probably still have to modify the tools.

This is exactly what I have in mind. Can you just give me a few additional pointers of what needs to be done with the tools, and the hypervisor?

Thanks a lot!

If you simply want to be able to create domains from a DomU, have you
considered installing xm in that domain and configuring it to use the
instance of xend that runs in Dom0?

Regards,

Derek Murray.

On Mon, Jul 7, 2008 at 6:14 PM, Hayawardh V <hayawardh@gmail.com> wrote:
> Hi,
>
> What changes would have to be made if I wanted to have a domU create VMs?
> I tried installing the xen tools into a domU rootfs image, and then booted
> the domU. However, xend refuses to start inside the domU.
>
> I realise the changes might be extensive, but I just want an idea of what
> needs to be done.
>
> Also, I find that hardcoded checks like
> if (current-> domain->domain_id != 0)
> return -EPERM
> are extremely few in the current hypervisor.
>
> Regards,
> Hayawardh
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>

------=_Part_30621_31239345.1215571534805-- --===============0798044319== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0798044319==--