<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(scrollbar.css); --></STYLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE> body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;} </STYLE>
<META name=GENERATOR content="MSHTML 8.00.7601.17824"><BASE
target=_blank></HEAD>
<BODY
style="LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px"
marginheight="0" marginwidth="0">
<DIV><FONT color=#000000 face=宋体><FONT color=#666666
size=2>novncproxy_base_url=</FONT><A
href="http://10.2.1.1:6080/vnc_auto.html"><FONT
size=2>http://10.2.1.1:6080/vnc_auto.html</FONT></A> # I think the ip here
should be the public ip address that you can connect from your browser or telnet
from your pc, not the private ip of your server.</FONT></DIV>
<DIV><FONT color=#000000 face=宋体><FONT color=#666666
size=4>vncserver_proxyclient_address=10.2.1.2 {IP of the local compute host
here} # that is right here, </FONT></FONT></DIV><FONT color=#000000
face=宋体><FONT color=#666666>
<DIV><FONT face=Verdana><FONT size=4><SPAN
style="FONT-FAMILY: CourierNew; COLOR: rgb(102,102,102); FONT-SIZE: 8pt">vncserver_listen=0.0.0.0
# this ok too</SPAN><BR></FONT></FONT></FONT></DIV>
<DIV>here is my nova.conf:</DIV>
<DIV>vncserver_proxyclient_address=10.120.40.11 # private ip of
the host/compute node<BR>vncserver_listen=10.120.40.11 # private ip of
the host/compute node, this will be used to create the libvirt.xml and you
can see it by 'virsh
dumpxml'<BR>novncproxy_base_url=http://114.113.XXX.XXX:6080/vnc_auto.html
# the public ip address you can access<BR></DIV></FONT>
<DIV> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2013-01-25</FONT></DIV>
<DIV align=left><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" id=SignNameHR align=left SIZE=2>
</FONT></DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana><SPAN
id=_FlashSignName>Wangpan</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana>
<HR>
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG>John Barbee</FONT></DIV>
<DIV><FONT size=2
face=Verdana><STRONG>发送时间:</STRONG>2013-01-25 10:21</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG>Re: [Openstack] Problem with
VNC on compute node</FONT></DIV>
<DIV><FONT size=2
face=Verdana><STRONG>收件人:</STRONG>"Wangpan"<hzwangpan@corp.netease.com></FONT></DIV>
<DIV><FONT size=2
face=Verdana><STRONG>抄送:</STRONG>"longeek"<mengql112233@gmail.com>,"openstack"<openstack@lists.launchpad.net></FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>Here is my VNC config in nova.conf</DIV>
<DIV><BR></DIV>
<DIV>My controller is 10.2.1.1. I modify vncserver_proxyclient_address to the
static ip of each compute host rather than using 127.0.0.1. Not sure that
matters, I have never tried 127.0.0.1. </DIV>
<DIV>
<DIV class=page title="Page 12">
<DIV style="BACKGROUND-COLOR: rgb(255,255,255)" class=section>
<DIV class=layoutArea>
<DIV class=column><PRE><SPAN style="FONT-FAMILY: 'CourierNew'; COLOR: rgb(102,102,102); FONT-SIZE: 8pt"># Vnc configuration
novnc_enabled=true
novncproxy_base_url=<A href="http://10.2.1.1:6080/vnc_auto.html">http://10.2.1.1:6080/vnc_auto.html</A>
novncproxy_port=6080
vncserver_proxyclient_address=10.2.1.2 {IP of the local compute host here}
</SPAN><SPAN style="FONT-FAMILY: CourierNew; COLOR: rgb(102,102,102); FONT-SIZE: 8pt">vncserver_listen=0.0.0.0</SPAN></PRE></DIV></DIV></DIV></DIV><BR>--<BR>
<DIV>Thanks,</DIV>
<DIV>John</DIV></DIV>
<DIV><BR>On Jan 24, 2013, at 8:55 PM, Wangpan <<A
href="mailto:hzwangpan@corp.netease.com">hzwangpan@corp.netease.com</A>>
wrote:<BR><BR></DIV>
<BLOCKQUOTE type="cite">
<DIV>
<STYLE> body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;} </STYLE>
<META name=GENERATOR content="MSHTML 8.00.7601.17824"><BASE target=_blank>
<DIV><FONT color=#000000 size=3 face=宋体>Hi <FONT face=Verdana>longeek &
Russi,</FONT></FONT></DIV>
<DIV><FONT face=Verdana>I have some suggestions about the vnc issue of
vm,</FONT></DIV>
<DIV><FONT face=Verdana>1. you can use 'sudo virsh dumpxml instance-uuid' to
check the ip and port vnc <FONT face=宋体>bound, seems like
this:</FONT></FONT></DIV>
<DIV> <graphics type='vnc' <FONT
style="BACKGROUND-COLOR: #ff0000">port='5903'</FONT> autoport='yes' <FONT
style="BACKGROUND-COLOR: #ff0000">listen='XXX.XXX.XXX.XXX'</FONT>
keymap='en-us'><BR> <listen type='address'
address=<FONT
style="BACKGROUND-COLOR: #ff0000">'XXX.XXX.XXX.XXX'</FONT>/><BR>
</graphics></DIV>
<DIV>2. you should check the vnc connection to vm is ok or not by
using vnc client, such as 'RealVNC viewer', and connect vm by using the ip and
port in step 1, if it is OK here, the problem may occur in novnc service, the
process on my host is like this '/usr/bin/python /usr/bin/nova-novncproxy
--config-file=/etc/nova/nova.conf --web /usr/share/novnc/'</DIV>
<DIV> </DIV>
<DIV>As your description, the error is "Failed to connect to server
(code: 1006)", so I guess the problem may be the ip and port vnc bound can not
be connect.</DIV>
<DIV>good luck!</DIV>
<DIV> </DIV>
<DIV align=left><FONT color=#c0c0c0 face=Verdana>2013-01-25</FONT></DIV>
<DIV align=left><FONT face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" id=SignNameHR align=left SIZE=2>
</FONT></DIV>
<DIV align=left><FONT color=#c0c0c0 face=Verdana><SPAN
id=_FlashSignName>Wangpan</SPAN></FONT></DIV>
<DIV><FONT face=Verdana>
<HR>
</FONT></DIV>
<DIV><FONT face=Verdana><STRONG>发件人:</STRONG>longeek</FONT></DIV>
<DIV><FONT
face=Verdana><STRONG>发送时间:</STRONG>2013-01-25 09:24</FONT></DIV>
<DIV><FONT face=Verdana><STRONG>主题:</STRONG>Re: [Openstack] Problem with VNC
on compute node</FONT></DIV>
<DIV><FONT face=Verdana><STRONG>收件人:</STRONG>"openstack"<<A
href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</A>></FONT></DIV>
<DIV><FONT face=Verdana><STRONG>抄送:</STRONG></FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>
<DIV class=moz-cite-prefix>Hi, <BR> I also get the same issuse, I
have check the vnc config in nova config.<BR> Can anybody tell us
about why this and how the horizon access the vnc?<BR><BR>Tks,<BR>Best
Regards,<BR><BR>--------------------------------------------<BR>Lawrency
Meng<BR>mail: <A class=moz-txt-link-abbreviated
href="mailto:mengql112233@gmail.com">mengql112233@gmail.com</A><BR><BR>于
01/24/2013 12:27 AM, Guilherme Russi 写道:<BR></DIV>
<BLOCKQUOTE
cite=mid:CAKz5Ux-xsOtu6eedE+O2fAAJv8odt-LHUpcPJ71OaewQPsbtUA@mail.gmail.com
type="cite">Hello guys,<BR><BR> I'm installing the folsom version and I
have one computer like the controller and one being the compute node. I can
start the VM with cirros OS but I can't use the VNC, I got the error:
"Failed to connect to server (code: 1006)". I've been following this
tutorial: <A
href="http://docs.openstack.org/folsom/basic-install/content/basic-install_compute.html">http://docs.openstack.org/folsom/basic-install/content/basic-install_compute.html</A>.<BR><BR>Can
anybody help me?<BR><BR>Thank you and regards.<BR><BR>Guilherme.<BR><BR>
<FIELDSET class=mimeAttachmentHeader></FIELDSET> <BR><PRE>_______________________________________________
Mailing list: <A class=moz-txt-link-freetext href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</A>
Post to : <A class=moz-txt-link-abbreviated href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</A>
Unsubscribe : <A class=moz-txt-link-freetext href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</A>
More help : <A class=moz-txt-link-freetext href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</A>
</PRE></BLOCKQUOTE><BR><BR><PRE class=moz-signature cols="72">--
_______________________________________________
Mailing list: <A class=moz-txt-link-freetext href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</A>
Post to : <A class=moz-txt-link-abbreviated href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</A>
Unsubscribe : <A class=moz-txt-link-freetext href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</A>
More help : <A class=moz-txt-link-freetext href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</A></PRE></FONT></DIV></DIV></BLOCKQUOTE>
<BLOCKQUOTE type="cite">
<DIV><SPAN>_______________________________________________</SPAN><BR><SPAN>Mailing
list: <A
href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</A></SPAN><BR><SPAN>Post
to : <A
href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</A></SPAN><BR><SPAN>Unsubscribe
: <A
href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</A></SPAN><BR><SPAN>More
help : <A
href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</A></SPAN><BR></DIV></BLOCKQUOTE></FONT></DIV></BODY></HTML>