]> xenbits.xensource.com Git - libvirt.git/commitdiff
virt-host-validate: require fuse for LXC if compiled in
authorGuido Günther <agx@sigxcpu.org>
Thu, 12 Oct 2017 14:51:13 +0000 (16:51 +0200)
committerGuido Günther <agx@sigxcpu.org>
Thu, 12 Oct 2017 19:32:07 +0000 (21:32 +0200)
Domains fail to start without fuse like

  error: internal error: guest failed to start: fuse: device not found, try 'modprobe fuse' first
  Failure in libvirt_lxc startup: no error

so check for it too.

References: https://ci.debian.net/data/autopkgtest/unstable/amd64/libv/libvirt/20171012_105903/log.gz

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
tools/virt-host-validate-lxc.c

index 2b906cc88a6caaf42d4d0584da838e67c44fbb50..64d9279c3046e8992ce29e671b2a4bb79d433c52 100644 (file)
@@ -93,5 +93,12 @@ int virHostValidateLXC(void)
                                         "BLK_CGROUP") < 0)
         ret = -1;
 
+#if WITH_FUSE
+    if (virHostValidateDeviceExists("LXC", "/sys/fs/fuse/connections",
+                                    VIR_HOST_VALIDATE_FAIL,
+                                    _("Load the 'fuse' module to enable /proc/ overrides")) < 0)
+        ret = -1;
+#endif
+
     return ret;
 }