diff --git a/libvirt/resource_libvirt_domain_test.go b/libvirt/resource_libvirt_domain_test.go index b10aec48b..0160c90da 100644 --- a/libvirt/resource_libvirt_domain_test.go +++ b/libvirt/resource_libvirt_domain_test.go @@ -1278,7 +1278,7 @@ func createTempBlockDev(devname string) (string, string, error) { } // Find an available loop device - cmd = exec.Command("/sbin/losetup", "--find") + cmd = exec.Command("sudo", "/sbin/losetup", "--find") loopdevStr, err := cmd.Output() fmt.Printf("Executing command: %s\n", strings.Join(cmd.Args, " ")) if err != nil {