Every time I have to set up new ESXi and add Ubuntu machine templates I’m getting into the same troubles, now writing it down to remember…
VmWare tools and clipboard are not working in Ubuntu desktop, so for the recent Ubuntu versions (14.xx, 16.xx):
1. In the ESXi host add the last 2 lines to the config and reboot:
[root@esxi1:~] cat /etc/vmware/config
libdir = “/usr/lib/vmware”
authd.proxy.nfc = “vmware-hostd:ha-nfc”
authd.proxy.nfcssl = “vmware-hostd:ha-nfcssl”
authd.proxy.vpxa-nfcssl = “vmware-vpxa:vpxa-nfcssl”
authd.proxy.vpxa-nfc = “vmware-vpxa:vpxa-nfc”
authd.fullpath = “/sbin/authd”
isolation.tools.copy.disable=”FALSE”
isolation.tools.paste.disable=”FALSE”
2. In the Ubuntu guest instead of installing the tools bundled with ESXi:
sudo apt-get install open-vm-tools-desktop
After a long unsuccessful search for something that would work for making available backup storage (WD Elements 4GB USB HDD) from my MS Windows desktop system to ESXi 6.0 server (as a datastore) ended up using old Dell laptop. It runs Linux, auto-mounts the USB HDD at the boot time and exports the mount point over NFS.
In order to avoid running it all the time, ESXi powers it up by sending wake-on-lan Ethernet packet and shuts down the laptop after backup is done. WD Elements powers on/off automatically when USB connection is up/down.
Attached is the ether-wake tool sources (with minor tweak for sendto() to work) and statically compiled binary runnable under ESXi.
The ESXi firewall has to be turned off for it to send the packet:
esxcli network firewall set --enabled false
./ether-wake 00:11:22:33:44:11
esxcli network firewall set --enabled true
ether-wake.c
ether-wake