I have a clean-installed Ubuntu server without X11, no desktop environment like ubuntu-desktop, gdm, lightdm. I installed the tightvnc, qemu-kvm and prepared a guest vm via the command lines with virt-install pointing to use vnc at port 5900.
I do understand the necessary of having desktop environment on the host (in this case, Ubuntu server) for connecting and monitoring the host itself.
But I don’t understand if the desktop environment for the host is necessary for the case connecting only to the guest vm. I think it seems to be duplicated GUI for both host kvm and guest vm.
I checked some guidelines and they pointed to the vncserver with X11. But how does it have any relationship with the setting of vnc on kvm since the netstat is telling me 2 ports are being listerned by qemu-kvm (5900) and vncserver (5901)?
So far I can connect to the port 5901 and of course receving graphic GUI message about lacking of X11. But connecting to the port 5900 from another PC over LAN still get the stuck at the state “connecting”.
How can I enable the vnc for guest vm without installing the desktop environment for my Ubuntu server 18.04.2?