On Thu, Jul 18, 2019 at 12:13:24PM -0700,
lastp...@gmail.com wrote:
> On Sunday, 7 February 2016 23:12:25 UTC,
he...@ruggedinbox.com wrote:
> > Input from the developers would be especially welcome.
> >
> > I've been trying to enable nested virtualization in Qubes, which should be
> > possible without modifications, since Xen requires only the addition of
> > two lines to a conf file:
> >
> > -------
> > Make sure you have the right support
> > Xen 4.4 or later
> > Intel CPU with EPT support
> >
> > Add the following to your config file:
> >
> > hap=1
> > nestedhvm=1
> >
> > (Cite:
http://wiki.xenproject.org/wiki/Nested_Virtualization_in_Xen)
> > -------
> >
> > 1) What's the preferred way to accomplish this in Qubes?
> >
There isnt one.
> > 2) It looks like the template packages qubes-gui-vm, xen-qubes-vm, and
> > xen-libs are set up to block installation of other in-guest virtualization
> > packages like qemu/libvirt (requiring the former to be removed for any
> > experimentation to proceed). It happens on both the fedora and debian.
> > Removing those packages would cause problems interacting with dom0. What's
> > going on here?
> >
> > Thank you.
>
As you correctly point out there are various features in Qubes which
make this difficult. In any case, nested virtualization in Xen is pretty
broken, and doesnt seem to work with more recent kernels. Look at the
tables on the page you cite: you have to go back before 4.7 to get
decent coverage, and anything after 4.9 looks dead.
So enabling this is a security hit for Qubes, and not a priority - (this
may change as there are periodic requests for the feature).