Tag Archives: Virtualization

NSX-T Declarative API

This post was originally published on this site

I need to use declarative API to perform some automation tasks, for this instance i need to create few segments.


Below code is to create just a single segment and i am putting a Patch request to https://nsx-fqdn/policy/api/v1/infra




    “resource_type”: “infra”,

    “children”: [


        “resource_type”: “ChildSegment”,

        “Segment”: {

            “resource_type”: “Segment”,

            “display_name”: “Post01”,

            “id”: “Post01”






But i get the below error, can anyone please help to get this right


    “httpStatus”: “BAD_REQUEST”,

    “error_code”: 220,

    “module_name”: “common-services”,

    “error_message”: “Unexpected character (‘“’ (code 8220 / 0x201c)): was expecting double-quote to start field name”



This post was originally published on this site



Can someone please tell me:


I have a text file called ‘Server_IP’ and in that sheet it has all the IPs.

Is there anyway I can script and get the DNS names by doing nslookup of that IPs and get the result in excel sheet (Can save it in D drvie) like below:


(Column A)     (Column B)

Server IP         Server Name

Help regarding down sizing a vmware. Hidden snapshot inside? 200 GB

This post was originally published on this site



I have a vmware machine that has grown to big.

The local folder is about 192 GB


If I check the disk inside vmware(win10) the size is 85 GB

From settings there are 200GB allocated.

I think there are a issue regarding snapshot. I did delete snapshots a while
back(from the menu), but I think one off the VMDK files is that file..


I have taken a backup off the folder, and when I deleted the disk an re-attached
vmdk file, I was able to boot the old snapshots.


Can anybody gives me a hint?

Disk info

Not preallocated

Multipple files










Win10-00002.vmdk – This seems to be the running version



  1. Etc.




  1. Etc.







Service failed on vrops

This post was originally published on this site

I was looking at the f5 LB that we have in front of our vrops and noticed 2 of the noes were shown as offline. |Looking ta the health moniter it is using a API call GET /suite-api/api/deployment/node/statusrn


When i run those against the two that are shown as offline i get


This matches up with want i am seeing in the F5.


If i then run the suite-api/api/deployment/node/services/info which all need to be online for the above to go on line i get




All is good except the last one. I cant for the life of me find how to troubleshoot this or any documentation on the agent on the vrops appliance its self. I can fine loads of stuff on remote agents but not this. Anyone any ideas what the command line is to at least try and start it.


Edit: vrops 8.2

Advice on server hardware specification

This post was originally published on this site

Hi All,


Can I ask for a bit of advice.  I am looking at a HPE Server (ML350 Gen10) for a client (accounting firm) and wondered what specification you would use for the following scenario.


1 x VM – Windows Server 2019 / DC and network services / SQL Express running 2 server apps (IRIS and Virtual Cabinet)

– Note: SQL Express has a max database size limit of 10GB

– IRIS Server – Requirements 2 GHZ Processor / 16GB RAM / 300GB disk space

– Virtual Cabinet Server – Requirements 3Ghz Processor / 4GB RAM / 300GB disk space


1 x VM – Windows Server 2019 / RDS / 9 users running:

– Sage – Requirements 2Ghz Processor / 8GB RAM / Min 5GB disk space

– IRIS Client – Requirements 3Ghz Processor / 4GB RAM / Min 15GB disk space

– Virtual Cabinet Client – Requirements 2Ghz Processor / 4GB RAM / 150GB disk space


The current server is as follows:

– 1 x HP ML350p Gen8 with 24GB RAM / Raid 10 SAS drives

– Vmware ESXi 5.0 (Yes, this definitely should be upgraded)

– Services: DC running the server software detailed above.


The current Windows PC’s are as follows:

– i5 or i7 Processor with a minimum 8GB of RAM.  They are never maxed.


Any advice on the right specification hardware and the correct VMware licensing would be greatly appreciated.

absent of uploading preconfigured profiles for macOS

This post was originally published on this site

So when i have an preconfigured signed profile downloaded from here step 4 point 1 for macOS I can’t install from terminal any-longer since Apple has removed that option from version 10.15.4. WS1 doesn’t support uploading of profiles for macOS currently, not sure if it’s in the roadmap for future updates though(Jamf has it).

Deploying via mdm is the only solution when having a custom profile(if you don’t wanna install them manually on the device).


Does anyone have any inside on this particular issue or a similar and have solved it?



Ova deployment failing in Vcenter 7.0

This post was originally published on this site

I am trying to deploy ova using my http server link which is a remote server and getting following error.

“  Unable to retrieve manifest or certificate file”

When I check ” vsphere_client_virgo.log” following are the errors

“waitForSession : reached terminal state ERROR while waiting for IMPORT_SELECTING_OVF_PARAMS”



I tried the same http link with my vcenter 6.7 and it works fine. Both 6.7 and 7.0 are in same network switch and VLAN.


Can you please help on this?



How to upload plugin to cloud director and access log insight

This post was originally published on this site

We are two student interns that are trying to upload a plugin for wmware cloud director and got stuck.


We are using this code: GitHub – vmware-samples/vcd-ext-samples at developer-container/9.7-10.0

We have tried to use plugin-manager to upload but without luck.


When we run ng build there should be a zip-file but there is not.


We are not able to fully upload our plugin to our cloud director. We see it under “customize portal” but are not able to get it shown in the plugins dropdown so that we can open and show the page (the plugin is enabled). Is it possible to get a step by step on how to upload a plugin? Maybe our zip-file is not right?


Our plugin is about accessing log insight api to show specific data from there. Here we also have a problem to get a session through localhost, we are however able to get it through postman.

The message says that we are blocked by CORS policy (we are using Chrome). Any ideas what to do here?

Fully automatic QR-code generator for 2-Factor Authentication in Horizon View

This post was originally published on this site

We are using the 2-Factor Authentication from Google in Horizon View all for our external Horizon users. Therefore we have setup a CentOS VM with the Google Authenticator package installed. The Guide for this can be found here: https://blogs.vmware.com/consulting/files/2015/02/VMW_15Q1_TD_Horizon-View-Google-Authenticator_021715_FINAL_EMonjoin.pdf


Because Sysadmins are a bit lazy and we also do not want to generate every QR-code by hand for all our Users, we have come up with this fully automated Linux script.

A cronjob runs this script every 5 minutes. If a new user and HomeDir is created, the script automaticly creates the QR-code for this user and places a textfile with the URL for the QR-code in the Users Homedir. It works like a charm and saves us a lot of time.


  Feel free to use this script in your own environment, but please leave the header info as it is




# This script is created by John at RTV-Noord. You may use and distribute
# it as long as you keep this header as it is. 
# There are some prerequisites to make this script work:
# - machine you run it from is a Active Directory Domain member
# - the share with AD homedirs is mounted on /mnt/home
# - the google-authenticator package is installed
# - replace domainname.com with your AD domainname

ls /mnt/home > all_users
MAKEQR=$(comm -3 all_users users_with_qr | wc -l)

if [ $MAKEQR -gt 0 ]; then
    echo "Found users without QR."
    comm -3 all_users users_with_qr > users_without_qr
    for user in $(cat users_without_qr); do
        echo "    $(date) make qr for $user..."
        su -l "$user@domainname.com" -c "google-authenticator -tdf -r 3 -R 30 -w 17 -Q UTF8 | grep http > google-authenticator.txt"
        mv /home/$user@domainname.com/google-authenticator.txt /mnt/home/$user/
    cat all_users > users_with_qr
    rm users_without_qr
    echo "$MAKEQR QR-code has been created"