{"id":387,"date":"2012-08-16T11:17:21","date_gmt":"2012-08-16T09:17:21","guid":{"rendered":"http:\/\/elkano.org\/blog\/?p=387"},"modified":"2013-11-25T12:08:54","modified_gmt":"2013-11-25T11:08:54","slug":"proxmox-2-console-freezes-and-browser-crashes-with-64-bits-java-plugin","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/proxmox-2-console-freezes-and-browser-crashes-with-64-bits-java-plugin\/","title":{"rendered":"Proxmox 2 console freezes and browser crashes with 64 bits java plugin"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>I had a very critical issue with Proxmox 2 web interface in my system, when I opened a vnc console my browser crashed and I could not access to my virtual machines. \u00a0This can be very painful when you have something wrong in your virtual machine and you can&#8217;t access to it. I had this issue only in 64 bits ubuntu system, the behaviour is the same for Firefox, Chrome and Opera. Same system\/configuration in 32 bits is working Ok.<\/p>\n<p>Digging into the problem I encountered that the issue came from the java plugin that is used for vnc viewer. Specifically from\u00a0icedtea package from OpenJDK. To solve this issue I installed Sun JRE.<\/p>\n<p>To install Sun JRE follow these steps:<\/p>\n<p>&#8211; Go to\u00a0<a href=\"http:\/\/java.com\/en\/download\/manual.jsp?locale=en\">http:\/\/java.com\/en\/download\/manual.jsp?locale=en<\/a>\u00a0and download 64 bits linux package.<\/p>\n<p>&#8211; Untar downloaded package and move to \/opt\/java\/java-sun\/<\/p>\n<pre class=\"prettyprint lang-xml\"># tar xzvf jre-7u5-linux-x64.tar.gz\r\n# mkdir -p \/opt\/java\/java-sun\r\n# mv jre1.7.0_05\/ \/opt\/java\/java-sun\/<\/pre>\n<p>&#8211; Remove existing icedtea plugin:<\/p>\n<pre class=\"prettyprint lang-xml\"># apt-get remove icedtea-6-plugin icedtea-7-plugin<\/pre>\n<p>&#8211; Set Sun JRE as default in the system:<\/p>\n<pre class=\"dontquote prettyprint lang-xml\"># update-alternatives --install &quot;\/usr\/bin\/java&quot; &quot;java&quot; &quot;\/opt\/java\/java-sun\/jre1.7.0_05\/bin\/java&quot; 1<\/pre>\n<p>&#8211; Configure your desired java version in your system:<\/p>\n<pre class=\"dontquote prettyprint lang-xml\"># update-alternatives --config java<\/pre>\n<p>&#8211; Configure java browser plugin:<\/p>\n<p>First remove any ~\/.mozilla\/plugins\/libjava* file if existing.<\/p>\n<pre class=\"prettyprint lang-xml\">\r\n# ln -s \/opt\/java\/java-sun\/jre1.7.0_05\/lib\/amd64\/libnpjp2.so ~\/.mozilla\/plugins\/\r\n<\/pre>\n<p>&#8211; Restart the brower and verify the java plugin. Got to this <a href=\"http:\/\/www.java.com\/en\/download\/testjava.jsp\" title=\"Test Page\" target=\"_blank\">test page<\/a> and verify that the browser can run the applet correctly.<\/p>\n<p>Now VNC viewer works great on Firefox and Chrome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; I had a very critical issue with Proxmox 2 web interface in my system, when I opened a vnc console my browser crashed and I could not access to my virtual machines. \u00a0This can be very painful when you have something wrong in your virtual machine and you can&#8217;t access to it. I had [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[50,35,49,51],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/387"}],"collection":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/comments?post=387"}],"version-history":[{"count":23,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/387\/revisions"}],"predecessor-version":[{"id":779,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/387\/revisions\/779"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}