Using VNC to connect to Virtual Machines

From Nuclear Physics Group Documentation Pages
Revision as of 17:15, 31 December 2010 by Tbow (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Setting up VMs for VNC

First add these three lines to the bottom of the .vmx file for that virtual machine:

 RemoteDisplay.vnc.enabled = "TRUE"
 RemoteDisplay.vnc.password = "vncpassword"
 RemoteDisplay.vnc.port = "5900"

Make sure to restart the virtual machine.

Using VNC with SSH to connect to guest VM

Then ssh to the host machine using this command:

 ssh -L 8080:localhost:5900 hostmachine.unh.edu

Then use any vnc client to connect to localhost:8080 using the password set above.