Re: FreeBSD on AWS Graviton (t4g)

2021-01-20 Thread Rafal Lukawiecki via freebsd-cloud
> On 20 Jan 2021, at 18:54, Colin Percival wrote: > > If you run 'shutdown' from inside the EC2 instance it should work fine. Just > don't use the EC2 API to stop the ARM instances. The Autoscaling Group terminates and launches instances, I am afraid, as it discovers any issues. Unless I do a

Re: FreeBSD on AWS Graviton (t4g)

2021-01-20 Thread Colin Percival
On 1/20/21 5:21 AM, Rafal Lukawiecki wrote: > Ah, I just noticed a commit from Sept > 2020  > https://github.com/freebsd/freebsd-src/commit/1fc1a22868264f3a59074fe90cb2ac39309d63d5 > that > mentions pl061 use on EC2. I suppose that is likely to end up in 13.0, am I > right? Perhaps there is more wo

Re: FreeBSD on AWS Graviton (t4g)

2021-01-20 Thread Colin Percival
On 1/20/21 5:12 AM, Rafal Lukawiecki wrote: > Colin, I am only slowly realising the impact of the points you have made. :) > >>> On 20 Dec 2020, at 18:33, Colin Percival >> > wrote: >>> >>> * The EC2 API "shutdown" / "reboot" message is sent via a pl061 GPIO device >>>

Re: FreeBSD on AWS Graviton (t4g)

2021-01-20 Thread Rafal Lukawiecki via freebsd-cloud
> On 20 Jan 2021, at 13:12, Rafal Lukawiecki via freebsd-cloud > wrote: > > Colin, I am only slowly realising the impact of the points you have made. :) > >>> On 20 Dec 2020, at 18:33, Colin Percival wrote: >>> >>> * The EC2 API "shutdown" / "reboot" message is sent via a pl061 GPIO device >>

Re: FreeBSD on AWS Graviton (t4g)

2021-01-20 Thread Rafal Lukawiecki via freebsd-cloud
Colin, I am only slowly realising the impact of the points you have made. :) >> On 20 Dec 2020, at 18:33, Colin Percival wrote: >> >> * The EC2 API "shutdown" / "reboot" message is sent via a pl061 GPIO device >> and we're dropping it on the floor; consequently "reboot" does nothing at >> all, w

Re: FreeBSD on AWS Graviton (t4g)

2021-01-03 Thread Colin Percival
On 1/3/21 10:49 AM, Rafal Lukawiecki wrote: > I wonder if I am replicating what your AMI maker does anyway by building > things using make, or is this still the right way to go around. This is the right approach. The AMI Builder extracts a disk image of the release -- it doesn't do any building i

Re: FreeBSD on AWS Graviton (t4g)

2021-01-03 Thread Rafal Lukawiecki via freebsd-cloud
Once again, thanks for your help, Colin. The suggested steps worked and I have managed to build an updated ARM AMI with all the extra packages. I am testing it now and seems quite good. Shutdown behaviour does not bother me. Indeed, there was not enough space for make in /usr/obj (and not enough

Re: FreeBSD on AWS Graviton (t4g)

2021-01-01 Thread Rafal Lukawiecki via freebsd-cloud
> On 1 Jan 2021, at 21:01, Colin Percival wrote: > > Yes, if you want to build an AMI which is FreeBSD 12.2-RELEASE + security / > errata patches, you can launch the AMI Builder, then > > # svnlite co https://svn.freebsd.org/base/releng/12.2/ /usr/src/ > # make -C /usr/src DESTDIR=/mnt \ >bu

Re: FreeBSD on AWS Graviton (t4g)

2021-01-01 Thread Colin Percival
On 1/1/21 12:47 PM, Rafal Lukawiecki wrote: >> On 1 Jan 2021, at 20:29, Colin Percival > > wrote: >> On 1/1/21 4:33 AM, Rafal Lukawiecki wrote: >>> Colin, would I be able to build an updated RELEASE in the AMI maker before >>> I call mkami? In the days of 11.1 I had to

Re: FreeBSD on AWS Graviton (t4g)

2021-01-01 Thread Rafal Lukawiecki via freebsd-cloud
> On 1 Jan 2021, at 20:29, Colin Percival wrote: > > On 1/1/21 4:33 AM, Rafal Lukawiecki wrote: >> Oh, and a generic ARM issue: It's not a Tier 1 platform yet, so freebsd-update doesn't work and packages aren't always as up-to-date as on x86. But I think those are bei

Re: FreeBSD on AWS Graviton (t4g)

2021-01-01 Thread Colin Percival
On 1/1/21 4:33 AM, Rafal Lukawiecki wrote: > >>> Oh, and a generic ARM issue: It's not a Tier 1 platform yet, so >>> freebsd-update >>> doesn't work and packages aren't always as up-to-date as on x86. But I >>> think >>> those are being worked on... > > Colin, would I be able to build an updat

Re: FreeBSD on AWS Graviton (t4g)

2021-01-01 Thread Rafal Lukawiecki via freebsd-cloud
>> Oh, and a generic ARM issue: It's not a Tier 1 platform yet, so >> freebsd-update >> doesn't work and packages aren't always as up-to-date as on x86. But I think >> those are being worked on... Colin, would I be able to build an updated RELEASE in the AMI maker before I call mkami? In the

Re: FreeBSD on AWS Graviton (t4g)

2020-12-21 Thread Rafal Lukawiecki via freebsd-cloud
> On 20 Dec 2020, at 21:49, Colin Percival wrote: > > Not yet. I'll make an arm64 version of the AMI Builder and publish > the AMI ID at https://www.patreon.com/cperciva . Many thanks, Colin. I just noticed you have published it. I will be testing it tomorrow and Wed, fingers crossed. Rafal

Re: FreeBSD on AWS Graviton (t4g)

2020-12-20 Thread Colin Percival
On 12/20/20 11:11 AM, Rafal Lukawiecki wrote: >> On 20 Dec 2020, at 18:33, Colin Percival wrote: >> Things mostly work.  The remaining issues are: [snip] > > Many thanks, Colin, this is super-helpful. Do you have, by any chance, an > AMI-maker for 12.2 that works with t4g? Not yet. I'll make an

Re: FreeBSD on AWS Graviton (t4g)

2020-12-20 Thread Rafal Lukawiecki via freebsd-cloud
> On 20 Dec 2020, at 18:33, Colin Percival wrote: > > Things mostly work. The remaining issues are: > > * The EC2 API "shutdown" / "reboot" message is sent via a pl061 GPIO device > and we're dropping it on the floor; consequently "reboot" does nothing at > all, while "shutdown" does nothing

Re: FreeBSD on AWS Graviton (t4g)

2020-12-20 Thread Colin Percival
On 12/20/20 10:04 AM, Rafal Lukawiecki via freebsd-cloud wrote: > Has anyone got any experience running FreeBSD 12 on AWS Graviton instances > like t4g? I am considering switching from t3 due to what seems like a better > sticker price. Any warnings? Things mostly work. The remaining issues are

FreeBSD on AWS Graviton (t4g)

2020-12-20 Thread Rafal Lukawiecki via freebsd-cloud
Has anyone got any experience running FreeBSD 12 on AWS Graviton instances like t4g? I am considering switching from t3 due to what seems like a better sticker price. Any warnings? Thank you for your wisdom. -- Rafal Lukawiecki Data Scientist Project Botticelli Ltd