I wonder if I could create some kind of Webmin / Virtualmin Cluster to connect multiple Webmin/Virtual min installations.
I’ve found that webmin may provide that, but I still not see, if it will be possible to move a virtualserver from Virtualmin (Installation 1) to another Virtualmin (Installation2) easily.
What are the easiest way to move VirtualServers and all it’s data and config from one Server to another?
Hi, I just did that 4 times in 1 day, there are few ways you could do this, filesystem backup in webmin, and backup your config files (2 separate steps all done in webmin), and upload it to new server or in my case i used virtualmin backup together with webmin config backup, i used ftp to create backups on my local windows server, but i recommend doing it through webmin filesystem as virtualmin wont have any software or modules you may have installed yourself
Ok, first try with Transfer Virtual Server didn’t work at least.
Then I’ve tried to do the way you told: Backup Virtual Server.
For this I’ve selected to upload it to external Webmin, and provide the root-credentials.
In the logs of the Backup, I can read, that everything should work smooth, at it notes, that the transfer to the destination server was finished successfully.
But I can’t find the uploaded backup-file anywhere at the new server.
Any Idea where it will be placed?
Also a bit strange… it tells me that the size is > 7GB, but should be uploaded in 30 seconds??!
not sure where it is by default, did you search for your backup.tar.gz file on the other server ? check the folders within /etc/webmin directory im guessing should be there
as i mentioned i use third party server dedicated only for my webmin/virtualmin backups and i simply upload it from there just in case something goes wrong
Ok, found it. /etc is not the right place, because thats are only for config files.
I’ve searched the Server with ncdu and found it at /usr/share/webmin/webmin/
@Sinisha82 ok, nice, restore in that way work like a charm.
Even the IP-Address in the DNS setting where replaced by the new ones. Very nice.
Thank you.
I found that it in first step even don’t work with the second variante.
The issue was, that there where still a user with the same name at the new Server.
Even if the log tells me, he try to reset this user and go on, it doesn’t work for both variants.
After I removed the Username, it works (partially) for the second variant.
I didn’t tried the first variant again, because it has a huge downside in my opinion: You can’t choose the SSH-Port of the Target-System. As I do change it for all my servers, I have to reconfigure the target-server back to port 22, to PermitRoot-Login and PermitPassword-Usage.
That’s such a huge downside in my opinion, that I better go with the Export-Import variant.
Means I do have an Apache / Nginx installation. And the Nginx-Config-Files are not placed to the new server. So the transfered VM didn’t fully work at least.
Ok, maybe I’ll try this later on. Would be great if you could add a hint on that field, that this is possible.
Would be good to be able to use it that way.
But what if you only allow Private-Key authentication on external Webmin-Server?
Could we not have something like the “Webmin Server” Option in VM-backups for the “Target-Section”?
I would vote for anywhere SSH is used to make something happen. That would include the transfers and import panels, but there may be others. I do a lot of this stuff from the shell so probably there are functionality panels I don’t know about that use SSH.