ESXi

 View Only
  • 1.  esxi 8 shell script how to run

    Posted Feb 13, 2023 03:56 AM

    Hello 

    I need some help

    I ran the script on ESXi 8, but it says "Operation not permitted"
    I ran the script as root and changed the file permissions to 755

    In previous versions (esxi7), the script worked just fine by changing the permissions.

    Am I missing something or do I need to add a setting?

    jeonghyeonglee_1-1676260147600.png

    Thanks for reading.

     



  • 2.  RE: esxi 8 shell script how to run

    Posted Feb 13, 2023 10:59 PM

    what kind of script are you trying to run? 

    python script or maybe even powercli script? 



  • 3.  RE: esxi 8 shell script how to run
    Best Answer

    Broadcom Employee
    Posted Feb 13, 2023 11:07 PM

    If you do not have shabang definition in shell script, then it'll be treated as a binary, which by default ESXi will not allow to run any binary code which has not been installed from a signed VIB.

    If you wish to disable this (or fix the script), then you can use the following to disable

    https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-security/GUID-DF6A7974-62F9-47DB-A990-963F3B3AEA77.html



  • 4.  RE: esxi 8 shell script how to run

    Posted Feb 14, 2023 12:33 AM

    Thank you for answer.
    I solved it like lamw's answer.
    Fixed by adding #!/bin/sh to the first line of the script



  • 5.  RE: esxi 8 shell script how to run

    Posted Feb 08, 2024 08:19 PM

    Sharing. 
    I could not get this to work on esxi 8.0.0 despite the shebang and the secureboot etc. 

    Finally got it to work by moving the script to /opt and it ran.