All Posts

Hi @stoevm  Thanks for checking this issue and replying I will go through shared docs and come back. **We are giving support for remote-vcp from vCenter version 8.
Hi kumargandhi With the new forwarding feature implemented in the SDK you do not even need the correct API endpoint in the UI. All you need is the target VC for which the call is intended. The clo... See more...
Hi kumargandhi With the new forwarding feature implemented in the SDK you do not even need the correct API endpoint in the UI. All you need is the target VC for which the call is intended. The clone-ticket can be send to any VC in the linked environment, and it will be forwarded to the VC from which vSphere Client the plugin is used. (this feature works for VCs >= 7.0u2 version) More information on this can be found in the vsphere client docs:  https://vdc-download.vmware.com/vmwb-repository/dcr-public/009a36e4-2f17-46fc-ac27-ea9f8bf8c923/9988800b-a054-42d0-ae61-18f0ceafff24/vSphereClientSDK-801.pdf Section: How to Delegate Session Authority to the Plug-in Server If your plugin is to work after 7.0u2 you can take advantage of this new feature. Otherwise before 7.0u2 the plugin needs to trust all vCenters in the linked environment and use the getApiEndpoint. The getApiEndpoint is not dependent on the linked environment, basically the guid is the one which determines for which VC the vsphere client will clone the session. This means that the api-endpoint is the same no matter for which VC you need a cloned ticket. Again it is best to use the new functionality which eliminates the need for the getApiEndpoint API call. 
Hi all I deploy the VMware Cloud Director 10.4 in my environment. And try to call vCloud API v37.2 by using Postman. Currently, I can only access the Organization and Vdc list information by the... See more...
Hi all I deploy the VMware Cloud Director 10.4 in my environment. And try to call vCloud API v37.2 by using Postman. Currently, I can only access the Organization and Vdc list information by the link below. https://<host>/cloudapi/1.0.0/orgs/ https://<host>/cloudapi/1.0.0/vdcs/ But the related documents don't provide the API method to get all the vApps information. (https://developer.vmware.com/apis/vmware-cloud-director/latest/) Is there any other way to access the vApps information using API v37.2? Including vApp's urn, id, and VM information. Thank you! Best Regards, Chen
Hi @Denis_Chorbadzh  I checked the Java code for getUserSession()...In general what it does is read the values defined in the Configuration class, like, there are few constants defined in the class,... See more...
Hi @Denis_Chorbadzh  I checked the Java code for getUserSession()...In general what it does is read the values defined in the Configuration class, like, there are few constants defined in the class, and Java backend just sets and gets these values?, looks like they are hardcoded or reading from env fields? (Not entirely sure, I am not a Java dev) But, the getUserSession() API from the Html bridge JavaScript actually gives the serversInfo and linkedServersInfo dynamically. PFB screenshot. It's sad that htmlClientSdk (JavaScript APIs) doesn't have such API!!. We have a linked vCenters setup and we are having trouble fetching the right api-endpoint that we need to set in the headers for our API calls. PFB screenshot of out current setup. We have two plugin instances, each with its own vCenter. Now the problem is getting the right api-endpoint for the selected plugin instance. PFB code for the three headers we set in the remote-vcp UI code.   // Below are the headers we set for UI API calls. getHttpClientHeaders(): any { return { "vcenter-guid": this.getGUID(), "vmware-api-ui-endpoint-url": this.getUIApiEndpointUrl(), "vmware-api-session-id": this.getVMwareAPISessionId() }; } // Below fetching the API end point, but what about for linked setup!! getUIApiEndpointUrl() { return this.gs.getClientSdk().app.getApiEndpoints().uiApiEndpoint.fullUrl; }   Can you please provide some feedback? Thanks.
I am building a plugin and created some stock workflows I want to distribute with it. The package content in question is purely Workflows at this time. I am running this command from my machine to ... See more...
I am building a plugin and created some stock workflows I want to distribute with it. The package content in question is purely Workflows at this time. I am running this command from my machine to do the package import with Maven: mvn o11n-package:import-package -DserverUrl=vro01.domain.local -Dusername=administrator@vsphere.local -Dpassword=******** -DpackageName=mypluginpackage But, when I attempt to run the import-package goal, I get this error: [ERROR] Failed to execute goal com.vmware.o11n.mojo.pkg:o11n-package-maven-plugin:8.4.2:import-package (default-cli) on project o11nplugin-myplugin-package: Unable to import package [mypluginpackage], from server '[vro01.domain.local]': Error while extracting response for type [class com.vmware.o11n.sdk.rest.client.stubs.InventoryItemsList] and content type [application/xml;charset=UTF-8]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: Could not unmarshal to [class com.vmware.o11n.sdk.rest.client.stubs.InventoryItemsList]: unexpected element (uri:"http://www.vmware.com/vco", local:"inventory-items"). Expected elements are <{}actions>,<{}categories>,<{}configurations>,<{}interactions>,<{}inventory-items>,<{}owners>,<{}packages>,<{}resources>,<{}tags>; nested exception is javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.vmware.com/vco", local:"inventory-items"). Expected elements are <{}actions>,<{}categories>,<{}configurations>,<{}interactions>,<{}inventory-items>,<{}owners>,<{}packages>,<{}resources>,<{}tags> -> [Help 1] I monitored the vco-server-app_access.log and saw that it was able to communicate to the /catalog endpoint and return HTTP 200 responses, so I know my credentials are at least OK. 2023-05-05T18:45:29.287Z INFO vco [host='vco-app-857b668df-8j2nb' thread='http-nio-8280-exec-6' user='Administrator@VSPHERE.LOCAL' org='-' trace='-'] - 10.244.0.92 - - [05/May/2023:18:45:29 +0000] GET /vco/api/catalog/System/Package/?conditions=name%7Emypluginpackage HTTP/1.1 200 128 7 ms 2023-05-05T18:45:47.303Z INFO vco [host='vco-app-857b668df-8j2nb' thread='http-nio-8280-exec-2' user='Administrator@VSPHERE.LOCAL' org='-' trace='-'] - 10.244.0.92 - - [05/May/2023:18:45:47 +0000] GET /vco/api/catalog/System/UserInteraction HTTP/1.1 200 32 4 ms This Orchestrator authenticates with CIS/vCenter only. I've also tried using newer versions of the SDK, such as 8.9.0 but I get the same result. Here is my Maven/JDK information: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00) Maven home: /opt/apache-maven/apache-maven-3.3.9 Java version: 20, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk-20.jdk/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "13.3.1", arch: "x86_64", family: "mac" Anyone have any ideas why this could be occurring?
Hi Experts, Is there any way to set the firewall rule to allow or block the IP range for VCSA (VAMI) through PowerCLI ? For the reference I have attached the screenshot.  Please let me kn... See more...
Hi Experts, Is there any way to set the firewall rule to allow or block the IP range for VCSA (VAMI) through PowerCLI ? For the reference I have attached the screenshot.  Please let me know. I am  looking forward to hear you.  Regards Leo. 
I have used the following Postcustomization script. Which creates a random password sends it password to the guestinfo variable and makes the user reset it upon login. #!/bin/bash log=/var/log/cust... See more...
I have used the following Postcustomization script. Which creates a random password sends it password to the guestinfo variable and makes the user reset it upon login. #!/bin/bash log=/var/log/cust_output.log if [[ "x${1}" = "xprecustomization" ]]; then password=$(openssl rand -base64 12) echo "root:$password" | chpasswd vmtoolsd --cmd "info-set guestinfo.custom.password $password" passwd --expire root elif [[ "x${1}" = "xpostcustomization" ]]; then echo "customization complete..." >> ${log} fi
I want to create script python to configure ip address, dns,... of VM in vmware, but I have this error:  AttributeError: 'NoneType' object has no attribute 'CustomizeVM' """ from pyVim.connect ... See more...
I want to create script python to configure ip address, dns,... of VM in vmware, but I have this error:  AttributeError: 'NoneType' object has no attribute 'CustomizeVM' """ from pyVim.connect import SmartConnect from pyVmomi import vim from pyVim.connect import SmartConnect import ssl import requests from pyVmomi import vim # Désactiver les avertissements SSL requests.packages.urllib3.disable_warnings() ssl._create_default_https_context = ssl._create_unverified_context # Virtual machine information vm_name = 'centos' ip_address = '192.168.1.100' subnet_mask = '255.255.255.0' gateway = '192.168.1.1' dns_server = "192.157.0.2" # Connect to the vCenter Server si = SmartConnect(host="172.16.143.137", user="root", pwd="pwd!") content = si.RetrieveContent() vms = content.viewManager.CreateContainerView(content.rootFolder, [vim.VirtualMachine], True).view for vm in vms: if vm.name == vm_name: adapter_map = {} for device in vm.config.hardware.device: if isinstance(device, vim.vm.device.VirtualEthernetCard): adapter_map[device.deviceInfo.label] = device #Create a new IP settings object ip_settings = vim.vm.customization.IPSettings() ip_settings.ip = vim.vm.customization.FixedIp() ip_settings.ip.ipAddress = ip_address ip_settings.subnetMask = subnet_mask ip_settings.gateway = [gateway] ip_settings.dnsServerList = [dns_server] ip_settings.dnsDomain = "" adapter = vim.vm.customization.AdapterMapping() adapter.adapter = ip_settings adapter_map[device.deviceInfo.label] = adapter # Create the customization spec and apply it to the VM spec = vim.vm.customization.Specification() spec.nicSettingMap = list(adapter_map.values()) customizer = content.customizationSpecManager try: task = customization_spec_manager.CustomizeVM(vm=vm, spec=spec) task.wait_for_completion() except vmodl.fault.SystemError as e: print("Error: %s" % e.msg) continue Disconnect(si) """
Hello, I'm using Postman and trying to provision Edge in our LAB environment, here is the Body in JSON:   {     "params": {         "name": "kamran",         "customInfo": "test",         "co... See more...
Hello, I'm using Postman and trying to provision Edge in our LAB environment, here is the Body in JSON:   {     "params": {         "name": "kamran",         "customInfo": "test",         "configurationId": "4647",         "serialNumber": null,         "site": {             "id": null,             "created": null,             "name": null,             "contactName": "Kamran",             "contactPhone": null,             "contactMobile": null,             "contactEmail": "test@mail.com",             "streetAddress": null,             "streetAddress2": null,             "city": null,             "state": null,             "postalCode": null,             "country": null,             "lat": null,             "lon": null,             "timezone": null,             "locale": null,             "shippingSameAsLocation": 1,             "shippingContactName": null,             "shippingAddress": null,             "shippingAddress2": null,             "shippingCity": null,             "shippingState": null,             "shippingPostalCode": null,             "shippingCountry": null,             "modified": null         },         "haEnabled": true,         "edgeLicenseId": "175",         "modelNumber": "edge6X0",         "enterpriseProxyId": 21     },     "id": null }     Getting JSON error:   {     "error": {         "code": -32603,         "message": "validationError",         "data": {             "valid": false,             "error": [                 {                     "code": "EDGE_PROVISION_0002",                     "message": "Configuration id must be provided while provisioning the edge",                     "path": "configurationId"                 }             ],             "warning": []         }     } }   ------------------------------   As you can see in JSON body, I have configurationId provided, not clear what else require   Appreciate any response,   Thank you.
I'm writing a code to use REST, where can I get all GUIDv4 parameters?
  • I'
