Re: OpenBSD migration
Hello Nick, actually, this is the way I did it :) Machine is already migrated - it took less then 2hrs (I remember when i built it last year it took almost whole weekend ) ... M> On 11/19/18 2:29 PM, Nick Holland wrote: On 11/17/18 15:13, Martin Sukany wrote: Hi, 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. I'd be glad for any personal experience / recommendations. NOTE: Server is not so important so downtime is not a problem here I'm going to suggest option 3... 3) Restore from backup. You got a backup, right? You think it works, right? Here's /THE/ time to find out. I have done image migrations (dd partition->file, dd file->partition), I've done complete rebuilds, and they all work if done properly. OpenBSD is easier than most other OSs, regardless of how you do it, if you understand all the pieces. But really, this is when you get to test your backup. And, this should be the lowest down-time -- you can fully test the new system (AND FIX YOUR BACKUP PROCESS) before you flip the switch. Nick.
Re: OpenBSD migration
On 11/17/18 15:13, Martin Sukany wrote: > Hi, > > 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. > > I'd be glad for any personal experience / recommendations. > > NOTE: Server is not so important so downtime is not a problem here I'm going to suggest option 3... 3) Restore from backup. You got a backup, right? You think it works, right? Here's /THE/ time to find out. I have done image migrations (dd partition->file, dd file->partition), I've done complete rebuilds, and they all work if done properly. OpenBSD is easier than most other OSs, regardless of how you do it, if you understand all the pieces. But really, this is when you get to test your backup. And, this should be the lowest down-time -- you can fully test the new system (AND FIX YOUR BACKUP PROCESS) before you flip the switch. Nick.
Re: OpenBSD migration
Thanks Guys, I decided to go trough fresh installation ... M> On 11/18/18 3:23 PM, Mitchell Riedstra wrote: Hi Martin, On Sat, Nov 17, 2018 at 3:18 PM Martin Sukany 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 -- Martin Sukany UNIX Engineer - Solaris / Linux / OpenBSD L3 specialist www.sukany.cz
Re: OpenBSD migration
Hi Martin, On Sat, Nov 17, 2018 at 3:18 PM Martin Sukany 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
Re: OpenBSD migration
On Sat, Nov 17, 2018 at 10:42:57PM +0100, Ingo Schwarze wrote: > Hi Martin, > > Martin Sukany wrote on Sat, Nov 17, 2018 at 09:13:15PM +0100: > > > 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. > > I'd recommend option 1), reinstall. > > I have no idea whether or not option 2) will work. It may or may not. > If it doesn't, you end up doing a reinstall anyway, and nobody will be > interested in the reasons why it didn't work for you. Such a thing > simply isn't supported. > > Yours, > Ingo > I second reinstall. If you are concerned about setting things up the same I tend to do as couple tricks to make my setup portable. I have a tgz I created of important ~/.config items, mostly related to my openbox setup. I have git repos for my vim, mutt, fish, and ~/.local/bin items. I have a tgz of important /etc items, particularly vm.conf virtual host info for vmm, pf, etc. Lastly I have a master file of my installed packages created from pkg_info (forget the specific flags) but you can feel that file to a pkg add and let it install everything for you. Ken
Re: OpenBSD migration
Hi Martin, Martin Sukany wrote on Sat, Nov 17, 2018 at 09:13:15PM +0100: > 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. I'd recommend option 1), reinstall. I have no idea whether or not option 2) will work. It may or may not. If it doesn't, you end up doing a reinstall anyway, and nobody will be interested in the reasons why it didn't work for you. Such a thing simply isn't supported. Yours, Ingo
OpenBSD migration
Hi, 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. I'd be glad for any personal experience / recommendations. NOTE: Server is not so important so downtime is not a problem here M>