From owner-freebsd-virtualization@freebsd.org Tue Apr 6 15:03:54 2021 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 81A5A5D47B0 for ; Tue, 6 Apr 2021 15:03:54 +0000 (UTC) (envelope-from gjb@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FF9lZ3KY3z3LCZ; Tue, 6 Apr 2021 15:03:54 +0000 (UTC) (envelope-from gjb@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1617721434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FdJtjjvPzhx5n7kfojgn186mRKoP145es6bs+3rlC2A=; b=M5fnmiQttnjXWXNLyXEXwyoLR1fsl+2w71/+dCW32OEx/1X4iFG9N5n7FzSZJw74EhVzxW QOP7zoW99M3uaBP5GCrPAqecMYeYph7ZbtfV+QfCTVhd2e7KZ9wcLjClGa8SM6+my6wpBz TOo5J7JgQkaKywvRMZIhM2lWtRMmZ7JX0JyWpJbkO18o1FEmxq+xYuTppUzt771CKXQep1 oE0wIkrT9fGgZlJAr/oRiDzTpupkKoiqdok1vSxAWAJSD3UtmvRSAc/hQyzoa4bvi1ajV4 0kx0bKgEAjsGTgxteI41kDIvxdaaHIuX/J0bNMAkAOJiYBew6noIl7/4pubilQ== Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id 0397080F8; Tue, 6 Apr 2021 15:03:53 +0000 (UTC) (envelope-from gjb@freebsd.org) Date: Tue, 6 Apr 2021 15:03:51 +0000 From: Glen Barber To: John-Mark Gurney Cc: freebsd-virtualization@freebsd.org Subject: Re: resizing aarch64 image on arm64 Message-ID: <20210406150351.GW92026@FreeBSD.org> References: <20210406061943.GR14975@funkthat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sMP3l7aO1Ldl3x+Z" Content-Disposition: inline In-Reply-To: <20210406061943.GR14975@funkthat.com> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1617721434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FdJtjjvPzhx5n7kfojgn186mRKoP145es6bs+3rlC2A=; b=o5UfJRrvFaiEKrbuP63zF34qwJEDcQicYhmK7PcrhOl39nqLT8iq5wGINkvqjUbd4+S2/q Q/6442VVF3IUHVZre+D74n8+svbPmsx8CqHU9wtBc0fc8fqL8shE9NCpQ3ck9a5NOFo6RE zLUxuqHZa7N2NeH2PdOEYwnMxXU6fW6cg5I1mwAa8gbDQ21yvdCkR7B7QL4PSxg83N79ZV doKwcblhDeEQmURsiwPrAsluXWiD8xukAgONr+95YaISKBppX2Sv8lc4UnM5K70f7Fe3rd k2bNe51X5rXdySSRDVyBtGmi+flxi8aii82Mhm4hNx0mktrvvn+UXv5QmVuFTg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1617721434; a=rsa-sha256; cv=none; b=ae2X1PHUcsxVORKJ1qyR3gvR8wLPFYQKZEB0pJkjBen+5qi3HFl5Xx2X2z6CLyby18MmzI NE5baeiOVJRXbAZn3tWFS+NNv7GjfBHPIG44iDfASostMfAtTyPSJ81bRQlKwM9Cbb6McQ Nm5gutpjCpC+VlcNIN5JE+pvYkYK7kd9PpQ3HMIjvimMC7UkRg6UmlZQfFhdpo8vqh8IRR 4JVx/09HrVnRd4M0gUBGrlrneml2lUw8wqou4Oa/mf0/JNx4p7pfGHi3Yn+08zuFp4ZaKZ kLhKVNa0IwIsRmchZffNX2x5dqaapTKDiEvck644beuTg5oUcvUdMWnlT4+0Mg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2021 15:03:54 -0000 --sMP3l7aO1Ldl3x+Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 05, 2021 at 11:19:43PM -0700, John-Mark Gurney wrote: > tech-lists wrote this message on Mon, Apr 05, 2021 at 16:59 +0000: > > Can anyone tell me how to resize > > https://download.freebsd.org/ftp/releases/VM-IMAGES/13.0-RC5/aarch64/La= test/FreeBSD-13.0-RC5-arm64-aarch64.raw > >=20 > > on an amd64 host? >=20 > note that this has been unxz'd already. >=20 > truncate -s 6g FreeBSD-13.0-RC5-arm64-aarch64.raw # enlarge > mdconfig -f FreeBSD-13.0-RC5-arm64-aarch64.raw # make device > gpart recover md1 # fix up gpt > gpart resize -i 3 md1 # expand ufs partition > growfs md1p3 # grow ufs >=20 > Note that mdconfig may output a different md device than md1, use > that instead. >=20 The growfs(8) automatically runs at firstboot, so only the truncate(1) part is needed. Glen --sMP3l7aO1Ldl3x+Z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjRJAPC5sqwhs9k2jAxRYpUeP4pMFAmBseFcACgkQAxRYpUeP 4pNBWA//Y6aSIBtoTDpfj/eC5pXgKCstqRaFK3ZlVQ0nNr1egKl7LvkubQw9J5X3 FYXZnjcYSHZj5j0k3ZA43AuYeJpxylN+Ahue01ikwUay1TRIrJ5dkSySG5gfi+bb se9CpisBXb/l1RBTXPdopfrO8HkaUk1HD2lapts5BNGgxt3v698dJUDjsMNhVKz4 ckrIZgxeVQtOk7s2nBriYnI/Zfz1loTMiDzGA2r2n2d6vRPEhZ5tMFp/d7/D2edA zyTXU2z71h3+xNKjxc5qi302Pgrp1KbAA/Jpz9DEKZsfchE+IefbAh1Pk0Z9JUP4 /3wxkU//Q8ftJuFla7VhN2KoJp+zfCTeRbwh7pS0ju3Q2uONJlz0JJ7PxrTFV03h 4PL7/2bFBUrT+DK7JIXckkgTvsC0GtczadRQcRJDZ/2sHTNmtDEv2hphpob4TXkm T5Hu1pUHQhCZjtwj7ZLB2tgScXnKK9vBTA113E0loYykRzyDTWWSTJ0oJUztOJO7 BjuGvcqT+6u7hAHbcnWiTK05kHv9UDlscebk5LiyUZ2aVsQKr8khaQPSuyB+BBYb tRFLUO9BB2Nqgtea+AKgEdXR7VqpAkpdPbi8aqsHn/kE5GEcOFzFGDwsI2FtwH4w DENliiOD9s/uODfKdGSzUfU+yZY8C7PSrgGEDY0LUpSnLsZZZww= =pMhV -----END PGP SIGNATURE----- --sMP3l7aO1Ldl3x+Z--