make WITH_VMIMAGES=yes release fails with permission denied.
Johan Hendriks
joh.hendriks at gmail.com
Thu Oct 5 11:41:24 UTC 2017
Op 05/10/2017 om 13:11 schreef Igor V. Ruzanov:
> Hello!
>
>
> On Thu, 5 Oct 2017, Johan Hendriks wrote:
>
> |Hello all.
> |
> |I thought it was time to test the make release to create my own .qcow2
> |and .raw files.
> |I am on a FreeBSD 11.1p1 machine.
> |But it does not work, it builds the ftp, bootonly and memstick images
> |fine, but the vm part does not.
> |I do the following.
> |
> |cd /usr/src/
> |make -j4 buildworld && make -j4 buildkernel
> |cd /usr/src/release
> |make WITH_VMIMAGES=yes release
> |
> |Then in the end i get an permission denied.
> |
> |Populating `mini-memstick.img.part'
> |Image `mini-memstick.img.part' complete
> |make -C /usr/src/release vm-image
> |Building /usr/obj/usr/src/release/vm-image
> |*env: /usr/src/release/scripts/mk-vmimage.sh: Permission denied*
>
> Is the script /usr/src/release/scripts/mk-vmimage.sh executable? I.e. with
> at least x owner flag.
>
Yes it is executable!
root at builder:/usr/src/release # ls -al
/usr/src/release/scripts/mk-vmimage.sh
-rwxr-xr-x 1 root wheel 2902 Jun 30 09:31
/usr/src/release/scripts/mk-vmimage.sh
>
>
> |*** Error code 126
> |
> |Stop.
> |make[1]: stopped in /usr/src/release
> |.ERROR_TARGET='vm-image'
> |.ERROR_META_FILE='/usr/obj/usr/src/release/vm-image.meta'
> |.MAKE.LEVEL='1'
> |MAKEFILE=''
> |.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'
> |_ERROR_CMD='mkdir -p /usr/obj/usr/src/release/vm-image; env TARGET=amd64
> |TARGET_ARCH=amd64 SWAPSIZE=1G /usr/src/release/scripts/mk-vmimage.sh
> |-C /usr/src/release/tools/vmimage.subr -d
> |/usr/obj/usr/src/release/vm-image -i /usr/obj/usr/src/release/vhd.img
> |-s 20G -f vhd -S /usr/src/release/.. -o
> |/usr/obj/usr/src/release/vm.vhd; mkdir -p
> |/usr/obj/usr/src/release/vm-image; env TARGET=amd64 TARGET_ARCH=amd64
> |SWAPSIZE=1G /usr/src/release/scripts/mk-vmimage.sh -C
> |/usr/src/release/tools/vmimage.subr -d
> |/usr/obj/usr/src/release/vm-image -i /usr/obj/usr/src/release/vmdk.img
> |-s 20G -f vmdk -S /usr/src/release/.. -o
> |/usr/obj/usr/src/release/vm.vmdk; mkdir -p
> |/usr/obj/usr/src/release/vm-image; env TARGET=amd64 TARGET_ARCH=amd64
> |SWAPSIZE=1G /usr/src/release/scripts/mk-vmimage.sh -C
> |/usr/src/release/tools/vmimage.subr -d
> |/usr/obj/usr/src/release/vm-image -i /usr/obj/usr/src/release/qcow2.img
> |-s 20G -f qcow2 -S /usr/src/release/.. -o
> |/usr/obj/usr/src/release/vm.qcow2; mkdir -p
> |/usr/obj/usr/src/release/vm-image; env TARGET=amd64 TARGET_ARCH=amd64
> |SWAPSIZE=1G /usr/src/release/scripts/mk-vmimage.sh -C
> |/usr/src/release/tools/vmimage.subr -d
> |/usr/obj/usr/src/release/vm-image -i /usr/obj/usr/src/release/raw.img
> |-s 20G -f raw -S /usr/src/release/.. -o
> |/usr/obj/usr/src/release/vm.raw; touch vm-image;'
> |.CURDIR='/usr/src/release'
> |.MAKE='make'
> |.OBJDIR='/usr/obj/usr/src/release'
> |.TARGETS='vm-image'
> |DESTDIR=''
> |LD_LIBRARY_PATH=''
> |MACHINE='amd64'
> |MACHINE_ARCH='amd64'
> |MAKEOBJDIRPREFIX=''
> |MAKESYSPATH='/usr/src/share/mk'
> |MAKE_VERSION='20170510'
> |PATH='/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
> |SRCTOP='/usr/src'
> |OBJTOP='/usr/obj/usr/src'
> |.MAKE.MAKEFILES='/usr/src/share/mk/sys.mk
> |/usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk
> |/etc/src-env.conf /usr/src/share/mk/bsd.mkopt.mk /etc/make.conf
> |/usr/src/share/mk/local.sys.mk /usr/src/share/mk/src.sys.mk
> |/etc/src.conf /usr/src/release/Makefile /usr/src/share/mk/bsd.obj.mk
> |/usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.opts.mk
> |/usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/bsd.compiler.mk
> |/usr/src/share/mk/bsd.subdir.mk /usr/src/share/mk/bsd.init.mk
> |/usr/src/share/mk/local.init.mk /usr/src/share/mk/src.init.mk
> |/usr/src/release/Makefile.vm /usr/src/release/Makefile.ec2
> |/usr/src/release/Makefile.azure /usr/src/release/Makefile.gce
> |/usr/src/release/Makefile.vagrant'
> |.PATH='. /usr/src/release'
> |*** Error code 1
> |
> |Stop.
> |make: stopped in /usr/src/release
> |.ERROR_TARGET='vm-release'
> |.ERROR_META_FILE=''
> |.MAKE.LEVEL='0'
> |MAKEFILE=''
> |.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'
> |_ERROR_CMD='.PHONY'
> |.CURDIR='/usr/src/release'
> |.MAKE='make'
> |.OBJDIR='/usr/obj/usr/src/release'
> |.TARGETS='release'
> |DESTDIR=''
> |LD_LIBRARY_PATH=''
> |MACHINE='amd64'
> |MACHINE_ARCH='amd64'
> |MAKEOBJDIRPREFIX=''
> |MAKESYSPATH='/usr/src/share/mk'
> |MAKE_VERSION='20170510'
> |PATH='/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
> |SRCTOP='/usr/src'
> |OBJTOP='/usr/obj/usr/src'
> |
> |
> |Is there a step I forget ?
> |Thanks for your time.
> |regards,
> |Johan
> |
> |_______________________________________________
> |freebsd-questions at freebsd.org mailing list
> |https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> |To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list