Author Topic: How to copy or move virtual machine to other zentyal  (Read 1219 times)

spst

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +3/-0
    • View Profile
How to copy or move virtual machine to other zentyal
« 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

turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Re: How to copy or move virtual machine to other zentyal
« Reply #1 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'.

spst

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +3/-0
    • View Profile
Re: How to copy or move virtual machine to other zentyal
« Reply #2 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

turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Re: How to copy or move virtual machine to other zentyal
« Reply #3 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.

spst

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +3/-0
    • View Profile
Re: How to copy or move virtual machine to other zentyal
« Reply #4 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

spst

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +3/-0
    • View Profile
Re: How to copy or move virtual machine to other zentyal
« Reply #5 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