# Packer build VM or Image
# Enable GuestIPHack
esxcli system settings advanced set -o /Net/GuestIPHack -i 1
# Enable VNC and firewall
vi /etc/vmware/firewall/service.xml (Need permission changes)
<service id="1000">
<id>packer-vnc-custom</id>
<rule id="0000">
<direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>
<begin>5900</begin>
<end>6000</end>
</port>
</rule>
<enabled>true</enabled>
<required>true</required>
</service>
Reference:
Last Update: 2024-11-11 04:02:09 Source File