Build world and kernel on another machine

The best way is not to transfer /usr/obj.

Instead do a `make installworld` with DESTDIR set to a NFS export of the intended target dir.
 
The best way is not to transfer /usr/obj.

Instead do a `make installworld` with DESTDIR set to a NFS export of the intended target dir.
I have no NFS connectivity between these two machines. The older one is behind several NATs.

So is my idea is realistic? Everything what's needed is in /usr/obj, isn't it? No hardware incomparably should occur, should it? (both are amd64 but from different "ages")
 
I have no NFS connectivity between these two machines. The older one is behind several NATs.

So is my idea is realistic? Everything what's needed is in /usr/obj, isn't it? No hardware incomparably should occur, should it? (both are amd64 but from different "ages")

I think /usr/obj will not install on its own. You have to copy over /usr/src as well.

Alternatively, use the build machine with a "DESTDIR" make installworld to a temp dir, and rsync or tar that over.

You could also set up VPN connections for a NFS mount.
 
Let's assume I do installworld to a temp dir, then make an image using mkimg, like explained here for example, then write the final image to a usb-stick, and then I boot another machine from the usb-stick.

Can I now install what is on the stick to the hard disk like
dd if=/dev/da0 of=/dev/sda0 ...
provided da0 is the usb-stick I have booted from
and sda0 is the hard disk on that machine?

P.S. while this message is pending in pre-moderated state I tried above myself. And it worked!
It's fun and amazing how much freedom there is with FreeBSD in doing various stuff.
Basically, I compiled, installed, and configured the system on one machine, then copied it over to another one, ran it there, and it all worked.
 
I think /usr/obj will not install on its own. You have to copy over /usr/src as well.

Alternatively, use the build machine with a "DESTDIR" make installworld to a temp dir, and rsync or tar that over.

You could also set up VPN connections for a NFS mount.
O.K. I 'll try it with DESTDIR. And for kernel it's the same?

Installation of NFS over VPN is too complicated for me.
 
I think /usr/obj will not install on its own. You have to copy over /usr/src as well.

Alternatively, use the build machine with a "DESTDIR" make installworld to a temp dir, and rsync or tar that over.

You could also set up VPN connections for a NFS mount.
Thank you, the solution you proposed worked out. But some files like libelf.so.2 had schg flag on them, so tar complained it couldn't copy them over existed ones. Luckily, not many of such minor troubles.
 
Back
Top