Creating a bootable volume in AWS under 12.1
Pete French
petefrench at ingresso.co.uk
Mon Oct 21 14:55:01 UTC 2019
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.
More information about the freebsd-stable
mailing list