By exiting the docker container and installing qemu-user-static in the host system, I was able to run the build again and progress. Appreciate the tip thank you!
One final issue that I notice is when I am attempting to use customize-image.sh to install openssh-server package. As you can see by these logs it reaches "Setting up openssh-server (1:9.2p1-2+deb12u6) ..." but then script hangs and never progresses.
[π³|π¨] Fetched 13.0 MB in 5s (2,701 kB/s)
[π³|π¨] Reading package lists...
[π³|π¨] Reading package lists...
[π³|π¨] Building dependency tree...
[π³|π¨] Reading state information...
[π³|π¨] The following additional packages will be installed:
[π³|π¨] libssl3 (3.0.16-1~deb12u1)
[π³|π¨] openssh-client (1:9.2p1-2+deb12u6)
[π³|π¨] openssh-sftp-server (1:9.2p1-2+deb12u6)
[π³|π¨] openssl (3.0.16-1~deb12u1)
[π³|π¨] Suggested packages:
[π³|π¨] keychain (2.8.5-3)
[π³|π¨] libpam-ssh
[π³|π¨] monkeysphere
[π³|π¨] ssh-askpass (1:1.2.4.1-16)
[π³|π¨] molly-guard (0.7.2)
[π³|π¨] ufw (0.36.2-1)
[π³|π¨] Recommended packages:
[π³|π¨] xauth (1:1.1.2-1)
[π³|π¨] The following packages will be upgraded:
[π³|π¨] libssl3 (3.0.15-1~deb12u1 => 3.0.16-1~deb12u1)
[π³|π¨] openssh-client (1:9.2p1-2+deb12u5 => 1:9.2p1-2+deb12u6)
[π³|π¨] openssh-server (1:9.2p1-2+deb12u5 => 1:9.2p1-2+deb12u6)
[π³|π¨] openssh-sftp-server (1:9.2p1-2+deb12u5 => 1:9.2p1-2+deb12u6)
[π³|π¨] openssl (3.0.15-1~deb12u1 => 3.0.16-1~deb12u1)
[π³|π¨] 5 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
[π³|π¨] Need to get 4,617 kB of archives.
[π³|π¨] After this operation, 1,024 B of additional disk space will be used.
[π³|π¨] Get:1 http://deb.debian.org/debian bookworm/main arm64 libssl3 arm64 3.0.16-1~deb12u1 [1,812 kB]
[π³|π¨] Get:2 http://deb.debian.org/debian bookworm/main arm64 openssh-sftp-server arm64 1:9.2p1-2+deb12u6 [60.7 kB]
[π³|π¨] Get:3 http://deb.debian.org/debian bookworm/main arm64 openssh-server arm64 1:9.2p1-2+deb12u6 [413 kB]
[π³|π¨] Get:4 http://deb.debian.org/debian bookworm/main arm64 openssh-client arm64 1:9.2p1-2+deb12u6 [937 kB]
[π³|π¨] Get:5 http://deb.debian.org/debian bookworm/main arm64 openssl arm64 3.0.16-1~deb12u1 [1,395 kB]
[π³|π¨] Preconfiguring packages ...
[π³|π¨] Fetched 4,617 kB in 1s (6,157 kB/s)
(Reading database ... 26620 files and directories currently installed.)e ...
[π³|π¨] Preparing to unpack .../libssl3_3.0.16-1~deb12u1_arm64.deb ...
[π³|π¨] Unpacking libssl3:arm64 (3.0.16-1~deb12u1) over (3.0.15-1~deb12u1) ...
[π³|π¨] Preparing to unpack .../openssh-sftp-server_1%3a9.2p1-2+deb12u6_arm64.deb ...
[π³|π¨] Unpacking openssh-sftp-server (1:9.2p1-2+deb12u6) over (1:9.2p1-2+deb12u5) ...
[π³|π¨] Preparing to unpack .../openssh-server_1%3a9.2p1-2+deb12u6_arm64.deb ...
[π³|π¨] Unpacking openssh-server (1:9.2p1-2+deb12u6) over (1:9.2p1-2+deb12u5) ...
[π³|π¨] Preparing to unpack .../openssh-client_1%3a9.2p1-2+deb12u6_arm64.deb ...
[π³|π¨] Unpacking openssh-client (1:9.2p1-2+deb12u6) over (1:9.2p1-2+deb12u5) ...
[π³|π¨] Preparing to unpack .../openssl_3.0.16-1~deb12u1_arm64.deb ...
[π³|π¨] Unpacking openssl (3.0.16-1~deb12u1) over (3.0.15-1~deb12u1) ...
[π³|π¨] Setting up libssl3:arm64 (3.0.16-1~deb12u1) ...
[π³|π¨] Setting up openssl (3.0.16-1~deb12u1) ...
[π³|π¨] Setting up openssh-client (1:9.2p1-2+deb12u6) ...
[π³|π¨] Setting up openssh-sftp-server (1:9.2p1-2+deb12u6) ...
[π³|π¨] Setting up openssh-server (1:9.2p1-2+deb12u6) ...
The command used in customize-image.sh to install is simply:
apt-get install -y open-ssh
Since I used the -y flag I don't think any user input is needed, so not sure yet what I am missing. Any tips are greatly appreciate as I troubleshoot.
Other than this issue with openssh-server, the build worked out ok! I will write some guides and share for other Qubes OS users.