Yest, both two functions use several times to prepare NFS/iSCSI env, i considered to put some public modules, but not sure where is appropriate. So i will move this to utils_test.libvirt, thanks for your proposal.