Hi all,
i'm tring to copy a file that i have uploaded on Resources on vro.
This is the script i'm tring to use:
var host = vm.sdkConnection;
var guestOperationsManager = host.guestOperationsManager;
var guestAuth = new VcNamePasswordAuthentication();
guestAuth.username = vmUsername;
guestAuth.password = vmPassword;
var fileManager = guestOperationsManager.fileManager;
result = false;
var guestTargetPath = guestFilePath;
var fileAttributes = new VcGuestWindowsFileAttributes();
var ftInfo = fileManager.initiateFileTransferToGuest(vm, guestAuth, guestTargetPath, fileAttributes, true, new File(vcoPath).length, true);
try {
fileManager.putFile(vcoPath, ftInfo.url);
result = true;
} catch (e) {
System.log("Errore durante il caricamento del file: " + e);
result = false;
}
But every time i get "Permission denied on file :......."
I've cheched the file permissions and are ok (comparing with other files i uploaded on Resources so i don't have to modify js-io.rights.conf).
Can someone help me to understand what i'm doing wrong?
Ps: i'm usig vro embedded (8.13.1.22344444 ) on vra ( 8.13.1.32340 (22360938) ) and i'm new to vRealize (or Aria) world. I'm learnign whis solution from 2 month, so any link to usefull guide, documentation and descriptions is super appreciated!
Thanks all