redroid-doc icon indicating copy to clipboard operation
redroid-doc copied to clipboard

can not start the image build by myself

Open xiechao4 opened this issue 5 years ago • 5 comments

i follow the following steps to build the images

mkdir aosp && cd aosp
repo init -u https://github.com/remote-android/platform_manifests.git -b redroid10-gsi --depth=1
repo sync -c --no-tags
. build/envsetup.sh
lunch redroid_x86_64-userdebug
m -j4

after compile successfully cd out/target/product/redroid_x86_64/ sudo mount system.img system -o ro sudo mount vendor.img vendor -o ro sudo tar --xattrs -c vendor -C system --exclude="vendor" . | docker import -c 'ENTRYPOINT ["/init", "qemu=1", "androidboot.hardware=redroid"]' - redroid docker run -itd --rm --memory-swappiness=0 --privileged -v /home/test/data:/data -p 5555:5555 redroid

but it report the error docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "/init": stat /init: no such file or directory: unknown. the docker image is very small only 499MB

is there any error in my steps?

xiechao4 avatar Oct 20 '21 06:10 xiechao4

something wrong with your image, please make sure system.img mounted correctly.

zhouziyang avatar Oct 20 '21 11:10 zhouziyang

i have checked system.img is mounted, and i can go to the mount directory and ls all the files

xiechao4 avatar Oct 21 '21 00:10 xiechao4

@xiechao4 what is the root cause?

JohnnyShu avatar Mar 23 '22 09:03 JohnnyShu

Why do i get "Operation not permitted" error. xxx@redroid-builder:/src/out/target/product/redroid_x86_64$ sudo mount system.img system -o ro mount: system: mount failed: Operation not permitted.

JohnnyShu avatar Mar 25 '22 08:03 JohnnyShu

should running on HOST OS (instead of docker container).

zhouziyang avatar Mar 27 '22 13:03 zhouziyang