Goal: Use guacamole to access a VNC server from the home lab, I need to setup a vnc server

Install tightvncserver

$ sudo apt-get install tightvncserver

Start the VNC server

$ sudo tightvncserver

You will be prompted for a password, truncated to length 8

I used the following command to start a VNC server connected to kvm to run a VM off of a home lab computer

kvm -m 4096 \
    -drive file=so_lin.raw,if=virtio,format=raw \
    -drive file=securityonion-,media=cdrom,index=1 \
    -net nic,model=virtio -net user \
    -vnc \
    -net nic,model=virtio \
    -k en-us

At first, I didn’t have the -k en-us field, but then the keyboard wansn’t responding, I added -k en-us to specify the keyboard and then I was able to type in the sosetup program to enter a sudo password.

Add another interface for the VM

VNC listens on port 5900+X, I used '2' in this case so I attempt to connect to port 5902 with Remmina.

Open Remmina, enter the address IP_ADDR:2 ex:

Now I have a connection to the VNC server on port 5902

Connect through guacamole

I configured guacamole for a new connection, I entered the following parameters:

Name: kvm_home_lab
Protocol: VNC
Parameters -> Network
Hostname: s1.willson.tk
Port: 10000