I'm unable to build the Docker image.
varun@varun-yoga:~/git/gunyah/gunyah-support-scripts/scripts$ ./build-docker-img.sh
Registry server is set to ubuntu:22.04
Building Docker file dockerfile-hyp
[+] Building 0.5s (20/20) FINISHED docker:default
=> [internal] load build definition from dockerfile-hyp 0.0s
=> => transferring dockerfile: 3.67kB 0.0s
=> WARN: InvalidDefaultArgInFrom: Default value for ARG "$REGISTRY" results in empty or invalid base image name (line 7) 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:22.04 0.4s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [ 1/15] FROM docker.io/library/ubuntu:22.04@sha256:67cadaff1dca187079fce41360d5a7eb6f7dcd3745e53c79ad5efd8563118240 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 988B 0.0s
=> CACHED [ 2/15] RUN apt-get update 0.0s
=> CACHED [ 3/15] RUN groupadd -g "984" "varun" && useradd -m -u "1000" -g "984" -s /bin/bash "varun" && echo "varun:1234" | chpas 0.0s
=> CACHED [ 4/15] RUN apt-get update && apt-get install -y apt-utils 0.0s
=> CACHED [ 5/15] RUN apt-get install -y software-properties-common build-essential tzdata python3 python3-pip 0.0s
=> CACHED [ 6/15] RUN locale-gen en_US.UTF-8 && dpkg-reconfigure locales 0.0s
=> CACHED [ 7/15] RUN mkdir -p /home/varun && chown -R varun:varun /home/varun && echo "Creating Docker image for user : va 0.0s
=> CACHED [ 8/15] RUN mkdir -p /home/varun/utils /home/varun/core-utils 0.0s
=> CACHED [ 9/15] COPY --chown=varun:varun ./utils/* /home/varun/utils/ 0.0s
=> CACHED [10/15] COPY --chown=varun:varun ./core-utils/* /home/varun/core-utils/ 0.0s
=> CACHED [11/15] WORKDIR /home/varun 0.0s
=> CACHED [12/15] RUN touch "/home/varun/.bashrc" && chown -R varun:varun "/home/varun" && ln -s python3 /usr/bin/python 0.0s
=> CACHED [13/15] RUN echo "" >> "/home/varun/.bashrc" && echo 'if [[ -f ${TOOLS_DIR}/ 0.0s
=> CACHED [14/15] COPY --chown=varun:varun bashrc-extn . 0.0s
=> CACHED [15/15] RUN cat bashrc-extn >> "/home/varun/.bashrc" && rm -f bashrc-extn 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:42a092fa18b02fa5ae02aece80798b4812dab046b2d8bfce5048139d0f1a591c 0.0s
=> => naming to docker.io/library/hyp-dev-term:1.20 0.0s
2 warnings found (use docker --debug to expand):
- InvalidDefaultArgInFrom: Default value for ARG "$REGISTRY" results in empty or invalid base image name (line 7)
- JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 130)
Built or updated the docker image, now installing or configuring Core tools
*********** Sudo password Note..!! *********************************
Following commands are executed within docker environment, so when a
prompt for sudo password showsup, type 1234 which is the default password
set when building the docker image (unless it was changed)
********************************************************************
Host shared folder :
[sudo] password for varun:
Generate/build the tools
BASE_DIR : /home/varun
TOOLS_DIR : /usr/local/mnt/tools
Installation of the core tools is complete
Host shared folder :
Building the workspace images
BASE_DIR : /home/varun
TOOLS_DIR : /usr/local/mnt/tools
WORKSPACE : /home/varun/mnt/workspace
User is not set in Environment
Sourcing tools environment
Sourcing workspace environment
crosvm sources already exists, skipping cloning
Building crosvm from folder /home/varun/mnt/workspace/crosvm
Starting container...
Trying to pull gcr.io/crosvm-infra/crosvm_dev:r0051...
Getting image source signatures
Copying blob abbacbd4b8db done
Copying blob e176f2232db4 done
Copying blob 5a2540aec532 done
Copying blob d8ae982e7324 done
Copying blob 19cdd48b1412 done
Copying blob 5da62e4b1bd8 done
Copying blob 6ede4df6a2ed done
Copying blob 2143cb294aac done
Copying blob 67780a6ff7de done
Copying blob 9dac31b01f58 done
Copying config da6d15bb07 done
Writing manifest to image destination
Storing signatures
70fe95f6aec72856f412b49c7dcd1db3e55a548a9a1c6353228d87d14bff003f
Error: can only create exec sessions on running containers: container state improper
Traceback (most recent call last):
File "/home/varun/mnt/workspace/crosvm/crosvm-src/./tools/dev_container", line 416, in <module>
main(sys.argv[1:])
File "/home/varun/mnt/workspace/crosvm/crosvm-src/./tools/dev_container", line 371, in main
docker("exec", *tty_args, *exec_args, cid, *quoted_cmd).fg()
File "/home/varun/mnt/workspace/crosvm/crosvm-src/tools/impl/command.py", line 342, in fg
return self.run_foreground(quiet, check, dry_run, style)
File "/home/varun/mnt/workspace/crosvm/crosvm-src/tools/impl/command.py", line 322, in run_foreground
return self.__run(stdout=None, stderr=None, check=check).returncode
File "/home/varun/mnt/workspace/crosvm/crosvm-src/tools/impl/command.py", line 431, in __run
result = subprocess.run(
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['podman', 'exec', '--tty', '--interactive', '70fe95f6aec7', 'sh', '-c', 'cargo build --features gunyah --target aarch64-unknown-linux-gnu --release --no-default-features && cp /scratch/cargo_target/aarch64-unknown-linux-gnu/release/crosvm .']' returned non-zero exit status 255.
Hi,
I'm unable to build the Docker image.
Host OS: Ubuntu 25.04(upgrade from Ubuntu Concept 24.10)
Processor: Snapdragon X Elite X1E-78-100
Log:
Link to full log: https://gist.github.com/arhue/b37fcee3a45c03d3660781d2d6a99ca3