How to solve this problem I'm trying to set up a Virtual Machine according to this video tutorial >https://www.youtube.com/watch?v=IQ2mbwENV78  
Hi Please Help Me. I'm looking for a guide on how to download a compatible toolkit - which allows macOS to run - on a Vmare Workstation Pro Virtual Machine for an AMD Processor. I looked up Video T... See more...
Hi Please Help Me. I'm looking for a guide on how to download a compatible toolkit - which allows macOS to run - on a Vmare Workstation Pro Virtual Machine for an AMD Processor. I looked up Video Tutorial on YouTube - but I'm still having trouble booting/starting from macOS on Vmare on my AMD.   I sincerely apologize if I posted in the correct section - if it is possible, I ask the moderator to move my post to another section.   https://www.youtube.com/watch?v=IQ2mbwENV78
I'm looking for a list of inbound IPs from cloud.vmware.com? I need to allow 443 for VMware Aria Operations (SaaS) Cloud Proxy in AWS Security Group. Thanks.
Hi there I'm importing a vAPP into vCD 10.3 using the OVFtool and the task gets stuck at 24%. It is now impossible to cancel the task (its been running 36hours) - I click on cancel but nothing happ... See more...
Hi there I'm importing a vAPP into vCD 10.3 using the OVFtool and the task gets stuck at 24%. It is now impossible to cancel the task (its been running 36hours) - I click on cancel but nothing happens. Any idea how I can cancel the task without having to reboot vCD?   thanks
複数のデータストアをもつVMをX vCenter vMotionしたい
I here is also the same problem, could you tell me you there the question then is how to solve?
ok everyone, I don't know where to post this one and the only thing I can find for automation is "SDK for Perl Discussions" but I'm not trying to use perl... I'm so very new to ESXi and have been tr... See more...
ok everyone, I don't know where to post this one and the only thing I can find for automation is "SDK for Perl Discussions" but I'm not trying to use perl... I'm so very new to ESXi and have been trying to automate deployments because my new job requires me to install ESXi on machines, send them out to serve their purpose for a week, when they return, I wipe and reimage. I know you are able to setup a PXE to image them, but I would like to take it a little further. So is it possible to do the following... During the PXE boot, it runs a script that will look at VNIC0 to see what the MAC address is, based on the MAC address it will jump to a part of the script for specific deployment configurations (IE: IP address, username addition, etc...), but deploy to a specific NVME drive (I believe all of them have the same NVME drives but I need to install to a 128GB drive, not the other larger ones) I'm not asking anyone to do all the work for me, please point me in the right direction. I'm having a hard time following the documentation because am a visual / hands on learner and have a hard time focusing on reading, I don't need a DHCP server but that's all I seem to be finding online.   
request: https://xxx.xxx.xxx.xx/rest/com/vmware/content/library  response:  { "value": [ "626b7ee9-94ef-47f2-a8d3-28312186aa67", "568dd687-fa79-4400-8c22-ad3731fbccaf", "5fe3c57f-ac1d... See more...
request: https://xxx.xxx.xxx.xx/rest/com/vmware/content/library  response:  { "value": [ "626b7ee9-94ef-47f2-a8d3-28312186aa67", "568dd687-fa79-4400-8c22-ad3731fbccaf", "5fe3c57f-ac1d-4c18-aa4a-dc204372ffd8" ] }   获取单个library时404。response 中的id已存在。   request: https://xxx.xxx.xxx.xx /rest/com/vmware/content/library/626b7ee9-94ef-47f2-a8d3-28312186aa67 response { "name": "com.vmware.vapi.rest.httpNotFound", "localizableMessages": [ { "defaultMessage": "Not found.", "id": "com.vmware.vapi.rest.httpNotFound" } ], "majorErrorCode": 404 }
comment retrouver le mot de passe root ssh ? malheureusement nous l'avons perdu how to find ssh root password? unfortunately we lost it
Hello. I have a bit of a problem with vCenter API trying to set a customization on a machine (vm/guest/customization API call). I create the machine via the API and set sysprep customization there. T... See more...
Hello. I have a bit of a problem with vCenter API trying to set a customization on a machine (vm/guest/customization API call). I create the machine via the API and set sysprep customization there. Then I let it run for 10 minutes to give customization time to finish and turn it off via API as well. After this, I wish to set IP configuration on the machine using the API, but always end up with the 400, not allowed in current state error. This makes little sense to me as the machine is in powered off state (which I can confirm by calling GET on vm/power API endpoint) and I should only be getting this error if it is not powered off. Here are 2 slightly different configs I tried to pass in, for completeness: { "spec": { "configuration_spec": {}, "global_DNS_settings": { "dns_servers": [ "10.10.10.10", "10.10.10.13" ], "dns_suffix_list": [] }, "interfaces": { "adapter": { "ipv4": { "type": "STATIC", "ip_address": "10.142.142.142", "prefix": 24, "gateways": [ "10.142.142.1" ] }, "ipv6": { "type": "DHCP" }, "windows": { "dns_servers": [ "10.10.10.10", "10.10.10.13" ] } } } } } { "spec": { "configuration_spec": {}, "global_DNS_settings": {}, "interfaces": { "adapter": { "ipv4": { "type": "STATIC", "ip_address": "10.142.142.142", "prefix": 24, "gateways": [ "10.142.142.1" ] }, "ipv6": { "type": "DHCP" }, "windows": { "dns_servers": [ "10.10.10.10", "10.10.10.13" ] } } } } } Any idea why this is failing would be appreciated, as it does not make much sense to me. VCenter version 7.0.3