Skip to content
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

Error while taking stateful snapshot of LXD VM #729

Closed
pcgeek86 opened this issue Jun 19, 2023 · 0 comments · Fixed by #732
Closed

Error while taking stateful snapshot of LXD VM #729

pcgeek86 opened this issue Jun 19, 2023 · 0 comments · Fixed by #732
Assignees
Labels
Bug Confirmed to be a bug

Comments

@pcgeek86
Copy link

Summary

I’m trying to take a stateful snapshot of an LXD virtual machine. When I use the --stateful parameter, I get an error saying:

Error: Failed initializing state save to "/var/snap/lxd/common/lxd/virtual-machines/a01/state": Migration is disabled when VirtFS export path '/var/snap/lxd/common/lxd/devices/a01/config.mount' is mounted in the guest using mount_tag 'config'

Repro Steps

  1. Launch new LXD VM lxc launch --vm images:alpine/3.18 a01
  2. Set VM config lxc config set config.migration.stateful=true
  3. Set VM config devices.root.size.state: 1GiB
    a. NOTE: (copy devices config from lxc config show --extended a01)
  4. Attempt stateful snapshot: lxc snapshot a01 --stateful
  5. Observe error message

Original post: https://discuss.linuxcontainers.org/t/error-cant-create-stateful-snapshot-of-lxd-linux-vm/17464

@monstermunchkin monstermunchkin self-assigned this Jun 20, 2023
@monstermunchkin monstermunchkin added the Bug Confirmed to be a bug label Jun 21, 2023
monstermunchkin added a commit to monstermunchkin/distrobuilder that referenced this issue Jun 21, 2023
Fixes lxc#729

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed to be a bug
Development

Successfully merging a pull request may close this issue.

2 participants