Hi to you all I have a Nextcloud VM that was set up originally on Ubuntu 16 with a T&M Hansson script early in 2016, upgrading it almost problem free all the way to 15.0.0.
The biggest problem with my perfectly functioning VM is that PHP7.0 is EOL and i need to upgrade it. So I was thinking instead of upgrading only PHP, the best course of action would be upgrading the entire VM to Ubuntu 18.04, migrate MariaDB to PostgreSQL https://www.techandme.se/we-migrated-to-postgresql/, run a backup and restore everything to an entirely new Ubuntu 18.04 VM built from the latest script Nextcloud VM – T&M Hansson IT AB with all the new tech they have put into it.
Has anyone done this before me and perhaps know of some common pitfalls I would be very grateful if anyone would share their experience!
Nextcloud version : 15.0
Operating system and version : Ubuntu 16.04
Apache or nginx version : Apache 2.4.18
PHP version : 7.0.33
MariaDB : 10.0.36
Run the install script from Github Nextcloud VM repo
Export data and DB from old VM
Import data and DB to new VM.
It shouldn’t be necessary to do any further changes as long as everything else is default. If you made your on modifications, then you’d need to add them to the new VM as well.
well, i dont remember the exact numbering but it was like 6 month ago with Debian release 9 stable and virtualbox.
I kepted on having a fresh test netsintall with only the basics tools and openssl intalled crashing with a kernel panic…until i understood it was not the server image i was creating, but the virtualbox software having a bug, who was fixed liked two or three weeks later !
So, i am sorry, but as i have client paying on an hourly basis, having to sort out the virtualbox bug for free is surely not an advantage for me.
When you have a virtual server running in a virtual box running inside a windows i now call it a stupid complex freak show … to avoid at all cost, and having a test bench who cost like 500 eur is a no show for me.
FYI:
if windows used as an host for virtual box, the tracking numbering for bugs is up to 18233 tickets !
if linux is an guest for virtual box, the numbering is up to 18231 !
The source of course is : https://www.virtualbox.org/wiki/Bugtracker
And by the way, when using a VM, your facing two ways bugs, Host OS and Guest OS…
Hi y’all…
New VM is up and running. I got great help from Hansson IT (paid support) to convert from mysql to postgresql and moving db and data. Well worth the cost!
It was quite the process. Converting the 1,5 GB database took about 18 hours.
Moving the data was done with rsync. The biggest problem was actually pgsql import and authentication, but when that was sorted, all our clients connected like nothing have happened
stratege1401, if I wasn’t running a VM with the advantages of checkpoints/snapshots, this process would surely have been a true nightmare. Sorry to hear you have had bad experiences with Virtualbox. But keep in mind that virtualbox is not a professional nor a production ready solution. Though for testing purposes, or simple client virtualization, vbox would suffice. Here at our shop, we run all our servers as VM’s on Enterprise ready virtualization (Hyper-V 2016 w/replication to a second host) on real server hardware (HP Proliant DL380 G9). Doesn’t really compare to virtualbox now does it?
Nextcloud VM (https://github.com/nextcloud/vm) with Ubuntu 16.04 been running stable af since April 2016. The only reason we’re moving is because of PHP 7.0 is end-of-life as per Januar 2019.
Well, that’s the whole idea behind the Nextcloud VM, keeping it simple.
I currently host 36 VMs on my VMware host. No issues at all that was VM releated for the past 5 years. Running VMs makes it easy to:
Migrate
Move
Backup
Snapshot
Etc…
Each separate VM runs as a bare-bone server would do and I don’t notice any performance decrease at all, actually the opposite as you can over provision RAM, DISK, CPU and yeah just about anything.
I understand your position if you are running VIrtualBox, I didn’t have any great experience with that either, but hey - VMware is free (Player). Try it out.