OpenNebula / addon-xen

Xen hypervisor add-on
3 stars 13 forks source link

xen (live) migration/suspend/resume is incompatible with disk/nic attach/detach #4

Open jfontan opened 8 years ago

jfontan commented 8 years ago

Imported from: http://dev.opennebula.org/issues/3750

Contains patch

If xen (4.4.1) VM has dynamically attached disk and do live migration, then attached disk is lost in VM. If we detach disk and do live migration, then VM fails (go to UNKNOWN state).

The cause of problem is that attach/detach doesn't update VM config file deployment.X - live migration use it when restoring.

If we poweroff and resume VM before live migration, then it works as expected, because VM config file deployment.X is updated/regenerated.

The same problem could be for NICs and cold migration and suspend/resume.