diff --git a/virtcontainers/clh.go b/virtcontainers/clh.go index a90e48461e..b4ca05155f 100644 --- a/virtcontainers/clh.go +++ b/virtcontainers/clh.go @@ -600,6 +600,10 @@ func (clh *cloudHypervisor) generateSocket(id string, useVsock bool) (interface{ func (clh *cloudHypervisor) setupVirtiofsd(timeout int) (remain int, err error) { + if clh.config.VirtioFSDaemon == "" { + return timeout, errors.New("Virtiofsd path is empty") + } + sockPath, perr := clh.virtioFsSocketPath(clh.id) if perr != nil { return 0, perr