Hello all<br><br>I am using Centos, and to be honnest I am not sure if this is platform specific, but the standard port generation code for xen does not work here (both 2.0 beta 1 and rc1)<br><br>The following patch solves it but forces the base port in oned.conf to be set to 5900 if using the xen driver.<br>
<br>I rememmber reading somewhere that the port number is 5900 + vnc display number... In this case I used the generated port number to calculate the display number, but given that the port number is calculated from the VM id, I expect that there should be a cleaner way to do this! <br>
<br>Anyway.... This solves my problem!<br><br><br>--- one-2.0-beta1/src/vmm/XenDriver.cc 2010-07-27 15:34:04.000000000 +0100<br>+++ one-2.0-beta1_mod/src/vmm/XenDriver.cc 2010-09-21 10:07:32.000000000 +0100<br>@@ -364,12 +364,10 @@<br>
{<br> file << ",vnclisten=" << listen;<br> }<br>-<br> if ( !port.empty() )<br> {<br>- file << ",vncdisplay=" << port;<br>
+ file << ",vncdisplay=" << (atoi(port.c_str())-5900);<br> }<br>-<br> if ( !passwd.empty() )<br> {<br> file << ",vncpasswd=" << passwd;<br>
<br><br><br>