简体   繁体   English

Packer远程VMware-iso构建器的最低权限

[英]Minimal Permissions for Packer remote VMware-iso builder

I'm trying to use Packer to build images from iso on a remote VMware cluster, and there are security concerns with allowing direct access to the host. 我正在尝试使用Packer从远程VMware群集上的iso构建映像,并且存在允许直接访问主机的安全问题。 What are the minimal permissions required for an account on the esxi host to successfully complete the build? esxi主机上的帐户成功完成构建所需的最低权限是什么?

The user needs to be able to run the following commands: 用户需要能够运行以下命令:

  1. vmkfstools
  2. vim-cmd
  3. test
  4. sh
  5. ls
  6. rm
  7. esxcli
  8. stat
  9. mkdir
  10. shaXsum
  11. md5sum

For vim-cmd it must be allowed to run: 对于vim-cmd ,必须允许它运行:

  1. vmsvc/power.getstate
  2. vmsvc/reload
  3. vmsvc/power.on
  4. vmsvc/power.off
  5. solo/registervm
  6. vmsvc/unregister
  7. vmsvc/destroy
  8. vmsvc/tools.install

And for esxcli : 对于esxcli

  1. network ip connection list
  2. network vm list
  3. network vm port list
  4. system version get
  5. system settings advanced list -o /Net/GuestIPHack

If security is I high concern I would recommend to look into running a dedicated ESXi host for Packer builds or use nested virtualisation to run a ESXi on top of vSphere just as a build host. 如果高度关注安全性,我建议您考虑为Packer构建运行专用的ESXi主机,或者使用嵌套虚拟化以将vSphere作为构建主机在vSphere之上运行ESXi。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM