-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support live migration of VMs with attached volumes #12694
Comments
Hi @benoitjpnet, it looks like live migration isn't yet enabled on your cluster. You can confirm by checking the LXD daemons error logs using |
The only error I see is:
This lacks a more explicit error message. But thank you, I re-read the documentation and I missed:
Then I am doing |
Can you check the logs on both ends (source and target host)? One of them should tell that the migration has to be enabled in the config. |
Concerning the stuck part:
I use Ceph RBD + CephFS and it seems CephFS is not supported for live migration :( |
I was not able to find such logs/messages. |
I was able to reproduce the warnings including the hanging migration. I guess you have added a new CephFS storage pool to the MicroCloud cluster and attached one of its volumes to the @tomponline this looks to be an error on LXD side when migrating VMs that have a CephFS volume attached. Should we block migration of VMs with attached volumes? At least the error from qemu below kind of indicates that this is not supported. On the source host you can see the following log messages:
On the target side:
|
Correct. |
Thanks @roosterfish @benoitjpnet I have moved this to LXD for triaging. @benoitjpnet can you confirm that live migration works if there is no volume attached? |
Yes it works.
|
@MusicDin please can you evaluate what happens when trying to migrate (both live and non-live modes) a VM with custom volumes attached (filesystem and block types) and identify what does and doesn't work. I suspect we will need quite a bit of work to add support for live-migrating custom block volumes in remote storage, and that live migrating of VMs with custom local volumes isn't going to work either. So we are likely going to need to land an improvement to detect incompatible scenarios and return a clear error message, and then potentially add a work item for a future roadmap to improve migration support of custom volumes. |
#12733 improves the error the user sees in this situation. |
Seems relevant lxc/incus#686 |
Hi @boltmark as you're working on some migration work wrt to #13695 I thought it would also be a good opportunity for you to take a look at fixing this issue considering lxc/incus#686 |
Following cluster:
I start one VM:
I move it:
The text was updated successfully, but these errors were encountered: