From owner-freebsd-stable@freebsd.org Mon Oct 21 14:55:01 2019 Return-Path: Delivered-To: freebsd-stable@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 D44DD1597B7 for ; Mon, 21 Oct 2019 14:55:01 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from constantine.ingresso.co.uk (constantine.ingresso.co.uk [31.24.6.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46xfnJ6spfz4MgN for ; Mon, 21 Oct 2019 14:55:00 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from [2a02:b90:3002:411::6] (helo=dilbert.ingresso.co.uk) by constantine.ingresso.co.uk with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iMZ5A-000HlV-ML for freebsd-stable@freebsd.org; Mon, 21 Oct 2019 14:54:52 +0000 Received: from petefrench by dilbert.ingresso.co.uk with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iMZ5A-000Iye-Ja for freebsd-stable@freebsd.org; Mon, 21 Oct 2019 15:54:52 +0100 To: freebsd-stable@freebsd.org Subject: Creating a bootable volume in AWS under 12.1 Message-Id: From: Pete French Date: Mon, 21 Oct 2019 15:54:52 +0100 X-Rspamd-Queue-Id: 46xfnJ6spfz4MgN X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=ingresso.co.uk; spf=pass (mx1.freebsd.org: domain of petefrench@ingresso.co.uk designates 31.24.6.74 as permitted sender) smtp.mailfrom=petefrench@ingresso.co.uk X-Spamd-Result: default: False [-5.89 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:31.24.6.74]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-3.09)[ip: (-9.70), ipnet: 31.24.0.0/21(-4.85), asn: 16082(-0.84), country: GB(-0.08)]; DMARC_POLICY_ALLOW(-0.50)[ingresso.co.uk,none]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16082, ipnet:31.24.0.0/21, country:GB]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Oct 2019 14:55:01 -0000 Does anyone have any pointers to how to make bootable AWS volumes for FreeBSD ? I did this once, a long time ago, but its eluding me now. Am just trying to simply clone a machine I have deployed from the 12.1 AMI for now, just to see where I am going wrong. I ceate the machine, I attach a new drive. use gpart to make two GPT partititons - one if freebsd-boot, the bother is freebsd-ufs.I Install the protective MBR, I install gptboot into the first partition and I run newfs on the second and copy the whole system from / onto it. As far as I know that shuld make a bootable disc - its certainly what I would do with real discs. But it does not boot. Umpon booting off the original disc and reattaching the new disc I note that the GPT table need recovering for some reason. I also ran gpart on the existing volume (the one created from the AMI) and that reports GPT but with only 4 entries. If I try 'gpart backup' and 'gpart restore' to try and make the 2nd drive layed out identical to the first then gpart tells me that '4' is an invalid number of entries. So, I am confused. Can anyone enlighten me ? -pete. PS: What I was trying to do ws make the 2nd disc boot from ZFS, I only went back to UFS to try and see where I was going wrong by simply copying the existing setup. I know I had this working before a couple of years ago.