From: Steven Maresca <steve.maresca@gmail.com>
To: sassyn@gmail.com
Cc: xen-devel@lists.xensource.com, xen-users@lists.xensource.com
Subject: Re: [Xen-devel] DomU as Dom0?
Date: Sat, 13 Feb 2010 12:58:33 -0500 [thread overview]
Message-ID: <7e9718f21002130958y38cb028fndcc89dfb0361f712@mail.gmail.com> (raw)
> Date: Fri, 12 Feb 2010 13:06:25 -0200
> From: Thiago Camargo Martins Cordeiro <thiagocmartinsc@gmail.com>
> Subject: Re: [Xen-devel] DomU as Dom0?
> To: Sassy Natan <sassyn@gmail.com>
> Cc: xen-devel@lists.xensource.com, Xen List
> <xen-users@lists.xensource.com>
> Message-ID:
> <6b7f6eb1002120706me206d81p5b211011dd21909d@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> You can run the Xen, the dom0 and some domUs whitin a KVM guest...
>
> On 11 February 2010 17:43, Sassy Natan <sassyn@gmail.com> wrote:
>
>> Hi,
>>
>>
>> Can I run on DomU a Dom0 Kernel? So that This DomU will act as a Dom0 for
>> other DomU on top of it?
>>
>>
>>
>> Thanks
>>
>> Sassy
Yes, you can run Xen in a domU.
However, as usual the devil is in the details. Just to clarify
(because I don't believe it has been said explicitly):
It is entirely possible right now to run Xen + dom0 within an HVM
domU. CPU support for hardware virtualization is a requirement. In
truth, this has been the case for quite some, since the Xen 3.0
series, when HVM support started to firm up around 3.0.4. This mode
of operation presents some challenges due the hardware emulated by
qemu-dm, time skew, etc., but it has improved greatly with the latest
Xen releases.
This is the general idea of encapsulation:
Xen { dom0, domU { Xen { dom0, domU, .. } }, ... }
In general, this technique is useful for driver/hypervisor
development, but it presents some limitations:
-The nested Xen + dom0 can only support paravirtual guests.
-Finicky dom0 kernels require boot-time tweaking (I can dig up my
notes on the details if anyone is interested).
-Paravirtual I/O from the nested dom0 to the "parent" dom0 is
possible, but requires ugly driver hackery.
-Usually slow. Very recent AMD/Intel processors, hardware assisted
paging, etc reduce the pain, but certainly not completely.
-Not what I would consider a production-ready/supportable environment.
Good for development/experimentation/education only. There are
quirks..
The above largely applies when running Xen+dom0+domUs within a vm on
VMware / KVM / etc.
All of that said, the nested virtualization capabilities present in
KVM, those in the Xen pipeline (discussed in the summit presentation
previously mentioned), VMware, and others do open the door to
improvement in this area.
Ultimately, I would suggest that interested parties give this a try.
If needs are met, then it may be an entirely sufficient solution. At
the very least, taking a trip down this particular rabbit hole will be
informative :)
Steve Maresca
next reply other threads:[~2010-02-13 17:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-13 17:58 Steven Maresca [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-02-11 19:43 DomU as Dom0? Sassy Natan
2010-02-11 20:49 ` [Xen-devel] " Konrad Rzeszutek Wilk
2010-02-11 21:41 ` Daniel Stodden
2010-02-12 6:23 ` [Xen-devel] " Sassy Natan
2010-02-12 7:46 ` Thomas Goirand
2010-02-12 9:13 ` [Xen-devel] " Pasi Kärkkäinen
2010-02-12 15:06 ` Thiago Camargo Martins Cordeiro
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=7e9718f21002130958y38cb028fndcc89dfb0361f712@mail.gmail.com \
--to=steve.maresca@gmail.com \
--cc=sassyn@gmail.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen-users@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).