Managed Conversion of Guests to Ovirt
Total Page:16
File Type:pdf, Size:1020Kb
Managed Conversion of Guests to oVirt Arik Hadas Senior Software Engineer Red Hat 21/8/15 KVM Forum, August 2015 Agenda ● Motivation ● Architecture ● Demonstration ● Implementation ● Future work KVM Forum, August 2015 Many ways to run Virtual Machines ● There are many virtualization tools ● Different hypervisors – KVM, E !"E Xi, Xen, VirtualBo$, .%% ● Different management systems – oVirt, virt'manager, v phere, Ganeti, .%% KVM Forum, August 2015 “I don't want to lose my VMs” ● Virtualization technologies are used for a long time ● +o standardization ● ,eople are tied up to the technologies they currently use ● Conversion tools are neede). KVM Forum, August 2015 virt-v2v ● ,art of virt tools – /pen source virtualization management tools ● Foreign hypervisor -0 KVM ● Standalone conversion tool KVM Forum, August 2015 Conversion to oVirt using virt-v2v ● Converts disk formats ● Enables VirtIO drivers (If needed) – Network, torage ● Fixes boot'loader ● ,roduces full oVirt-compatible OVF ● Outputs the VM in oVirt's export domain KVM Forum, August 2015 Drawbacks ● Slow ● Tedious ● Error-prone ● 5equires separate installation ● Do not support conversion of OVA 7les ● Error handlin& KVM Forum, August 2015 Our goal Improve the conversion process to oVirt – Faster – Tools are availa1le – Graphical user interface ● To con7&ure ● To monitor/cancel – Ro1ust – Support conversion of OVA files KVM Forum, August 2015 Design principles ● 8se virt-v9v capabilities – For &uest-level operations ● oVirt mana&es the conversion – -on7&ure conversion properties in admin portal – -reate disks – Monitor conversion pro&ress – -leanup on errors KVM Forum, August 2015 oVirt architecture view KVM Forum, August 2015 oVirt architecture view KVM Forum, August 2015 How virt-v2v is integrated in oVirt? KVM Forum, August 2015 virt-v2v is installed on each host KVM Forum, August 2015 High-level view of import in oVirt List VMs User selects the virtual machines to be imported and defines the conversion properties -onversion properties Import KVM Forum, August 2015 List VMs from VMware (1) &etExternalVmList list vSphere KVM Forum, August 2015 List VMs from VMware (2) VMs VMs vSphere KVM Forum, August 2015 Convert VM from VMware (1) convertVmFromExternal ystem vSphere KVM Forum, August 2015 Convert VM from VMware (2) OVF OVF vSphere KVM Forum, August 2015 List VM from virtual appliance (1) getOvaInfo /VA KVM Forum, August 2015 List VM from virtual appliance (2) VM VM /VA KVM Forum, August 2015 Convert VM from virtual appliance (1) convertOva /VA KVM Forum, August 2015 Convert VM from virtual appliance (2) /VF OVF /VA KVM Forum, August 2015 Faster and more efficient (1) 2;) -onvert 293 Import using virt-v2v usin& oVirt KVM Forum, August 2015 Faster and more efficient (2) -onvert Import External Storage Export Domain Data Domain KVM Forum, August 2015 Faster and more efficient (3) External Storage Export Domain Data Domain KVM Forum, August 2015 Faster and more efficient (4) External Storage Export Domain Data Domain -onvert External Storage Data Domain KVM Forum, August 2015 Using a proxy v phere KVM Forum, August 2015 Robustness ● Validations to prevent failures – Free space validation – #lock import o* runnin& Vms ● 5ollback upon conversion failure KVM Forum, August 2015 Demonstration https<""www.youtube%com"watch=v=yEjckA'Fri8 KVM Forum, August 2015 Implementation principles ● A)?ust virt-v9v to conversion that is managed by oVirt ● (eneralize the existin& import command in oVirt to support VMware & OVA as sources – :evera&e e$istin& functionality – E$tensi1le for other sources KVM Forum, August 2015 virt-v2v ● Support VDSM as an output – -opies to given )isks – ,ro)uce VM configuration in a given path – -on7&urable virtio-win )rivers ● Support virtual appliance as a source ● Support u/s virtio-win iso KVM Forum, August 2015 oVirt ● VDSM bri)&es the engine and virt-v9v ● (eneralize import from export-domain ImportVmCommandBase ImportVmCommand ImportVmFromExternalProviderCommand ● +ew import-VM dialog & VM'providers KVM Forum, August 2015 Support additional sources ● ources that are supported by virt-v2v – Xen, :ibvirt, Hyper-V – houl) be similar to import from VMware ● Enhance import o* virtual appliance – OVA 7les *rom IS/')omain – Uploade) OVA file ● Physical hosts – Usin& virt-p9v KVM Forum, August 2015 Improve the API with virt-v2v ● table API for monitorin& virt-v2v pro&ress – Alternative for parsin& output stream – Error co)es – Events ● Enhance the API with virt-v2v – upport multiple destination storage domains – upport volume type per')isk KVM Forum, August 2015 Inside oVirt ● Generalize 'v2v jo1s' to non' PM jo1s ● Common con7&uration for imported VM ● Extend con7&ura1le properties o* imported VM KVM Forum, August 2015 THANK YOU! http://www.ovirt.org [email protected] [email protected]#ovirt KVM Forum, August 2015.