t@freebsd.org X-Mailer: interia.pl/pf09 X-Originating-IP: 45.148.42.24 Message-Id: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=dk; t=1775687693; bh=VSPb4kjjJJrVS9/WQyiT7adVeq0o786yH9DH5K95Shs=; h=Date:From:Subject:To:Message-Id:MIME-Version:Content-Type; b=KHfX+dfsDIn996aTjkDRR6bJIGI7YF2eAkH/U2D0Ievin3pbfoplEDpMXwYoQlMwK NS+AQ7beYs5mO1B7R717BH7ZpCa4EjTkwid490FqOHQL2yt6TkRV7/luPTVRwitepc fzhkkWi0hXehN7oFRdDK8vAUM0Db9tvTbL2NALo4= X-Spamd-Result: default: False [-3.59 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.992]; DMARC_POLICY_ALLOW(-0.50)[interia.pl,none]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:217.74.64.0/22]; R_DKIM_ALLOW(-0.20)[interia.pl:s=dk]; RWL_MAILSPIKE_VERYGOOD(-0.20)[217.74.67.75:from]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_FROM(0.00)[interia.pl]; SUSPICIOUS_AUTH_ORIGIN(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:16138, ipnet:217.74.64.0/22, country:PL]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[interia.pl:+]; HAS_XOIP(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org,freebsd-hackers@freebsd.org,freebsd-stable@freebsd.org]; FREEMAIL_ENVFROM(0.00)[interia.pl]; DWL_DNSWL_NONE(0.00)[interia.pl:dkim] X-Rspamd-Queue-Id: 4frdDP1vf8z3l2V X-Spamd-Bar: --- Hi, I want to build VM images from source, the same ones that are here: - https://download.freebsd.org/releases/VM-IMAGES/15.0-RELEASE/amd64/Latest= / What I did: host # pkg install gitup host # vi /usr/local/etc/gitup.conf host # grep -A 7 release /usr/local/etc/gitup.conf "release" : { "repository_path" : "/src.git", "branch" : "releng/15.0", "target_directory" : "/usr/src", "ignores" : [ "sys/[^\/]+/conf", ], }, host # gitup release # Host: git.freebsd.org # Port: 443 # Repository Path: /src.git # Target Directory: /usr/src # Want: 0730d5233286ff35e9fa83309faa1b2d52fe9a65 # Branch: releng/15.0 # Action: clone + /usr/src/.arcconfig + /usr/src/.arclint + /usr/src/.cirrus-ci/pkg-install.sh (...) + /usr/src/usr.sbin/zzz/Makefile.depend + /usr/src/usr.sbin/zzz/zzz.8 + /usr/src/usr.sbin/zzz/zzz.sh # # Please review the following file(s) for important changes. # /usr/src/UPDATING # # Done. host # gitup ports=20 # Host: git.freebsd.org # Port: 443 # Repository Path: /ports.git # Target Directory: /usr/ports # Want: 799ba8473b623f60d69693f6338fdefdb7d9b298 # Branch: main # Host: git.freebsd.org/s now =20 # Port: 443 # Repository Path: /src.git # Target Directory: /usr/src # Want: 0730d5233286ff35e9fa83309faa1b2d52fe9a65 # Branch: releng/15.0 (...) # Done. host # cd /usr/src host # make -j 24 buildworld buildkernel (...) -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Wed Apr 8 01:15:27 CEST 2026 -------------------------------------------------------------- >>> Kernel(s) GENERIC built in 147 seconds, ncpu: 72, make -j24 -------------------------------------------------------------- host # cd /usr/src host # make update-packages host # cd /usr/src/release host # cp release.conf.sample custom.conf host #:/usr/src/release # cat custom.conf=20 #!/bin/sh # DIRECTORY WITHIN WHICH RELEASE WILL BE BUILT CHROOTDIR=3D"/scratch" # VERSION CONTROL SYSTEM GITROOT=3D"https://git.freebsd.org/"; GITSRC=3D"src.git" GITPORTS=3D"ports.git" # SET src/ports/doc BRANCHES SRCBRANCH=3D"release/15" PORTBRANCH=3D"main" # TARGET ARCHITECTURE TARGET=3D"amd64" TARGET_ARCH=3D"amd64" KERNEL=3D"GENERIC" # SPECIFY CUSTOM make.conf AND/OR src.conf # MAKE_CONF=3D"/etc/local/make.conf" # SRC_CONF=3D"/etc/local/src.conf" # USE make(1) FLAGS # MAKE_FLAGS=3D"-s" # WORLD_FLAGS=3D"-j $(nproc)" # KERNEL_FLAGS=3D"-j $(nproc)" # MISCELLANEOUS 'make release' SETTINGS # NOPORTS=3D # NOSRC=3D # WITH_DVD=3D # WITH_COMPRESSED_IMAGES=3D # SET '1' TO DISABLE MULTI THREADED xz(1) COMPRESSION # XZ_THREADS=3D0 # SET TO NON-EMPTY VALUE TO SKIP CHECKOUT /usr/src IN chroot(8) # INTENDED FOR USE WHEN /usr/src ALREADY EXISTS SRC_UPDATE_SKIP=3Dskip # SET TO NON-EMPTY VALUE TO SKIP CHECKOUT /usr/ports in chroot(8) # INTENDED FOR USE WHEN /usr/ports ALREADY EXISTS PORTS_UPDATE_SKIP=3Dskip # SET TO NON-EMPTY VALUE TO BUILD VM IMAGES WITH_VMIMAGES=3Dyes # SET TO NON-EMPTY VALUE TO COMPRESS VM IMAGES WITH xz(1) # WITH_COMPRESSED_VMIMAGES=3D # IF 'WITH_VMIMAGES' SET - USE FOR NAME OF VM FILE VMBASE=3D"custom-vm" # IF 'WITH_VMIMAGES' SET - SET SIZE OF VM FILE VMSIZE=3D"10g" # IF 'WITH_VMIMAGES' SET - SET NEEDED FORMATS VMFORMATS=3D"vhdf vmdk qcow2 raw" # SET TO NON-EMPTY VALUE TO BUILD CLOUD VMS=20 # WITH_CLOUDWARE=3Dyes # IF 'WITH_CLOUDWARE' set - SPECIFY CLOUD PROVIDERS # CLOUDWARE=3D"EC2 GCE ORACLE VAGRANT-VIRTUALBOX VAGRANT-VMWARE" # IF 'WITH_OCIIMAGES' SET BUILD 'Open Container Initiative' (OCI) IMAGES # WITH_OCIIMAGES=3D # USE pkgbase(7) OR NOT WITH_PKGBASE=3Dyes host # pkg install pkg-provides host # cat << EOF >> /usr/local/etc/pkg.conf PKG_PLUGINS_DIR =3D "/usr/local/lib/pkg/"; PKG_ENABLE_PLUGINS =3D true; PLUGINS [ provides ]; EOF host # pkg plugins NAME DESC VERSION =20 provides A plugin for querying which package provides a particular file 0.7.4=20 host # pkg update -f Now ... This command exists with (0) exit status w/o doing anything: host # make release.conf=3Dcustom.conf vm-release Same for these: host # make release.conf=3Dcustom.conf vm-image host # make release.conf=3Dcustom.conf vm-images I even traced with truss(1) what binaries are missing and found them and in= stalled them: host # truss make release.conf=3Dcustom.conf vm-release 2>&1 | grep 'No suc= h' | grep bin/ | awk -F '"' '{print $2}' | while read I; do pkg provides "$= {I}$"; done Name : git-tiny-2.53.0 Comment : Distributed source code management tool (tiny flavor) Repo : FreeBSD-ports Filename: usr/local/bin/git Name : git-lite-2.53.0 Comment : Distributed source code management tool (lite flavor) Repo : FreeBSD-ports Filename: usr/local/bin/git Name : git-2.53.0 Comment : Distributed source code management tool=20 Repo : FreeBSD-ports Filename: usr/local/bin/git Name : py311-azure-cli-2.55.0_6 Comment : Microsoft Azure Command-Line Tools Repo : FreeBSD-ports Filename: usr/local/bin/az Name : bsdec2-image-upload-1.4.10 Comment : Tool for creating Amazon EC2 AMIs Repo : FreeBSD-ports Filename: usr/local/bin/bsdec2-image-upload Name : bsdec2-image-upload-1.4.10 Comment : Tool for creating Amazon EC2 AMIs Repo : FreeBSD-ports Filename: usr/local/bin/bsdec2-image-upload Name : google-cloud-sdk-563.0.0 Comment : Google Cloud SDK for Google Cloud Platform Repo : FreeBSD-ports Filename: usr/local/bin/gcloud Name : qemu-tools-10.2.2 Comment : QEMU CPU Emulator (tools only) Repo : FreeBSD-ports Filename: usr/local/bin/qemu-img Name : qemu-nox11-10.2.2 Comment : QEMU CPU Emulator (without X11) Repo : FreeBSD-ports Filename: usr/local/bin/qemu-img Name : qemu-devel-10.1.20251130_1 Comment : QEMU CPU Emulator - development version Repo : FreeBSD-ports Filename: usr/local/bin/qemu-img Name : qemu-10.2.2 Comment : QEMU CPU Emulator=20 Repo : FreeBSD-ports Filename: usr/local/bin/qemu-img Name : qemu-tools-10.2.2 Comment : QEMU CPU Emulator (tools only) Repo : FreeBSD-ports Filename: usr/local/bin/qemu-img Name : qemu-nox11-10.2.2 Comment : QEMU CPU Emulator (without X11) Repo : FreeBSD-ports Filename: usr/local/bin/qemu-img Name : qemu-devel-10.1.20251130_1 Comment : QEMU CPU Emulator - development version Repo : FreeBSD-ports Filename: usr/local/bin/qemu-img Name : qemu-10.2.2 Comment : QEMU CPU Emulator=20 Repo : FreeBSD-ports Filename: usr/local/bin/qemu-img Name : git-tiny-2.53.0 Comment : Distributed source code management tool (tiny flavor) Repo : FreeBSD-ports Filename: usr/local/bin/git Name : git-lite-2.53.0 Comment : Distributed source code management tool (lite flavor) Repo : FreeBSD-ports Filename: usr/local/bin/git Name : git-2.53.0 Comment : Distributed source code management tool=20 Repo : FreeBSD-ports Filename: usr/local/bin/git host # pkg install git py311-azure-cli bsdec2-image-upload google-cloud-sdk= qemu-nox11 The 'make release' works: host # make -j 24 release.conf=3Dcustom.conf release (...) --- memstick.img --- 192, 1760768 Populating `../memstick.img.part' Image `../memstick.img.part' complete Creating `/tmp/efiboot.bfoUNW' /tmp/efiboot.bfoUNW: 65528 sectors in 65528 FAT32 clusters (512 bytes/cluster) BytesPerSec=3D512 SecPerClust=3D1 ResSectors=3D32 FATs=3D2 Media=3D0xf0 SecPerTrack=3D63 Heads=3D255 HiddenSecs=3D0 HugeSectors=3D66584 FATsecs=3D5= 12 RootCluster=3D2 FSInfo=3D1 Backup=3D2 Populating `/tmp/efiboot.bfoUNW' Image `/tmp/efiboot.bfoUNW' complete --- disc1.iso --- 1+0 records in 1+0 records out 32768 bytes transferred in 0.000102 secs (321466061 bytes/sec) --- release --- make -C /usr/src/release -j 24 -J 15,16 release-done --- release-done --- touch release true ... but the VMIMAGES are not built ... or maybe I am doing something wrong. The contents in /usr/src/release/Makefile and release(7) are alsoe differen= t. Please advice. Thanks, vermaden