I had a problem with low screen resolution – similar to:
https://www.nomachine.com/forums/topic/ubuntu-16-04-headless-resolution-stuck-1024×768#post-11035
When I solve it according to the link (stop lightdm and restart nxserver), I can connect with NoMachine at maximum resolution, but the session runs without Unity (no menu bars). On restart, I’m once again stuck at low resolution.
This is what lshw -C display gives:
*-display
description: VGA compatible controller
product: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:25 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64)