Hi Martin,

On Sat, Nov 17, 2018 at 3:18 PM Martin Sukany <mar...@sukany.cz> wrote:
> I want to migrate OpenBSD 6.4 (stable) from VM to bare metal. I see, as
> usual, two options:
>
> 1) install everything from scratch
> 2) create some flashimage (I did such thing on Solaris few years ago)
> and apply the image on new hw.

OpenBSD is in many ways just files on a disk and it's possible to migrate from
a VM to bare metal with a dump, tarball, rsync or similar. This will
also require a
somewhat in-depth understanding of the boot process, and setting up the fstab
properly and perhaps other OpenBSD specific things I do not recall at this time.

It's certainly possible to get this understanding by reading the installer
scripts. I've had to do this on FreeBSD and Linux to migrate between hosting
providers w/o downtime. It's painful and filled with some trial and error . For
simple setups often takes longer than a re-install.

If downtime isn't a major concern just back-up the important things
and re-install.

As others have mentioned getting the list of installed packages is doable, and
even mentioned int the FAQ:

https://www.openbsd.org/faq/faq15.html#PkgDup

I hope this helps!

--
Mitch

Reply via email to