Closed ben-grande closed 6 months ago
Couldn't make a updatevm
behave correctly with sys-cacher
when using it for Template listing. Dom0 updates were never affected, but template listing/searching/installing was. It only happened if you installed the sys-cacher
formula to the debian template before creating the sys-pihole
StandaloneVM plus making sys-pihole
the updatevm
.
Why revisit this issue later:
sys-pihole
StandaloneVM.Why not do it:
sys-cacher
netvm
is the default_netvm
sys-pihole
.
Software version
Possibly every since
sys-cacher.install-client
is being called insys-pihole.install
inR4.2
.Brief summary
Listing templates from Dom0 does not work if using certain qubes for certain functionality that should support it, as
sys-pihole
is being set as theupdatevm
.Steps to reproduce
Install
sys-pihole
, configure it to be theupdatevm
and make sure it is usingsys-cacher
as the updates proxy. Make sure thatsys-cacher
netvm
is set tosys-pihole
.Notice the template list is incomplete. Comment the proxy line in
/etc/dnf/dnf.conf
and try again and see that the list is complete.Expected behavior
Complete list of templates available.
Actual behavior
Incomplete list of templates via
qvm-template list
, only showing installed templates.dom0
callssys-pihole
viaqvm-template
, which callssys-cacher
viaqubes.UpdatesProxy
, which then callssys-pihole
again as thenetvm
.Possible solution
There are two solutions:
sys-pihole
as it is probably thenetvm
of thesys-cacher
updatevm
The first option disadvantage is having a slower install as packages are fetched through the network if they are not cached.
The second option disadvantage is that the
updatevm
is never powered off automatically after being used, leaving it hanging around while setting theupdatevm
to be the same as thedefault_netvm
is good as it does not require one more qube to be powered on, besides that there are no security benefits in having a separate updater qube for dom0 as it does not trust the DomU anyway.Although there are two solutions to the problem, it doesn't answer clearly why the problem occurs? What happens in
sys-pihole
that when usingsys-cacher
, the fetching of the template list does not work, while updating dom0 does work?