Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2017 14:11:47 +0300 (MSK)
From:      "Igor V. Ruzanov" <igorr@pochta.canmos.ru>
To:        Johan Hendriks <joh.hendriks@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: make WITH_VMIMAGES=yes release fails with permission denied.
Message-ID:  <alpine.BSF.2.00.1710051410080.59850@pochta.canmos.ru>
In-Reply-To: <963376ba-d16e-2a1a-ea2c-e35fbf68da0d@gmail.com>
References:  <963376ba-d16e-2a1a-ea2c-e35fbf68da0d@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.


|*** 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@freebsd.org mailing list
|https://lists.freebsd.org/mailman/listinfo/freebsd-questions
|To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1710051410080.59850>