-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tar fails to extract root.img from template.rpm #7183
tar fails to extract root.img from template.rpm #7183
Comments
Definitely try with |
|
It does, try |
root.img extraction fails too, the exception |
traceback for dnf:
and traceback for
|
Are you sure the template rpm isn't simply truncated? Try |
Or not rpm file itself, but the root.img file inside - see |
The sum of the (8) parts is ~960MB big (I think, wasn't in human-readable format). The first command returns a few signature OK statements. |
I don't understand. I see that you try to install archlinux template where as there is post-install for gentoo. Can you please check that you have enough place inside dom0 like at least 7 or 8 GB. |
Oh, I see what you mean... I did try that too, but that might have been a failure in my build setup so I downloaded gentoo from the repos, manually transferred to dom0 and tried to install. |
With #7170 fixed I tried to use qvm-template to download the gentoo template. This works fine, but the issue with the root.img persists. |
(the download works fine, the install fails as usual) |
any updates on the source of this issue? otherwise I might try a reinstall sometime soon, to ascertain whether it's a software problem... |
Can you successfully install other templates, such as Fedora 35? |
Nope, issue confirmed with fedora-33 |
any updates? I'd be happy to test stuff if it helps w/ troubleshooting |
Are you OP?
Are there *any* templates that work for you?
If you download a template rpm and install it manually, does that work
for you?
If so, remove the template and try installing it again with
qvm-template.
Obviously use one of the templates that didn't work - I would use
Fedora-33, since we know that package has had extensive testing.
|
What is the output of:
? B |
Looks like the rpm file is dropped into /home/admin/cache/qvm-template/ and then expanded into /var/tmp/tmp<random_8_alphanumeric>/var/lib/qubes/vm-templates/<template_shortname> E.g. with centos-8-minimal the latter directory was: /var/tmp/tmpy9p2sc4c/var/lib/qubes/vm-templates/centos-8-minimal/ Both paths should be on the filesystem on /dev/mapper/qubes_dom0-root It's possible that watching the above two directories, as well as keeping an eye on df -h output and the lvs command output from the previous post might help to narrow down what is going on? Lastly that bytecount in the OP is exactly 203MB. B PS: Before qvm-template, there was always a concern about sys-firewall having enough system storage for large template or multiple templates. It appears with R4.1, data is instead piped into dom0 from the curl running in sys-firewall and ends up being written under the /home/admin/.cache hierarchy instead. If that directory were, say, moved to a tmpfs mount, that could be a reason for failure. I've seen pages suggesting putting that in tmpfs, but as we all recall, tmpfs is basically a ram disk. |
I tried manual install, actually the arch template is self-built. I tried removing a template I didn't need any longer and reinstalling it, but that failed as well. |
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert |
well, I think with 4.1 out I'll probably try a reinstall, does anyone need any more infos before that? |
I'm having the same issue. I've tried with multiple templates (fedora, debian, whonix) and they all end with the same exception error: I have tried on 4.1 (as downloaded on the official website) as well as 4.1 kernel-latest provided by fepitre (right after a complete reinstall). Finally, I tried with
The output of
I attempted to seek help on the forums with not much luck... @sajkbflksadbfkasdjf sorry for tagging you, but have you found a solution? |
nope, sadly I had to reinstall and even now the issue persists. That's the reason I can't install fedora-35 on my machine... |
btw, issue confirmed for fully updated 4.1 |
Just an update to confirm that this issue still persists. I recently tried installing several templates with
@DemiMarie the template is less than 1G and my I also ran Any suggestion is greatly appreciated... |
New case reported on the forums: https://forum.qubes-os.org/t/cant-recover-any-backup-and-and-cant-install-templates/14668 They reported 77G of free disk space in dom0 |
@BEBF738VD This is definitely bad, but I am not sure how to debug this problem without either being able to reproduce the problem, or having shell access to a machine that has the problem. |
@DemiMarie thank you very much for taking interest in this issue. I would be happy to run on my machine any test that you suggest, at your convenience. |
Does the available space in the various |
My first thought is to run
Only the last one. |
I have run strace on the whole command (qvm-template install gentoo-minimal), hope this helps |
I have found a solution! reinstalling I'm now able to install any template I wish. |
Weird. I have uninstalled vim but hard-linked neovim to vim... |
I guess this is related:
|
Thanks. Then I'll try to only install vim-common, maybe that'll work. If so, I'd go ahead and change the dependencies of qvm-template to include this... |
Seems correct, vim-common solves the problem |
Fantastic. Cheers everyone for pitching in. |
xxd is part of vim-common packages, which isn't mandatory. Use hexdump instead, which is part of util-linux package. Fixes QubesOS/qubes-issues#7183 (cherry picked from commit 225ec69)
Automated announcement from builder-github The component
|
Automated announcement from builder-github The component
Or update dom0 via Qubes Manager. |
Qubes OS release
4.1 with all updates applied (subscribed to testing)
Brief summary
Qubes fails to install templates because the root.img extraction fails
Steps to reproduce
Install template (I installed from commandline with
dnf install ./qubes-template-...
Expected behavior
Template is installed correctly
Actual behavior
The text was updated successfully, but these errors were encountered: