From nobody Mon Nov 18 17:13:22 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XsZ2p55JBz5dLv2 for ; Mon, 18 Nov 2024 17:13:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XsZ2p3L5gz44HC for ; Mon, 18 Nov 2024 17:13:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731950002; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jfB8I33+wJ1WDae+XQcfUddlg2KHTH3wOV4vCEoZe5U=; b=PjDnfcftGAN3d/Y6w+DImXT0WzykV1NTX3uNesT/DD17dkC6oFAsrr/IqjHa1rD/nZ02C/ rOZ2XgJhkBZBJJ//RCycCwCmjWqFRm4MRIpTiMWbV3CMLNAdoDF29oS15D1HpSz+VslNcz bohpWB678e8cc1KOU/sgJHqIhLXfgSAQOhidHRghYkPA8SSXDuZfMjxYzCE3S0PBcaVs4u Nr3u+jlYKkBEDh9/kplh47Q6cqwYe+0+qkirsFBZJqVv74tLRnxJ1Vp4DMxikiKElzFMkD 2WuySS6VtEuIRpK8Se2SQScMajLZ0MK03VhV2T/kp2RqcVnEt78Eeu15LmsCnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731950002; a=rsa-sha256; cv=none; b=QF5bken384GdiyyI2y+VwCRzN19yNwb9on8wmm3AXyiiMoeFa0gKt1ib8sfeKoQITWbNLB PkNb/alpv0xLejhyj01bBnOQ1O5ds8FH6BU6CY9S8hUV6MJtqt4e3TzUGyS8RZpT5X62aq fB6p74ku3N2CJC+C+wlOYy2uubAhWfHIRcRS2o9NcLzwfzhFC5WNnxnj/5ysW8iMjoh4O8 6idGFvxEDiTo2ju01ru4eyfui3zg5oHF5E+iLVsg72kgAktzW2Q/QEG13T8MWvFYUvVoXW OO3y/yd2uHoQdVT6h17hv7X+l3LxIky3iGUY27zrKLNinYGMV/L4vjWVfrofGQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XsZ2p2xjpzpgq for ; Mon, 18 Nov 2024 17:13:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4AIHDMFS011623 for ; Mon, 18 Nov 2024 17:13:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4AIHDMKK011622 for bugs@FreeBSD.org; Mon, 18 Nov 2024 17:13:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 282832] makefs zfs creates images with the same guid Date: Mon, 18 Nov 2024 17:13:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pat@patmaddox.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282832 --- Comment #6 from Pat Maddox --- My root pool is copied from release / our prior convo: makefs -t zfs -s 20g \ -o poolname=3Dzroot -o bootfs=3Dzroot/ROOT/default -o rootpath= =3D/ \ -o fs=3Dzroot\;mountpoint=3Dnone \ -o fs=3Dzroot/ROOT\;mountpoint=3Dnone \ -o fs=3Dzroot/ROOT/default\;mountpoint=3D/ \ -o fs=3Dzroot/home\;mountpoint=3D/home \ -o fs=3Dzroot/tmp\;mountpoint=3D/tmp\;exec=3Don\;setuid=3Doff \ -o fs=3Dzroot/usr\;mountpoint=3D/usr\;canmount=3Doff \ -o fs=3Dzroot/usr/ports\;setuid=3Doff \ -o fs=3Dzroot/usr/src \ -o fs=3Dzroot/usr/obj \ -o fs=3Dzroot/var\;mountpoint=3D/var\;canmount=3Doff \ -o fs=3Dzroot/var/audit\;setuid=3Doff\;exec=3Doff \ -o fs=3Dzroot/var/crash\;setuid=3Doff\;exec=3Doff \ -o fs=3Dzroot/var/log\;setuid=3Doff\;exec=3Doff \ -o fs=3Dzroot/var/mail\;atime=3Don \ -o fs=3Dzroot/var/tmp\;setuid=3Doff \ ${outfileroot} ${rootdir} and the data pool is another typical invocation: makefs -t zfs -s 100m \ -o poolname=3Dzdata -o rootpath=3D/ \ -o fs=3Dzdata\;mountpoint=3D/\;canmount=3Dnoauto \ -o fs=3Dzdata/usr\;mountpoint=3D/usr\;canmount=3Doff \ -o fs=3Dzdata/usr/local\;canmount=3Doff \ -o fs=3Dzdata/usr/local/poudriere \ ${BUILDDIR}/zdata.zfs ${BUILDDIR}/data ----- > the root pool should be reguid'ed on first boot anyway. The official VM = images configure this automatically (they set zpool_reguid=3Dzroot in /etc/= rc.conf) Good to know, I will check that out. I would kind of expect it to not work, because I think the boot process doesn't even make it that far as I showed above. I'll try it out and report back though. So I think it may be worth providing a way to 1) randomize the guid on crea= tion and/or 2) seed the RNG on creation. Extend this to a third disk: I have one root pool, one read-only pool with a dataset, and a third writable pool that contains long-lived data. I need al= l of these to have different GUIDs. The reason I may want to seed the RNG is because if I replace the root pool= , I want the VM to think it's the same. From the VM standpoint, it's like I exported the pool, imported it to another host, did some stuff on it, and imported it back on the VM. I happen to be reconstructing the disk via code, but no reason the VM needs to know that. --=20 You are receiving this mail because: You are the assignee for the bug.=