Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1692035

Summary: libvirt can't start QEMU on rawhide: -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny: failed to install seccomp syscall filter in the kernel
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: agedosier, berrange, clalancette, itamar, jforbes, laine, libvirt-maint, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-25 12:52:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 910269    
Attachments:
Description Flags
Full log none

Description Richard W.M. Jones 2019-03-23 14:33:48 UTC
Description of problem:

libguestfs cannot create an appliance through libvirt.  It fails with:

$ libguestfs-test-tool
[...]
Original error from libvirt: internal error: process exited while connecting to monitor: 2019-03-23T14:31:27.986230Z qemu-system-x86_64: -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny: failed to install seccomp syscall filter in the kernel [code=1 int1=-1]

Version-Release number of selected component (if applicable):

kernel 5.1.0-0.rc1.git2.2.fc31.x86_64
libvirt-5.1.0-3.fc31.x86_64
qemu-4.0.0-0.2.rc0.fc31.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Run libguestfs-test-tool

Comment 1 Richard W.M. Jones 2019-03-23 14:34:27 UTC
Created attachment 1547277 [details]
Full log

Comment 2 Daniel Berrangé 2019-03-25 12:34:41 UTC
(In reply to Richard W.M. Jones from comment #0)
> Description of problem:
> 
> libguestfs cannot create an appliance through libvirt.  It fails with:
> 
> $ libguestfs-test-tool
> [...]
> Original error from libvirt: internal error: process exited while connecting
> to monitor: 2019-03-23T14:31:27.986230Z qemu-system-x86_64: -sandbox
> on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny:
> failed to install seccomp syscall filter in the kernel [code=1 int1=-1]
> 
> Version-Release number of selected component (if applicable):
> 
> kernel 5.1.0-0.rc1.git2.2.fc31.x86_64
> libvirt-5.1.0-3.fc31.x86_64
> qemu-4.0.0-0.2.rc0.fc31.x86_64

Are you sure about this kernel version ? I can only get a kernel-5.1.0-0.rc1.git2.1.fc31 from rawhide - koji doesn't show any git2.2 build

I couldn't reproduce in the git2.1 build when trying to boot a plain guest via libvirt.

Comment 3 Daniel Berrangé 2019-03-25 12:38:49 UTC
BTW, are there any AVCs from SELinux when this happens ?

Comment 4 Richard W.M. Jones 2019-03-25 12:52:30 UTC
Thanks for looking at this.  This has now "fixed itself" after I upgraded everything to
Rawhide (ie. after dnf update --best) + a reboot, so I guess this is NOTABUG.

I'm going to close this but if it reoccurs in future will reopen with the additional
information you requested.