Error building qubes

After running “make get-sources” I run into this issue every time.

make[1]: Entering directory '/home/user/qubes-builder/qubes-src/linux-kernel' if [ -f /usr/bin/qvm-run-vm ]; \ then qvm-run-vm --dispvm 2>/dev/null xzcat <linux-5.10.104.tar.xz.UNTRUSTED > linux-5.10.104.tar.UNTRUSTED; \ else xzcat <linux-5.10.104.tar.xz.UNTRUSTED > linux-5.10.104.tar.UNTRUSTED; fi make[1]: *** [Makefile:74: linux-5.10.104.tar.UNTRUSTED] Error 126 rm linux-5.10.104.tar.UNTRUSTED make[1]: Leaving directory '/home/user/qubes-builder/qubes-src/linux-kernel' make: *** [Makefile:226: linux-kernel.get-sources-extra] Error 2

I am following the “Qubes builder” instructions. The only reference to this error is on a github issue only referring to the error as an example for properly verbose errors. Which is kind of ironic because I am not entirely certain how to go about solving this problem.

It (tries to) use DispVM to decompress the kernel. Looks like DispVM start failed - maybe not enough RAM? or DispVM not configured?

It has 8GB of ram available so i assume it isn’t that but I’m not sure what configuration DispVM needs to be in for this to work. Is it in the docs?

Hi, thanks for posting and also experiencing same issue with make get-sources:

→ Downloading additional sources for linux-kernel…
make[1]: Entering directory ‘/home/user/Temp/qubes-builder/src/qubes-src/linux-kernel’
if [ -f /usr/bin/qvm-run-vm ];
then qvm-run-vm --dispvm 2>/dev/null xzcat <linux-5.10.104.tar.xz.UNTRUSTED > linux-5.10.104.tar.UNTRUSTED;
else xzcat <linux-5.10.104.tar.xz.UNTRUSTED > linux-5.10.104.tar.UNTRUSTED; fi
make[1]: *** [Makefile:74: linux-5.10.104.tar.UNTRUSTED] Error 126
rm linux-5.10.104.tar.UNTRUSTED
make[1]: Leaving directory ‘/home/user/Temp/qubes-builder/src/qubes-src/linux-kernel’
make: *** [Makefile:226: linux-kernel.get-sources-extra] Error 2

Any insights on how to configure DispVM or anything else to resolve issue would be appreciated.

1 Like

When DispVM fails to start in Qubes 4.1, there should be a notification about it. In Qubes 4.0 not all the cases had notification. In any case, you can check journalctl in dom0 for more details about it.

This is the line:

Mar 14 18:24:30 dom0 qrexec-policy-daemon[2455]: qrexec: qubes.VMShell+WaitForSession: builder1 -> @dispvm: denied: policy define 'allow' action to @dispvm at /etc/qubes/policy.d/90-default.policy:94 but no DispVM base is set for this VM

But how do I set a base for the VM. I have a debian and a whonix disposable vm but I’m guessing this is something else?