From owner-freebsd-questions@freebsd.org Thu Oct 5 10:51:03 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A70B4E34896 for ; Thu, 5 Oct 2017 10:51:03 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2E0D36B083 for ; Thu, 5 Oct 2017 10:51:03 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id u138so1337541wmu.4 for ; Thu, 05 Oct 2017 03:51:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=LC+19o1ZlNiug+R2drmGFLGXinUoL7VY+8yGkZukCHc=; b=F2QU24OY2WjujYlpBWRm2XMwrn8U8WfjEcgUAMIbLKdOMVAVW7VayS61IONvK/wMPu k0eZkWKwBYylXJiuwTvWJnY1NPXYwyqaXprI9jd+Auj1xxKa+Bx0FWGa7vpHmWH7GuDe 9i+nuAqxuWbZI2X4K5xbGLI0EUIS07I7PBnd5Z5fR6J9EqTs/ngnfPbFi4g0XjcYVKsY A63+DQvq6s9Rmb6Bt4M9TOcLDRWaz3CV+9IgHS8es+tqLQOszAcq0tO5s10zYV8CXF6y O9n8BYgCLAzHgQ4O9iUIUY1Oi1zoqWC1nJhm1JQwGAxRmJwttl+FtoZpkAaKs/2Awcfn V+Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=LC+19o1ZlNiug+R2drmGFLGXinUoL7VY+8yGkZukCHc=; b=st/vmwxrdDMEtzSYHu6Qlz5jYPrfIC7dpG36k6D5wE1HN/ptqt5NqO9mj6cJbtbNwo 0yqBiEcCIfVAxFhPsTktmFWY6RdMgUaA4O+vc8jr6ToRiSb77Mm6e9no5vS3V8L/dd1c GCP+dW0DLB5DmWsa2bovbqJgtZ6eBvR55/hPhmRrhyqykpRml239NA4eOPcvNqOvRqaj hgHEJzlnK7XDWTUxeFw5gR8L2jsUNLm/GHOWF4YzcfYOCbtq7x7Fm6YKcm1Dx6ZpGBjS /PaC0lNvjU4RLZ/NxV69TxSiF8/tW510uu/6fbQNO9RTR4klTLegW+aHI34Doe8pIjrL h5aw== X-Gm-Message-State: AMCzsaVuCZHbAozLZwjCXmazGww9JO1x4Qumrb7gnheKDcIh+dpVxFuC hQJyscOLO1+O0CRFwJm9Bp5atw== X-Google-Smtp-Source: AOwi7QAol23jy2VggqGiMtcqkkVFJ+i6Gs352SBYvelNYkG0a4MQCawLqjVHvaiKQvQuObcyZ86u9A== X-Received: by 10.80.169.78 with SMTP id m14mr6860699edc.118.1507200661392; Thu, 05 Oct 2017 03:51:01 -0700 (PDT) Received: from Johans-MacBook-Air-2.local (92-111-79-242.static.chello.nl. [92.111.79.242]) by smtp.googlemail.com with ESMTPSA id p45sm10209839edc.30.2017.10.05.03.51.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 03:51:00 -0700 (PDT) To: freebsd-questions@freebsd.org From: Johan Hendriks Subject: make WITH_VMIMAGES=yes release fails with permission denied. Message-ID: <963376ba-d16e-2a1a-ea2c-e35fbf68da0d@gmail.com> Date: Thu, 5 Oct 2017 12:52:24 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Language: nl Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2017 10:51:03 -0000 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* *** 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