Windspirit's Posts

Yeah...looks like I have to rethink my approach too.  @VMware...something to think about for the next fixes...a reload on the folder maybe? NEW version of Cool run now available for download...enjoy
Well...I have it working now...but its not really nice. If I start coolMail Subsystem (the one that gets the resource element and sends it) as an Async workflow, it works perfectly.  Its just not c... See more...
Well...I have it working now...but its not really nice. If I start coolMail Subsystem (the one that gets the resource element and sends it) as an Async workflow, it works perfectly.  Its just not clean.... it also means we are dealing with a stale object.
HI all, well after getting this fixed I found the same issue with resource Elements. I"m updating my CoolMail to also use attachments. You can get coolMail from here Detailed steps of the program:... See more...
HI all, well after getting this fixed I found the same issue with resource Elements. I"m updating my CoolMail to also use attachments. You can get coolMail from here Detailed steps of the program: I upload a file to vro as MimeAttachment. I create a resource element from it I put the path full path to that resource element into a string in a subroutine (that's used for mailing) I take the path and try to get the resource element again.  however its not there. This is for the test email program.  I tried: resourceFolder.reload() / refresh / update (doesn't work) waiting for 10 seconds The issue is I think I solved this some 8y back..but no records of it. CODE attached. WARNING: if you have coolMail already installed it will overwrite the existing install with the current verision
yeah I get the LAST ones for the last 7d. everything else is then using the original...I just wonder why it is that I cant walk the whole Tasks for a given VM....from beginning to end. For that this... See more...
yeah I get the LAST ones for the last 7d. everything else is then using the original...I just wonder why it is that I cant walk the whole Tasks for a given VM....from beginning to end. For that this works: for each (task in collector.readNextTasks(100)){ System.log(task.name+" "+task.reason.userName +" "+task.startTime); } for each (task in collector.readPreviousTasks(100)){ System.log(task.name+" "+task.reason.userName +" "+task.startTime); }
HI all, I need to get all task of a VM. I found Solved: Retrieve tasks and events for a Virtual Machine - VMware Technology Network VMTN var sdktm = vcvm.sdkConnection.taskManager; var filter = new... See more...
HI all, I need to get all task of a VM. I found Solved: Retrieve tasks and events for a Virtual Machine - VMware Technology Network VMTN var sdktm = vcvm.sdkConnection.taskManager; var filter = new VcTaskFilterSpec(); var spec = new VcTaskFilterSpecByEntity(); spec.entity = vcvm.reference; spec.recursion = VcTaskFilterSpecRecursionOption.self; filter.entity = spec; var collector = sdktm.createCollectorForTasks(filter); collector.resetCollector(); var taskPage; while ((taskPage = collector.readPreviousTasks(10)) != null) { for each (var task in taskPage) { System.log("Task: " + task.name + " -> " + task.startTime); } } and it kind of works....HOWEVER: I can only see the task from the last days. NOT the tasks that just happend.... What am I doing wrong? Thanks  
Well...sometimes....looking helps. VRO 8.8 has the funktion inbuild in Libary/vCenter/Cluster and Compute resources/Remove virtual machine DRS group from cluster and it was remove...just didn't do ... See more...
Well...sometimes....looking helps. VRO 8.8 has the funktion inbuild in Libary/vCenter/Cluster and Compute resources/Remove virtual machine DRS group from cluster and it was remove...just didn't do it right MyVCClusterDRSConfigExSpec.groupSpec[0].operation =  VcArrayUpdateOperation.remove; MyVCClusterDRSConfigExSpec.groupSpec[0].removeKey =  vm_group;
Hi all, So I found this lovely post https://communities.vmware.com/t5/vRealize-Orchestrator/vRO-Workflow-to-Place-vCD-vAPP-VM-s-in-a-DRS-Affinity-Rule/m-p/2277814#M20176  That helped me to get the ... See more...
Hi all, So I found this lovely post https://communities.vmware.com/t5/vRealize-Orchestrator/vRO-Workflow-to-Place-vCD-vAPP-VM-s-in-a-DRS-Affinity-Rule/m-p/2277814#M20176  That helped me to get the DRS rules going...BUT...anyone an idea how to delete them. Its properly staring me in the face but I have been hacking around for a bit and cant seam to get it done. Looking at the API for it...its properly via the Array.remove...BUT...not getting it, thanks  
Added DRS VM Host for VM to Host rules: var addUpdateRule = new VcClusterVmHostRuleInfo(); addUpdateRule.name = ruleName; if (type=="must"){ addUpdateRule.mandatory = true; addUpdateRule.af... See more...
Added DRS VM Host for VM to Host rules: var addUpdateRule = new VcClusterVmHostRuleInfo(); addUpdateRule.name = ruleName; if (type=="must"){ addUpdateRule.mandatory = true; addUpdateRule.affineHostGroupName= hostGrpName; addUpdateRule.antiAffineHostGroupName =null; } if (type=="should"){ addUpdateRule.mandatory = false; addUpdateRule.affineHostGroupName= hostGrpName; addUpdateRule.antiAffineHostGroupName =null; } if (type=="mustNot"){ addUpdateRule.mandatory = true; addUpdateRule.affineHostGroupName= null; addUpdateRule.antiAffineHostGroupName =hostGrpName; } if (type=="shouldNot"){ addUpdateRule.mandatory = false; addUpdateRule.affineHostGroupName= null; addUpdateRule.antiAffineHostGroupName =hostGrpName; } addUpdateRule.enabled = true; addUpdateRule.userCreated = true; addUpdateRule.vmGroupName = vmGrpName; var MyVCClusterSpec = new VcClusterConfigSpecEx() ; var MyVcClusterRulesSpec= new Array(); MyVcClusterRulesSpec[0] = new VcClusterRuleSpec(); MyVcClusterRulesSpec[0].operation = VcArrayUpdateOperation.add; MyVcClusterRulesSpec[0].info = addUpdateRule; var MyVCClusterDRSConfigExSpec = new VcClusterConfigSpecEx() ; MyVCClusterDRSConfigExSpec.drsConfig = new VcClusterDrsConfigInfo(); MyVCClusterDRSConfigExSpec.drsConfig.enabled = true; MyVCClusterDRSConfigExSpec.rulesSpec = MyVcClusterRulesSpec; MyVCClusterDRSConfigExSpec.rulesSpec[0].operation = VcArrayUpdateOperation.add; return cluster.reconfigureComputeResource_Task(MyVCClusterDRSConfigExSpec , true);
Thanks heaps. as usualy relaod() isnt in the API docu.  
So here is a funny thing: when running the same workflow (session) a config element's content isn't refreshed. Meaning: you have a workflow running for some time and it's checking a config element ... See more...
So here is a funny thing: when running the same workflow (session) a config element's content isn't refreshed. Meaning: you have a workflow running for some time and it's checking a config element in vro for its values. like so: isDone=true; confCat=Server.getConfigurationElementCategoryWithPath("vlabsMultiDeploy/"+id); for each (conf in confCat.configurationElements){ System.log("looking at :"+conf.name); if (conf.name=="deployInfo"){ continue; } status=conf.getAttributeWithKey("status").value; System.log(status); if (status=="new"||status=="working"){ isDone=false; break; } } Now you have during the runtime of the Workflow an external workflow changing the content of this Configuration Element. e.g. status="Created" The workflow that is still running won't see the update, it still looks at the old value. I even used a workflow instead of a scriptable task, as I thought that would look at a refreshed version...but no dice. Anyone any idea?
Mount / unmount ISO add /remove NSX-T tag of VM (for network rules) configure/unconfigure vReplication/SRM add/remove/change vCenter tag of VM (e.g. backup settings) user CoolRun to run a script... See more...
Mount / unmount ISO add /remove NSX-T tag of VM (for network rules) configure/unconfigure vReplication/SRM add/remove/change vCenter tag of VM (e.g. backup settings) user CoolRun to run a script in VM OS using vmware tools  
HI all, so Im trying to connect a ISO from Conent Libary to a VM. I have that halfway...and its "working" but its not very clean.       try{ var client = VAPIEndpoint.client(); var cli... See more...
HI all, so Im trying to connect a ISO from Conent Libary to a VM. I have that halfway...and its "working" but its not very clean.       try{ var client = VAPIEndpoint.client(); var clib = new com_vmware_content_library(client); if(clib.list){ var itemSvc = new com_vmware_content_library_item(client); for each(var clibrary in clib.list()){ var items = itemSvc.list(clibrary); for each(item in items) { var results = itemSvc.get(item); System.log("name :" +results.name); System.log("Libary :" +clib.get(results.library_id).name); } } } } finally{ client.close(); }   This is the Code cuming back from com_vmware_content_library_item   {creation_time=Mon Aug 02 03:03:34 GMT 2021, last_modified_time=Mon Aug 02 03:03:46 GMT 2021, last_sync_time=java.lang.Object@57c220df, description=, type=iso, version=1, content_version=2, library_id=1ab5ddc9-35f0-4cdc-90a7-61f1ba00c6d2, size=52328448, cached=true,name=DamnSmallLinux, id=1d5b5019-b66c-4d52-83fa-09b68660bea1, source_id=java.lang.Object@57c220df, metadata_version=1}       you can now mount the ISO by simple using the path. I still need to know the "Disk"where the libary is... ["disk" ] contentlib-[library_id]\[id]\DamnSmallLinux_0ff36c95-e4fa-461e-bf52-e06e79d7c75e.iso My problems: can't find the DISK that the library is connected to. I cant find the full name of the new Image. ATM I need to go into the Datastore and search for the only content in that Directory. (see the new name DamnSmallLinux_0ff36c95-e4fa-461e-bf52-e06e79d7c75e.iso) there must be a way to fully connect the VM using Content library in vRO. is there a VAPI that connects a CDROM? thanks Guys
OK. after long and hard tries ...here is how this works: 1) Get the plan link...thats the onboarding plan you allready have. GET /relocation/onboarding/plan -> planLink 2) get VM details GET /ia... See more...
OK. after long and hard tries ...here is how this works: 1) Get the plan link...thats the onboarding plan you allready have. GET /relocation/onboarding/plan -> planLink 2) get VM details GET /iaas/api/machines -> find VM, get name and id (needs to be reconstructed to "/resources/compute/[ID]" 3) create an onboarding deployment. Thats the ones you have in the deployment plan where VMs are assosiated to. Two options there. Eitehr use an existing Deployment or a new one. NEW DEPLOYMENT POST ​/relocation/onboarding/deployment {planLink,[name optional]} -> take the selflink that comes back. USE EXISTING GET  /relocation​/onboarding​/deployment -> selfLink 4) add VM to Onboarding plan POST /relocation/onboarding/resource {planLink,deploymentLink,resourceLink,resourceName} 5) Execute onboarding plan execute Plan POST /relocation/api/wo/execute-plan {planlink}
I need to automate onboarding. However, the existing APIs for this looks geared towards pre 8.4 (where there were rules) and I tested the call, but Im not getting anything done. https://code.vmware.... See more...
I need to automate onboarding. However, the existing APIs for this looks geared towards pre 8.4 (where there were rules) and I tested the call, but Im not getting anything done. https://code.vmware.com/apis/707/vrealize-automation-cloud-relocation-rest?p=vrealize-automation-cloud I need to add an item to the onboarding List and execute the plan. Any ideas?  
So...succes. You need a subscription with POST Deploy and then change the MAC using vRO.
So I tried Subscriptions as the "compute provision" and "Compute initial power on" have return values of macAddresses. however...doesn't work.
Hi all, been a long time. Simple Question properly now working (ATM 8.4.2). How can i set the MAC of a VM in the blueprint. I assume not and have to use an subscription. But anyhow...let me know i... See more...
Hi all, been a long time. Simple Question properly now working (ATM 8.4.2). How can i set the MAC of a VM in the blueprint. I assume not and have to use an subscription. But anyhow...let me know if you know.
Is this still unconfirmed offically by VMware or is this resolved. How about vSphere 7
I cant get that to work in 7.6. It works for the Build but not for the clone workflow. I tried with going to different stages or events and its not working. BTW: I attached a map of all the st... See more...
I cant get that to work in 7.6. It works for the Build but not for the clone workflow. I tried with going to different stages or events and its not working. BTW: I attached a map of all the stages and events as far as I documented them. I have a massive problem. my IaaS isnt powering on VMs anymore after upgrading. VMware tells me they will do a HF in like 2 month...until then I cant build anything. So skipping powerOn and then using vRO to power would work for me.
Hi, I solved this by doing the following: SSH into vro 8 run the following command      openssl req -nodes -newkey rsa:2048 -keyout vro8.mylab.local.key -out vro8.mylab.local.csr -subj "/C=AU/S... See more...
Hi, I solved this by doing the following: SSH into vro 8 run the following command      openssl req -nodes -newkey rsa:2048 -keyout vro8.mylab.local.key -out vro8.mylab.local.csr -subj "/C=AU/ST=Victoria/L=Melbourne/O=vleet apac/OU=testing/CN=vro8.mylab.local"; That creates two files. one CSR and a Key use the CSR to get a signed cert upload the signed cert with the intermediate and root  certs (ORDER: Host, intermediate, root) attach the key to the top of the file (Order: Private:host,intermediate,root) -> /root/cert.pem then run: vracli certificate ingress --set /root/cert.pem this showed an error about the sha254 but thats fine. just redrun the command vracli certificate ingress --set /root/cert.pem --sha256 [the sha key from the error message] wait till this finised the cd /opt/script and run ./deploy.sh This will take a while but work. Reload your browser   ENJOY!