尝试的是高级部署,我的部署方案是: 1、管理和存储走一个交换机网络(172.16.100.x),Public和Guest走一个交换机网络,Pulic是公司内网(192.168.45.x),guest是自定义网络(10.1.1.x) 2、1台主机跑Manage Server,网卡接管理存储网络,1台主机跑XENServer,2张网卡,1张接管理存储网络,1张接Public&Guest网络,1台主机跑NFS(提供Secondary Storage),接网络存储网络 浏览器访问console我是通过管理网络(172.168.100.x)访问的,且添加了本地解析域名X-X-X-X.realhostip.com<http://x-x-x-x.realhostip.com/> 我的guest VLAN是随便指定的一个访问200-300,public和manage都没有指定VLAN,我的交换机没有VLAN功能。
On Fri, Aug 2, 2013 at 3:39 PM, tanthalas <tanthalas...@hotmail.com> wrote: > > 还有些东西不是很清楚,你再排查一下 > 浏览器上用管理节点的外网地址访问的console还是内网? > 能否解析console想要打开的域名X-X-X-X.realhostip.com > guest/public/manage vlan是怎么设定的的,交换机又是怎么设定的? > > 2013-08-02 > 刘宇超 Richard Liu > > > > > 发件人: sunko2014 > 发送时间: 2013-08-02 14:24:03 > 收件人: users-cn > 抄送: > 主题: Re: help:通过控制台访问VM失败 > > hello: > > 在host的xensource.log中,有一些异常的log,但是我不太会分析,贴出来,请大侠指教,log都是tail出来的,应该能直接反映错误情形: > [20130802T06:17:14.108Z|debug|xenserver01|110080 inet-RPC|host.call_plugin > R:44a2bf2503e5|audit] Host.call_plugin host = > '8be3cea2-8fae-49a8-b482-9b26e7e0303e (xenserver01)'; plugin = 'echo'; fn = > 'main'; args = [ ] > [20130802T06:17:14.273Z|debug|xenserver01|110080 inet-RPC|host.call_plugin > R:7e1eaa7080eb|audit] Host.call_plugin host = > '8be3cea2-8fae-49a8-b482-9b26e7e0303e (xenserver01)'; plugin = 'vmops'; fn > = 'getvncport'; args = [ domID: 7; hvm: false; version: 6.0.0 ] > [20130802T06:17:24.548Z|debug|xenserver01|110080 inet-RPC||http_critical] > Connection terminated > [20130802T06:17:37.529Z|debug|xenserver01|110083 inet-RPC|host.call_plugin > R:b4fa965ed255|audit] Host.call_plugin host = > '8be3cea2-8fae-49a8-b482-9b26e7e0303e (xenserver01)'; plugin = 'echo'; fn = > 'main'; args = [ ] > [20130802T06:17:37.671Z|debug|xenserver01|110083 inet-RPC|host.call_plugin > R:97ee28cb30b7|audit] Host.call_plugin host = > '8be3cea2-8fae-49a8-b482-9b26e7e0303e (xenserver01)'; plugin = 'vmops'; fn > = 'gethostvmstats'; args = [ startTime: 1375423126; interval: 60; > consolidationFunction: AVERAGE; collectHostStats: true ] > [20130802T06:17:38.821Z|debug|xenserver01|110083 inet-RPC|host.call_plugin > R:2be88dbb76b5|audit] Host.call_plugin host = > '8be3cea2-8fae-49a8-b482-9b26e7e0303e (xenserver01)'; plugin = 'echo'; fn = > 'main'; args = [ ] > [20130802T06:17:38.978Z|debug|xenserver01|110083 inet-RPC|host.call_plugin > R:b2fd88645012|audit] Host.call_plugin host = > '8be3cea2-8fae-49a8-b482-9b26e7e0303e (xenserver01)'; plugin = 'vmops'; fn > = 'gethostvmstats'; args = [ startTime: 1375423127; interval: 60; > consolidationFunction: AVERAGE; collectHostStats: false ] > [20130802T06:17:43.686Z|debug|xenserver01|110083 inet-RPC|host.call_plugin > R:7a4a1a7a1fd2|audit] Host.call_plugin host = > '8be3cea2-8fae-49a8-b482-9b26e7e0303e (xenserver01)'; plugin = 'echo'; fn = > 'main'; args = [ ] > [20130802T06:17:43.824Z|debug|xenserver01|110083 inet-RPC|SR.scan > R:c9f359be2ed5|audit] SR.scan: SR = 'c296108a-f6a1-c2c5-d1af-47954009e595 > (c296108a-f6a1-c2c5-d1af-47954009e595)' > [20130802T06:17:43.825Z|debug|xenserver01|110083 inet-RPC|SR.scan > R:c9f359be2ed5|xapi] Marking SR for SR.scan > (task=OpaqueRef:c9f359be-2ed5-f093-f773-1607e299bafc) > [20130802T06:17:43.828Z|debug|xenserver01|110083 inet-RPC|SR.scan > R:c9f359be2ed5|sm] SM ext sr_scan > sr=OpaqueRef:f2e01272-b702-3184-f414-079f0378d780 > [20130802T06:17:43.832Z| info|xenserver01|110083 inet-RPC|sm_exec > D:771114be114c|xapi] Session.create > trackid=e0e1ea2bdbab599d134c73f1144ebd47 pool=false uname= > is_local_superuser=true auth_user_sid= > parent=trackid=9834f5af41c964e225f24279aefe4e49 > [20130802T06:17:43.833Z|debug|xenserver01|110083 inet-RPC|sm_exec > D:771114be114c|xapi] Attempting to open /var/xapi/xapi > [20130802T06:17:43.836Z|debug|xenserver01|110086 unix-RPC||dummytaskhelper] > task dispatch:session.get_uuid D:c000c3fb5d6d created by task > D:771114be114c > [20130802T06:17:44.000Z|debug|xenserver01|110087 unix-RPC||dummytaskhelper] > task dispatch:host.get_other_config D:2f1b2f203332 created by task > R:c9f359be2ed5 > [20130802T06:17:44.151Z|debug|xenserver01|110088 unix-RPC||dummytaskhelper] > task dispatch:SR.get_by_uuid D:e9e9c9a9a6b3 created by task R:c9f359be2ed5 > [20130802T06:17:44.154Z| info|xenserver01|110089 > unix-RPC|session.login_with_password D:0d015bacc72f|xapi] Session.create > trackid=ee2b04c7d293cfba87dd34a8c1cae443 pool=false uname=root > is_local_superuser=true auth_user_sid= > parent=trackid=9834f5af41c964e225f24279aefe4e49 > [20130802T06:17:44.156Z|debug|xenserver01|110089 > unix-RPC|session.login_with_password D:0d015bacc72f|xapi] Attempting to > open /var/xapi/xapi > [20130802T06:17:44.160Z|debug|xenserver01|110090 unix-RPC||dummytaskhelper] > task dispatch:session.get_uuid D:bf607dd8e2d9 created by task > D:0d015bacc72f > [20130802T06:17:44.162Z|debug|xenserver01|110091 unix-RPC||dummytaskhelper] > task dispatch:SR.set_virtual_allocation D:eef45d3c3f67 created by task > R:c9f359be2ed5 > [20130802T06:17:44.175Z|debug|xenserver01|110093 unix-RPC||dummytaskhelper] > task dispatch:SR.set_physical_size D:0afe660f638b created by task > R:c9f359be2ed5 > [20130802T06:17:44.189Z|debug|xenserver01|110095 unix-RPC||dummytaskhelper] > task dispatch:SR.set_physical_utilisation D:7f5aa0a77fcf created by task > R:c9f359be2ed5 > [20130802T06:17:44.199Z|debug|xenserver01|110097 unix-RPC||dummytaskhelper] > task dispatch:SR.get_by_uuid D:988be0727d0e created by task R:c9f359be2ed5 > [20130802T06:17:44.210Z|debug|xenserver01|110099 unix-RPC||dummytaskhelper] > task dispatch:VDI.get_all_records_where D:c10fa84b19c2 created by task > R:c9f359be2ed5 > [20130802T06:17:44.265Z| info|xenserver01|110083 inet-RPC|sm_exec > D:771114be114c|xapi] Session.destroy > trackid=e0e1ea2bdbab599d134c73f1144ebd47 > [20130802T06:17:44.269Z|debug|xenserver01|110083 inet-RPC|SR.scan > R:c9f359be2ed5|xapi] Unmarking SR after SR.scan > (task=OpaqueRef:c9f359be-2ed5-f093-f773-1607e299bafc) > [20130802T06:17:49.645Z|debug|xenserver01|18 db_gc|DB GC > D:6c04debde0ec|db_gc] Number of disposable sessions in database (401/401) > exceeds limit (400): will delete the oldest > [20130802T06:17:49.645Z|debug|xenserver01|18 db_gc|DB GC > D:6c04debde0ec|db_gc] Session.destroy > _ref=OpaqueRef:f983ae3f-cf7f-578a-f7e1-4c05acd0faa1 > uuid=ba0c8578-6739-781c-18b2-b8ef69fbb92d > trackid=e92b21bebc07e26201fc9234170d9df6 (last active 20130802T00:02:01Z): > Timed out session because max number of sessions was exceeded > [20130802T06:17:49.646Z| info|xenserver01|18 db_gc|DB GC > D:6c04debde0ec|xapi] Session.destroy > trackid=e92b21bebc07e26201fc9234170d9df6 > [20130802T06:17:52.520Z|debug|xenserver01|110083 inet-RPC||http_critical] > Connection terminated > On Fri, Aug 2, 2013 at 2:15 PM, sunko2014 <sunko2...@gmail.com> wrote: > > ok,找了一下,把里面的两个log都贴出来: > > systmvm.log: > > 2013-08-02 06:02:58,529 DEBUG [cloud.agent.Agent] (UgentTask-5:) Sending > > ping: Seq 3-2596: { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, > > [{"PingCommand":{"hostType":"ConsoleProxy","hostId":3,"wait":0}}] } > > 2013-08-02 06:02:58,574 DEBUG [cloud.agent.Agent] (Agent-Handler-4:) > > Received response: Seq 3-2596: { Ans: , MgmtId: 260071274268429, via: 3, > > Ver: v1, Flags: 100010, > > > [{"PingAnswer":{"_command":{"hostType":"ConsoleProxy","hostId":3,"wait":0},"result":true,"wait":0}}] > > } > > 2013-08-02 06:03:58,529 DEBUG [cloud.agent.Agent] (UgentTask-5:) Sending > > ping: Seq 3-2597: { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, > > [{"PingCommand":{"hostType":"ConsoleProxy","hostId":3,"wait":0}}] } > > 2013-08-02 06:03:58,575 DEBUG [cloud.agent.Agent] (Agent-Handler-5:) > > Received response: Seq 3-2597: { Ans: , MgmtId: 260071274268429, via: 3, > > Ver: v1, Flags: 100010, > > > [{"PingAnswer":{"_command":{"hostType":"ConsoleProxy","hostId":3,"wait":0},"result":true,"wait":0}}] > > } > > 2013-08-02 06:04:58,530 DEBUG [cloud.agent.Agent] (UgentTask-5:) Sending > > ping: Seq 3-2598: { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, > > [{"PingCommand":{"hostType":"ConsoleProxy","hostId":3,"wait":0}}] } > > 2013-08-02 06:04:58,575 DEBUG [cloud.agent.Agent] (Agent-Handler-1:) > > Received response: Seq 3-2598: { Ans: , MgmtId: 260071274268429, via: 3, > > Ver: v1, Flags: 100010, > > > [{"PingAnswer":{"_command":{"hostType":"ConsoleProxy","hostId":3,"wait":0},"result":true,"wait":0}}] > > } > > 2013-08-02 06:05:58,530 DEBUG [cloud.agent.Agent] (UgentTask-5:) Sending > > ping: Seq 3-2599: { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, > > [{"PingCommand":{"hostType":"ConsoleProxy","hostId":3,"wait":0}}] } > > 2013-08-02 06:05:58,576 DEBUG [cloud.agent.Agent] (Agent-Handler-2:) > > Received response: Seq 3-2599: { Ans: , MgmtId: 260071274268429, via: 3, > > Ver: v1, Flags: 100010, > > > [{"PingAnswer":{"_command":{"hostType":"ConsoleProxy","hostId":3,"wait":0},"result":true,"wait":0}}] > > } > > > > cloud.out: > > Context property pod: 1 > > Context property proxy_vm: 2 > > Context property guid: Proxy.2 > > Context property root: LABEL > > Context property console: hvc0 > > Context property eth2mask: 255.255.255.0 > > Context property public.network.device: eth2 > > Context property private.network.device: eth1 > > Context property dns1: 192.168.13.31 > > Context property zone: 1 > > Context property eth1ip: 172.16.101.2 > > Context property instance: ConsoleProxy > > Context property localgw: 172.16.101.1 > > Context property premium: true > > Context property template: domP > > Context property name: v-2-VM > > Configure log4j using file:/usr/local/cloud/systemvm/conf/log4j-cloud.xml > > Log4j configuration from : /usr/local/cloud/systemvm/conf/log4j-cloud.xml > > 11:01:53,367 ERROR NioConnection:110 - Unable to connect to remote > > 11:01:58,398 ERROR NioConnection:110 - Unable to connect to remote > > 11:35:07,643 ERROR NioConnection:110 - Unable to connect to remote > > 11:35:12,650 ERROR NioConnection:110 - Unable to connect to remote > > 11:35:17,694 ERROR NioConnection:110 - Unable to connect to remote > > 05:43:40,243 ERROR NioConnection:110 - Unable to connect to remote > > 05:43:45,247 ERROR NioConnection:110 - Unable to connect to remote > > 05:43:50,254 ERROR NioConnection:110 - Unable to connect to remote > > > > > > On Fri, Aug 2, 2013 at 1:56 PM, Wei ZHOU <ustcweiz...@gmail.com> wrote: > > > >> 在host上运行ssh -p 3922 -i /root/.ssh/id_rsa.cloud 169.254.2.100进console > proxy > >> 看看/var/log/systemvm/下的日志 > >> > >> > >> 2013/8/2 sunko2014 <sunko2...@gmail.com> > >> > >> > 各位: > >> > > >> > > >> > > >> > > 问题如题,部署环境cloudStack4.02,+xenserver6.0,通过iso方式创建VM后,在chorme、IE6上通过控制台访问VM均失败,下面是management > >> > server的log: > >> > ... ... > >> > 2013-08-02 11:11:50,167 DEBUG [agent.transport.Request] > >> > (DirectAgent-393:null) Seq 1-659951545: Processing: { Ans: , MgmtId: > >> > 260071274268429, via: 1, Ver: v1, Flags: 10, > >> > [{"GetVncPortAnswer":{"address":"consoleurl= > >> > > >> > > >> > https://172.16.101.100/console?uuid=2242d3f7-ad5c-134a-652a-b1644f00313d&sessionref=OpaqueRef:f4f1a6a4-5fc7-eab4-96fc-b4043c3e5cf5 > >> > ","port":5905,"result":true,"wait":0}}] > >> > } > >> > 2013-08-02 11:11:50,167 DEBUG [agent.transport.Request] > >> > (catalina-exec-17:null) Seq 1-659951545: Received: { Ans: , MgmtId: > >> > 260071274268429, via: 1, Ver: v1, Flags: 10, { GetVncPortAnswer } } > >> > 2013-08-02 11:11:50,167 DEBUG [cloud.servlet.ConsoleProxyServlet] > >> > (catalina-exec-17:null) Port info consoleurl= > >> > > >> > > >> > https://172.16.101.100/console?uuid=2242d3f7-ad5c-134a-652a-b1644f00313d&sessionref=OpaqueRef:f4f1a6a4-5fc7-eab4-96fc-b4043c3e5cf5 > >> > 2013-08-02< > >> > https://172.16.101.100/console?uuid=2242d3f7-ad5c-134a-652a-b1644f00313d&sessionref=OpaqueRef:f4f1a6a4-5fc7-eab4-96fc-b4043c3e5cf52013-08-02 > >11:11:50,167 > >> INFO [cloud.servlet.ConsoleProxyServlet] > >> > (catalina-exec-17:null) Parse host info returned from executing > >> > GetVNCPortCommand. host info: consoleurl= > >> > > >> > > >> > https://172.16.101.100/console?uuid=2242d3f7-ad5c-134a-652a-b1644f00313d&sessionref=OpaqueRef:f4f1a6a4-5fc7-eab4-96fc-b4043c3e5cf5 > >> > 2013-08-02< > >> > https://172.16.101.100/console?uuid=2242d3f7-ad5c-134a-652a-b1644f00313d&sessionref=OpaqueRef:f4f1a6a4-5fc7-eab4-96fc-b4043c3e5cf52013-08-02 > >11:11:50,174 > >> DEBUG [cloud.servlet.ConsoleProxyServlet] > >> > (catalina-exec-17:null) Compose console url: > >> > > >> > > >> > https://192-168-45-151.realhostip.com/ajax?token=tsl1xX_XA22fT8WGySZVyWSrZhWM13kgOMdgCRJQJjorDfux2-SSoUWFOJgHQpgBp0ZptEq2Xg3GwFqUGR4BZoTni6p6PhTry5lATbs34ZurK5VBp3S8BnR95AlDgb-xpUbimHYL3cGR7QaZCLPrx2AJOktrEFEoh-FSDyXbiMuyrL2ums3LISK79NVMr6W8flw0odbLopKv9a3BaRzyC-GKmgVzGDqONhUDalbteoiZv9c0LCnWXnTixdj6vzt0rLpY4xgF_9KCxIj191SC1XpFO6lZRBt-hJDa8N73KIkUCnKwwB8tZC34veUjOyBCFuYg5rEIysaJP47D3yQXl3HeBP6YjbMHvZNwwXwa1QbFoKe926CrppkTdIR5B6XIXAm_J3Fv32rAUnqYegKTN2ZV7aF9el2P5bHB_Kw0au6xq-FJtmZwAhskQICDQ5dLnbsUd4048TKw-eIC80sZ5xpyklT1bBSZH45PyacmUag > >> > 2013-08-02< > >> > https://192-168-45-151.realhostip.com/ajax?token=tsl1xX_XA22fT8WGySZVyWSrZhWM13kgOMdgCRJQJjorDfux2-SSoUWFOJgHQpgBp0ZptEq2Xg3GwFqUGR4BZoTni6p6PhTry5lATbs34ZurK5VBp3S8BnR95AlDgb-xpUbimHYL3cGR7QaZCLPrx2AJOktrEFEoh-FSDyXbiMuyrL2ums3LISK79NVMr6W8flw0odbLopKv9a3BaRzyC-GKmgVzGDqONhUDalbteoiZv9c0LCnWXnTixdj6vzt0rLpY4xgF_9KCxIj191SC1XpFO6lZRBt-hJDa8N73KIkUCnKwwB8tZC34veUjOyBCFuYg5rEIysaJP47D3yQXl3HeBP6YjbMHvZNwwXwa1QbFoKe926CrppkTdIR5B6XIXAm_J3Fv32rAUnqYegKTN2ZV7aF9el2P5bHB_Kw0au6xq-FJtmZwAhskQICDQ5dLnbsUd4048TKw-eIC80sZ5xpyklT1bBSZH45PyacmUag2013-08-02 > >11:11:50,175 > >> DEBUG [cloud.servlet.ConsoleProxyServlet] > >> > (catalina-exec-17:null) the console url is :: > >> > <html><title>test07</title><frameset><frame src=" > >> > > >> > > >> > https://192-168-45-151.realhostip.com/ajax?token=tsl1xX_XA22fT8WGySZVyWSrZhWM13kgOMdgCRJQJjorDfux2-SSoUWFOJgHQpgBp0ZptEq2Xg3GwFqUGR4BZoTni6p6PhTry5lATbs34ZurK5VBp3S8BnR95AlDgb-xpUbimHYL3cGR7QaZCLPrx2AJOktrEFEoh-FSDyXbiMuyrL2ums3LISK79NVMr6W8flw0odbLopKv9a3BaRzyC-GKmgVzGDqONhUDalbteoiZv9c0LCnWXnTixdj6vzt0rLpY4xgF_9KCxIj191SC1XpFO6lZRBt-hJDa8N73KIkUCnKwwB8tZC34veUjOyBCFuYg5rEIysaJP47D3yQXl3HeBP6YjbMHvZNwwXwa1QbFoKe926CrppkTdIR5B6XIXAm_J3Fv32rAUnqYegKTN2ZV7aF9el2P5bHB_Kw0au6xq-FJtmZwAhskQICDQ5dLnbsUd4048TKw-eIC80sZ5xpyklT1bBSZH45PyacmUag > >> > "></frame></frameset></html> > >> > 2013-08-02 11:11:53,595 DEBUG [agent.manager.DirectAgentAttache] > >> > (DirectAgent-66:null) Ping from 1 > >> > ... ... > >> > 我是部署的高级网络模式,proxy console system > >> vm有三个网卡,net1:192.168.45.151(public > >> > ip,公司内网,类似公网IP),net2:172.16.101.2(自建的管理网络),net3:169.254.2.100(local)。 > >> > 从v-2-VM通过管理网络可以访问到xenserver。 > >> > 对于console的访问流程我不懂,如果需要提供什么log,或者跟踪信息,请指教下。 > >> > > >> > > > > >