Bug 1276215 - [RFE] Live Import of libvirt VMs
Summary: [RFE] Live Import of libvirt VMs
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backend.Core
Version: 3.6.0.1
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: meital avital
URL:
Whiteboard:
Depends On: 1302427
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-29 06:23 UTC by Christopher Pereira
Modified: 2018-05-21 10:42 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-21 10:42:56 UTC
oVirt Team: Virt
Embargoed:
tjelinek: ovirt-4.0.0?
michal.skrivanek: planning_ack?
michal.skrivanek: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

Description Christopher Pereira 2015-10-29 06:23:33 UTC
We need to import libvirt managed VMs into oVirt without restarting the VM.
Workarounds and external scripts are welcome.
Pausing and saving the VM state for later restoring inside oVirt is ok.
Comments and ideas to implement this feature are very appreciated.

Comment 1 Michal Skrivanek 2015-11-04 14:38:42 UTC
what kind of import are you looking for?
we do have "external VM" concept which allows us to control some basic functionality (start, stop, migrate) but doesn't allow to edit properties, etc.

For "proper" import we would need to do a full conversion potentially changing some of the devices...and that would require a restart

Comment 2 Christopher Pereira 2015-11-07 04:07:36 UTC
(In reply to Michal Skrivanek from comment #1)
> what kind of import are you looking for?

We have libvirt VMs running on oVirt hosts and want to be able to control them from Engine.

> we do have "external VM" concept which allows us to control some basic
> functionality (start, stop, migrate) but doesn't allow to edit properties,
> etc.

Sounds good. How can we get oVirt to detect those external VMs?
It seems this is not being done by default.

Comment 3 Christopher Pereira 2015-11-07 07:18:22 UTC
BTW, external libvirtd VMs (not handled by oVirt) are shutting down when vdsmd is restarted and I guess/hope this can be avoided by adding the VMs as "external VMs" into oVirt.

I found the "externalVMList" patch [1] and was able list the external VMs via vdsClient, but I don't see any option or docs telling how to import them into Engine (the "Import Virtual Machine" dialog is only showing "VMWare", "Export Domain" and "OVA" sources).

Are this features available in 3.6?

[1] : https://gerrit.ovirt.org/#/c/33309/

Comment 4 Christopher Pereira 2015-12-23 18:35:24 UTC
(In reply to Christopher Pereira from comment #3)
> BTW, external libvirtd VMs (not handled by oVirt) are shutting down when
> vdsmd is restarted and I guess/hope this can be avoided by adding the VMs as
> "external VMs" into oVirt.

Please ignore this last comment. I found and solved this particular problem:
https://bugzilla.redhat.com/show_bug.cgi?id=1279248

Anyway, we have dozens of VMs in production which were originally created via oVirt, but are currently managed via libvirt (outside oVirt) because of different issues (all reported, some solved).

We would like to import them back to oVirt with minimum downtime.

Comment 5 Moran Goldboim 2016-03-21 10:21:52 UTC
postponing to future version, based on capacity and prioritization.

Comment 6 Christopher Pereira 2016-04-30 02:01:41 UTC
(In reply to Michal Skrivanek from comment #1)

> we do have "external VM" concept which allows us to control some basic
> functionality (start, stop, migrate) but doesn't allow to edit properties,
> etc.

Are libvirt VMs being detected as "external VM"?
Doesn't seem to work on 3.6 at least.

Comment 7 Shahar Havivi 2016-05-17 11:23:58 UTC
(In reply to Christopher Pereira from comment #6)
> (In reply to Michal Skrivanek from comment #1)
> 
> > we do have "external VM" concept which allows us to control some basic
> > functionality (start, stop, migrate) but doesn't allow to edit properties,
> > etc.
> 
> Are libvirt VMs being detected as "external VM"?
> Doesn't seem to work on 3.6 at least.

bz 1302427 merged upstream and it will be in 4.0

Comment 8 Red Hat Bugzilla Rules Engine 2016-05-17 11:24:51 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 9 Red Hat Bugzilla Rules Engine 2016-05-17 11:25:54 UTC
This request has been proposed for two releases. This is invalid flag usage. The ovirt-future release flag has been cleared. If you wish to change the release flag, you must clear one release flag and then set the other release flag to ?.

Comment 11 Michal Skrivanek 2016-07-27 12:43:03 UTC
There was some initial confusion here, this is NOT bug 1302427, this one requests import of live running VMs which is out of scope of bug 1302427. Hence moving back to unassigned state

Comment 12 Yaniv Kaul 2018-05-21 10:42:56 UTC
We have not touched this RFE for a long time and do not have the capacity to handle it right now. Deferring for the time being.


Note You need to log in before you can comment on or make changes to this bug.