Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: spst on March 27, 2021, 04:07:14 pm

Title: How to copy or move virtual machine to other zentyal
Post by: spst on March 27, 2021, 04:07:14 pm
Hi,

I need to copy or move virtual machine to other zentyal.

How can I do it?

Thanks and Regards
Title: Re: How to copy or move virtual machine to other zentyal
Post by: turalyon on March 29, 2021, 12:59:45 pm
You can try to move the hard disk of the virtual machine to the new Zentyal server. The information of a virtual machine is located in the directory '/var/lib/zentyal/machines'.
Title: Re: How to copy or move virtual machine to other zentyal
Post by: spst on March 30, 2021, 11:06:13 pm
Hi turalyon,

thank you for your advice.

My problem is how can I copy or move my old zentyal VMs to new zentyal server without I need to create VMs on new zentyal server. Or I need to create them?

Any advice?

Thanks and Regards
Title: Re: How to copy or move virtual machine to other zentyal
Post by: turalyon on March 31, 2021, 06:08:31 pm
Hi,

I think that the steps to achieve your goal are:

1. Copy the VMs disks from your old Zentyal server to the new one.

2. Create the virtual machines with the same configuration but don't configure anything in the tab 'Device Settings' yet.

3. Once the directory of each VM have been created, move the hard drives to the correct directory.

4. Edit the VMs and configure the hard drive of that VM in the 'Device Settings' tab.

5. Finally, save changes and start the VM.

I don't know what is your current environment and also I didn't test this solution but I think it should work.
Title: Re: How to copy or move virtual machine to other zentyal
Post by: spst on April 01, 2021, 11:10:45 am
Hi turalyon,

thank you for your help.

I'm going to try it on weekend and I'll report you what happened...

Thanks and Regards
Title: Re: How to copy or move virtual machine to other zentyal
Post by: spst on April 04, 2021, 11:07:18 am
Hi turalyon,

I tested the scenario what you recommended.

The solution works. Thank you for your help.

Regards