diff --git a/lxd/device/device_utils_disk.go b/lxd/device/device_utils_disk.go index 68d51cb46e94..224e6f817056 100644 --- a/lxd/device/device_utils_disk.go +++ b/lxd/device/device_utils_disk.go @@ -505,7 +505,8 @@ func DiskVMVirtiofsdStart(kernelVersion version.DottedVersion, inst instance.Ins // Start the virtiofsd process in non-daemon mode. args := []string{ "--fd=3", - "--xattr", + // use -o flags for support in wider versions of virtiofsd. + "-o", "xattr", "-o", fmt.Sprintf("source=%s", sharePath), }