https://www.qubes-os.org/doc/reinstall-template/
I tried first the automated method, and when that did not work then tried the manual method.
Question: Are these supposed to work with R 4.0 ? It says R 3.1+ and I am now wondering if this means ONLY R 3.n where n>1.
The result now is that I cannot even open the template domain to start adding new software. I am in dom0 and type
qvm-run -u root fedora-26-minimal xterm
(with or without a preceding 'sudo') and the result I get is a failure message saying
fedora-26-minimal: VM volume does not exist: /var/lib/qubes/VMtemplates/fedora-26-minimal
I know I am typing the command correctly because if I edit the command in Bash to take out the '-minimal' then xterm opens nicely in the fedora-26 domain
How can I sort this out?
Why has the action=reinstall not re-created everything the VM needs?
Any tips welcome...
No, none. Not till I try to run something.
It looks almost like it has re-installed it, it appears in the menu but with no apps, just the settings.
In settings the app pane is empty, and the refresh button greys out to ''Refresh in progress' and never returns after much much longer than it usually takes in a healthy domain.
>
> > Why has the action=reinstall not re-created everything the VM needs?
>
> Not sure, it should work!
OK, short of a complete re-install after backing up the domains that still work, what do I do now to repair this please?
Yes already tried that, several times over.
> Then, to
> confirm, you are:
>
> sudo dnf remove qubes-template-fedora-26-minimal
> sudo qubes-dom0-update qubes-template-fedora-26-minimal
I think so. Certainly what I intended to do.
> Its conceivable that a bug left behind a similarly named meta-volume
> that is now preventing a normal installation from completing. Comparing
> the output of 'qvm-volume' with 'sudo lvs' may provide a clue if that's
> the case.
>
ran it again and it worked this time. Not sure why it took three re-installs but it is working now.
However, after the dnf remove, sudo lvs|grep minimal showed that vm-fedora-26-minimal-root-tmp was still there. Nothing shown at that point by qvm-volume|grep minimal.
After the qubes-dom0-update that volume is still there in sudo lvs, but not shown in qvm-volume.
Should I lvremove it, or do I need some Qubic magic command?
> The code that supports template re-install (and other volume-related)
> functions was refactored late in the 4.0 pre-release cycle. Maybe this
> should be opened as an issue.
What do you think now?
Is that -root-tmp volume a sign of a bug, if so where?
I am not confident of reproducing the bug, if indeed it is one.
My gut feeling is that it may not enough to make a useful bugrep, but will do so if you or awokd think I should.
One thought I had is how do I know f I run out of pool space - might that have triggered something like this or should I get an elegant warning? Certainly my disk space is overcommitted, with the magic of sparse files.
MY thanks to Marek for that, and to everyone who responded in this thread.