Pages

Thursday, June 3, 2021

Google Cloud - how to get my IP address

Here is the command

curl -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip && echo

Generate a CSEK key

AES-256 base-64 key.

Run the following command to create a key: 

python3 -c 'import base64; import os; print(base64.encodebytes(os.urandom(32)))'

Wednesday, May 26, 2021

How to monitor / report UNMAP bandwidth for particular datastore

The following command brings the correct information by using UnmapBandwidthSpec instead of UnmapGranularity.

Get-Datastore LCD002_001 | % {$_.ExtensionData.Info.Vmfs.UnmapBandwidthSpec | Select Policy,FixedValue}

What are the available pciSlotNumbers for RHEL8 VMs?

 

Summary

What are the available pciSlotNumbers for RHEL8 VMs?


Cause

All normally created Virtual Machines with Virtual Hardware version 7 to 19 will have the same configuration:


pciBridge0: pciBridge, 1 function

pciBridge4: pcieRootPort, 8 functions

pciBridge5: pcieRootPort, 8 functions

pciBridge6: pcieRootPort, 8 functions

pciBridge7: pcieRootPort, 8 functions


VMs with this configuration can have up to 32 PCIe devices with the slot number sequence.


 160, 192, 224, 256,

1184, 1216, 1248, 1280,

2208, 2240, 2272, 2304,

3232, 3264, 3296, 3328,

4256, 4288, 4320, 4352,

5280, 5312, 5344, 5376,

6304, 6336, 6368, 6400,

7328, 7360, 7392, 7424,


Resolution


It is possible to manually configure a VM to have a different pciBridge configuration, and therefore different pciSlotNumbers but this should only be performed in cooperation with VMware Engineering.

Saturday, May 15, 2021

AWS - deploy apache web server

#!/bin/bash
# Install Apache Web Server and PHP
yum install -y httpd mysql amazon-linux-extras install -y php7.2
chkconfig httpd on
service httpd start

 

 

Monday, May 10, 2021

How to create a file in unix like system?

How to create a file in unix like system?

# cat > text.txt << EOF
This is the file.
EOF

Monday, April 26, 2021

VMware Process for obtaining Internal Use Licenses from March, 2021

 

General Information:

·        Greetings, if you need licenses for Internal use, there are two programs to be aware of as an alternative to licenses previously furnished on BuildWeb
that are approved by Legal and Compliance:

 

    1. For Internal licenses for individual use, I suggest that you apply for a set of individual licenses through the VMware Employee License program (vELP)
      portal at https://velp.eng.vmware.com, that provides a set of over 40 uniquely assigned licenses for allowed internal uses, as explained on the Portal.
      Over 2,100 employees already participate and have been assigned over 95,000 unique licenses.

 

    1. For Internal licenses for individual use that are not in the package that vELP Participants receive, or need special entitlements, you can apply for
      Internal Use licenses through an application process. This same application process is followed if you need long-expiration licenses, such as for PM/PMM
      or GSS Labs, or Permanent licenses for our Production Systems.

 

·        To apply for an Internal use license for cases where the vELP Licenses are not appropriate for the reasons cited above, you:

 

 

    1. Obtain your Manager’s approval

 

There is no charge to your BU/Cost Center to participate in the vELP program or to request Internal use licenses.

 

Thank you,

Bob Slovick

Senior Program Manager - License Management

Worldwide Sales Strategy & Operations WWSSO - License Management (he/him/his)

VMware Inc - slovick@vmware.com Home Office-Colorado USA MDT/UTC -6 AD0HI

VCP #489 VCP 2-4 VCP-DCV 5-6


VMware Social Internal Evaluation License Support Space: https://social.vmware.com/spaces/18438/feed

The latest available License SKU guidance is always at https://onevmw.sharepoint.com/teams/WWSSO-License-Management-Info/SitePages/WWSSO-License-Management-Guide.aspx

The latest available License Request form is always at https://onevmw.sharepoint.com/teams/WWSSO-License-Management-Info/Shared%20Documents/Forms/AllItems.aspx

To escalate a request, please forward the case information and the reasons for the escalation to license-management-escalations@vmware.com

If you have a confidential license request, or information about licensing of a confidential nature, please email it to WWBO-License-Management-Confidential-Requests@vmware.com

VMware Employee License Program 

#489 VCP 2-4 VCP-DCV 5-6