Arch linux template error building

Hello, I have qubes os 4.0.4 I am trying to install arch linux but it fails in make qubes-vm with the following error

/bin/bash: line 1: 3: Bad file descriptor
make[2]: *** [/home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:149: dist-copy-out] Error 1
make[1]: *** [Makefile.generic:197: packages] Error 1
make: *** [Makefile:265: vmm-xen-vm] Error 1

Hi @aka0kuro ,
Welcome back on the forum :slight_smile: .

Are you following the Building the Archlinux Template guide?
If yes, you should be in the 5th step, on the $ make qubes-vm command.

Ideas and questions:

  • make qubes-vm failed in your use case, try the individual make commands (next in the guide), so make vmm-xen-vm
  • read the final part of the guide (from Debugging the build process to the end, including known issues)
  • what is your appVM builder template (fedora-33, fedora-34, fedora-33-minima, other?)
  • what is your Qubes-OS version ? (4.0.4, 4.1.0-rc1)
  • read the build log
  • try to understand which file got a bad file descriptor (log + Makefile.archlinux:149)
  • check the free disk space in the builder appVM (df -h)
1 Like

Thanks for your answer, if the bug is in the make qubes-vm point, and tried to introduce the following command make vmm-xen-vm and the answer is the same. I have plenty of disk space. I use Qube OS 4.0.4 and appVM Builder is Fedora 34, from the other questions I can’t tell you because I don’t know where to look. I’m new to the system.


The build log file name is available on the start of the build:

-> Building vmm-xen (archlinux) for archlinux vm (logfile: build-logs/vmm-xen-vm-archlinux.log)


If you see the sudo: effective uid is not 0, is /usr/sbin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges? message then check the sudo: effective uid is not
section of the build guide, then make remount and make vmm-xen-vm .

I checked [1], it works for me with the above fix.

[1] Note that I use Qubes-OS 4.1, the other is same as you.