Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2019 15:54:52 +0100
From:      Pete French <petefrench@ingresso.co.uk>
To:        freebsd-stable@freebsd.org
Subject:   Creating a bootable volume in AWS under 12.1
Message-ID:  <E1iMZ5A-000Iye-Ja@dilbert.ingresso.co.uk>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1iMZ5A-000Iye-Ja>