Re: switch from i386 to AMD64 without a total rebuild?

From: Andrea Venturoli <ml_at_netfence.it>
Date: Mon, 18 Sep 2023 07:59:26 UTC
On 9/17/23 04:38, paul beard wrote:
> Can I 
> somehow put AMD64 on the clone? Or do I have to start from scratch and 
> then add all the packages and configs, etc?

Hello.

I've done this in the past, some 10-15 years ago (no UEFI, no ZFS, no 
boot environments at the time).
So it's definitely possible, but unfortunately I don't remember exactly 
how I did it:
_ basically I installed kernel & world (same version, different arch, 
with the COMPAT_FREEVSD32 option on); I don't remember if I compiled the 
kernel on a different machine and moved it here or what; I don't even 
remember if I had to do this while booting from USB or DVD;
_ I compareed all /etc with the original amd64 one in order to check if 
some tweaking was needed;
_ up and running;
_ later I recompiled all ports (no Poudriere at the time, but 
portupgrade). BEWARE if you have kernel modules from ports.

I did this because it was a production machine which could not be taked 
down for long and the customer had no spare one to reinstall; if you can 
a total reinstall might be easier.

  bye
	av.