{"id":43,"date":"2011-07-17T15:47:21","date_gmt":"2011-07-17T13:47:21","guid":{"rendered":"http:\/\/blog.pewo.se\/?p=43"},"modified":"2011-07-17T15:47:52","modified_gmt":"2011-07-17T13:47:52","slug":"using-vnc-to-connect-to-a-vmware-virtual-machine","status":"publish","type":"post","link":"https:\/\/blog.pewo.nu\/?p=43","title":{"rendered":"Using vnc to connect to a vmware virtual machine"},"content":{"rendered":"<p><strong>Problem<\/strong><\/p>\n<p>Could not get the vmware console to work with firefox 4&#8230; \ud83d\ude41<\/p>\n<p><strong>Solution<\/strong><br \/>\nIn the vmx file add:<br \/>\n<code>RemoteDisplay.vnc.enabled = \"TRUE\"<br \/>\nRemoteDisplay.vnc.port = \"5910\"<\/code><\/p>\n<p>Off course, you could change the port number to whatever port you want to use&#8230;<\/p>\n<p>Restart the virtual machine.<\/p>\n<p>Connect to the console: <strong>vncviewer 127.0.0.1:5910<\/strong><\/p>\n<p><strong>Fixed<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Bonus<\/strong><\/p>\n<p>A small script the connects and reconnects to a console.<\/p>\n<p><code>#!\/bin\/sh<br \/>\nVMX=\/local\/vm\/lamp\/lamp.vmx<br \/>\nPORT=`grep RemoteDisplay.vnc.port $VMX | sed 's\/\\\"\/\/g' | awk '{print $NF}'`<br \/>\nwhile `true`; do<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;vncviewer 127.0.0.1:$PORT<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;sleep 1<br \/>\ndone<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem Could not get the vmware console to work with firefox 4&#8230; \ud83d\ude41 Solution In the vmx file add: RemoteDisplay.vnc.enabled = &#8220;TRUE&#8221; RemoteDisplay.vnc.port = &#8220;5910&#8221; Off course, you could change the port number to whatever port you want to use&#8230; &hellip; <a href=\"https:\/\/blog.pewo.nu\/?p=43\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[9,10],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-unixlinux","tag-vmware","tag-vnc"],"_links":{"self":[{"href":"https:\/\/blog.pewo.nu\/index.php?rest_route=\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pewo.nu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pewo.nu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pewo.nu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pewo.nu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":7,"href":"https:\/\/blog.pewo.nu\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/blog.pewo.nu\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions\/50"}],"wp:attachment":[{"href":"https:\/\/blog.pewo.nu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pewo.nu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pewo.nu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}