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

VM: Use virtiofsd chroot sandbox mode on pre pidfd_open kernels #13794

Merged
merged 4 commits into from
Jul 22, 2024

Conversation

tomponline
Copy link
Member

@tomponline tomponline commented Jul 22, 2024

Otherwise virtiofsd doesn't start and this causes VMs to hang on start up when used on Ubuntu 18.04 generic kernels (4.15) with QEMU >= 8.0 (which replaced the bundled virtiofsd with an external one written in rust which defaults to namespace sandbox mode relying on pidfd_open syscall).

Fixes #12856

Tested on Ubuntu 18.04 4.15 kernel and Ubuntu 22.04 6.5 HWE kernel.

…ot sandbox mode on pre pidfd_open kernels

Otherwise virtiofsd won't start on Ubuntu 18.04 generic kernels (4.15).

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
…VirtiofsdStart

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
@tomponline tomponline self-assigned this Jul 22, 2024
@tomponline tomponline merged commit c0d6d24 into canonical:main Jul 22, 2024
28 checks passed
@tomponline tomponline deleted the tp-virtiofsd branch July 22, 2024 09:55
@tomponline
Copy link
Member Author

Have backported this fix into LXD 5.21.x and LXD 5.0.x via:

#13796
#13801

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VM fail to start in Ubuntu 18.04 using 5.0.3 (worked on 5.0.2)
2 participants