ArchipelProject / Archipel

XMPP Based Orchestrator
http://archipelproject.org
GNU Affero General Public License v3.0
800 stars 126 forks source link

Question: How to import existing VMs (migrate from X to KVM) #1193

Open ikus060 opened 7 years ago

ikus060 commented 7 years ago

I need to migrate multiple VMs (VirtualBox and VMWare) into KVM. Converting the disk is simple, but I'm struggling to import the VM into Archipel.

Once I have converted the disk to qcow2, whats is the right locations to get it imported into Archipel ? Anything specific about the files name ? In Archipel Agent (Web Interface), whats is the procedure to create a new VM from the disk ?

CyrilPeponnet commented 7 years ago

A new vm starts from an entity that will create the folders in your %(archipel_folder_data)s/drives (by default in /var/lib/archipel). So as you are converting only the disk you don't have the xml definition yet. Then you can create a new vm in archipel, and put the qcow2 file to the %(archipel_folder_data)s/drives/<UUID> where <UUID> is the libvirt domain uuid. You will then be able to select the qcow in the UI definition part.