Return-Path: X-Original-To: apmail-incubator-cloudstack-users-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 32F9FD1C7 for ; Tue, 6 Nov 2012 16:39:43 +0000 (UTC) Received: (qmail 2091 invoked by uid 500); 6 Nov 2012 16:39:42 -0000 Delivered-To: apmail-incubator-cloudstack-users-archive@incubator.apache.org Received: (qmail 2009 invoked by uid 500); 6 Nov 2012 16:39:42 -0000 Mailing-List: contact cloudstack-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-users@incubator.apache.org Delivered-To: mailing list cloudstack-users@incubator.apache.org Received: (qmail 1989 invoked by uid 99); 6 Nov 2012 16:39:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 16:39:41 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rajesh.battala@citrix.com designates 203.166.19.134 as permitted sender) Received: from [203.166.19.134] (HELO SMTP.CITRIX.COM.AU) (203.166.19.134) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 16:39:35 +0000 X-IronPort-AV: E=Sophos;i="4.80,722,1344211200"; d="scan'208";a="13394626" Received: from banpmailmx02.citrite.net ([10.103.128.74]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/RC4-MD5; 06 Nov 2012 16:39:10 +0000 Received: from BANPMAILBOX01.citrite.net ([10.103.128.72]) by BANPMAILMX02.citrite.net ([10.103.128.74]) with mapi; Tue, 6 Nov 2012 22:09:09 +0530 From: Rajesh Battala To: France , "cloudstack-users@incubator.apache.org" Date: Tue, 6 Nov 2012 22:08:37 +0530 Subject: RE: Make vnc bind to 0.0.0.0 insted of localhost on XenServer 6 with CS 3.0.2 Thread-Topic: Make vnc bind to 0.0.0.0 insted of localhost on XenServer 6 with CS 3.0.2 Thread-Index: Ac28E1X19CP6nIiBTJG4iGNWBmCllQAKa57Q Message-ID: <97F4356AEA71904482CD192135C038F90113041EBFD1@BANPMAILBOX01.citrite.net> References: <50978990.3040701@isg.si> <97F4356AEA71904482CD192135C038F90113041EBC7C@BANPMAILBOX01.citrite.net> <50978F8D.1070207@isg.si> <97F4356AEA71904482CD192135C038F90113041EBCC0@BANPMAILBOX01.citrite.net> <5097D34E.4030904@isg.si> <97F4356AEA71904482CD192135C038F90113041EBE1C@BANPMAILBOX01.citrite.net> <5098D595.4060002@isg.si> <5098DA0B.50202@isg.si> <97F4356AEA71904482CD192135C038F90113041EBEEB@BANPMAILBOX01.citrite.net> <5098F6D3.8090903@isg.si> In-Reply-To: <5098F6D3.8090903@isg.si> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org HI France, I will try to reproduce it with Windows guest VMs and let you know. Thanks Rajesh Battala -----Original Message----- From: France [mailto:mailinglists@isg.si]=20 Sent: Tuesday, November 06, 2012 5:09 PM To: cloudstack-users@incubator.apache.org Cc: Rajesh Battala Subject: Re: Make vnc bind to 0.0.0.0 insted of localhost on XenServer 6 wi= th CS 3.0.2 Hi Rajesh, if there is a more secure solution, which we can implement, we'll be happy = to do so. Because we need working console access for our Windows VM, i'm willing to l= ive with option, that if someone gains access to our management network, wh= ere hypervisors are, then he can access VNC consoles. If hacker gains acces= s to our management network, we have bigger problems anyway. Thank you for your help. Regards, F. On 6/11/12 11:33 AM, Rajesh Battala wrote: > Hi France, > If the vnc starts listening 0.0.0.0 then with vnc viewer we can access th= e consoles of any VM running in the host without any password. > > This will be a security issue as we are accessing any VM console running = in the host without any password. > > Thanks > Rajesh Battala > > -----Original Message----- > From: France [mailto:mailinglists@isg.si] > Sent: Tuesday, November 06, 2012 3:06 PM > To: cloudstack-users@incubator.apache.org > Cc: Rajesh Battala > Subject: Re: Make vnc bind to 0.0.0.0 insted of localhost on XenServer=20 > 6 with CS 3.0.2 > > Hi Rajesh and others, > > i decided that we don't have time to discuss this anymore, so i just hack= ed myself qemu-dm-wrapper file. > I used this commit as a guideline: > https://github.com/xen-org/xen-api/commit/682f85fadff8cf199c8bf932854c > 5ef1a9a3e0a7 > > this is the change i did: > [root@x1 libexec]# diff /root/qemu-dm-wrapper qemu-dm-wrapper > 98a99,101 > > qemu_args.append("-vnc") > > qemu_args.append("0.0.0.0:1") > > > > After migrating one Windows VM to x1 hipervisor host, i get a working con= sole using CS 3.0.2 GUI. > > If this is somehow wrong or will have some dire consequences please let m= e know, otherwise i'll just do it on all hypervisors. > > Regards, > F. > > On 6/11/12 10:17 AM, France wrote: >> Hi Rajesh, >> >> stopping and starting (not restarting) did not help. >> The console still isn't accessible from CloudStack GUI. >> >> On unrelated note, it works from XenCenter. >> As for the wiki post, i cannot read it. I get this error upon=20 >> visiting with registered username: >> - >> You cannot view this page due to inherited restrictions Page level=20 >> restrictions have been applied to a parent of the current page. These=20 >> restrictions limit access to certain user(s) or group(s) and apply to=20 >> all pages underneath the parent. >> - >> >> Regards, >> F. >> >> On 6/11/12 6:35 AM, Rajesh Battala wrote: >>> Hi France, >>> >>> Moving vnc term to listen on localhost is done because of this=20 >>> http://wiki.cloudstack.org/display/RelOps/Secure+Console+Access+on+X >>> e nServer ( sorry to point to cloudstack wiki as I didn't find the=20 >>> same page in apache Cwiki). >>> >>> Can you please stop the vm and then start instead of restarting the=20 >>> vm and let us know the issue is resolved or not? >>> >>> Thanks >>> Rajesh Battala >>> >>> >>> >>> From: France [mailto:mailinglists@isg.si] >>> Sent: Monday, November 05, 2012 8:25 PM >>> To: Rajesh Battala >>> Cc: cloudstack-users@incubator.apache.org >>> Subject: Re: Make vnc bind to 0.0.0.0 insted of localhost on=20 >>> XenServer 6 with CS 3.0.2 >>> >>> Hi Rajesh, >>> >>> thank you for taking the time and helping us with this issue. >>> Below is additional information. >>> Some of the consoles started working after rebooting them via=20 >>> CloudStack GUI, while some (Windows) are still inaccessible. This=20 >>> seems to be now a Windows only issue or an issue related to: >>> qemu-dm-wrapper script. >>> >>> Currently on none of the running/old (not rebooted) instances=20 >>> console is available. >>> After rebooting "Console Proxy VM" itself, i can access following=20 >>> system VMs: >>> "Secondary Storage VM" >>> "Console Proxy VM" >>> All rebooted system routers. >>> >>> If i reboot Linux based VM, router or user's instance, the console=20 >>> starts working again. >>> If i create a new centos 6.3 VM, i also get a working web console. >>> >>> If i create a new windows 2008R2 vm or if a reboot an already=20 >>> created one, i cannot get the console. I could before installing hotfix= es. >>> >>> This is how netstat looks if for that windows VM: >>> tcp 0 0 127.0.0.1:5901 0.0.0.0:* >>> LISTEN 8232/vncterm >>> tcp 0 0 127.0.0.1:9501 0.0.0.0:* >>> LISTEN 8232/vncterm >>> This is how netstat looks if a live migrate another linux to the=20 >>> same >>> hipervisor: >>> tcp 0 0 127.0.0.1:5901 0.0.0.0:* >>> LISTEN 8232/vncterm >>> tcp 0 0 0.0.0.0:5903 0.0.0.0:* >>> LISTEN 5065/vncterm >>> tcp 0 0 127.0.0.1:9501 0.0.0.0:* >>> LISTEN 8232/vncterm >>> tcp 0 0 0.0.0.0:9502 0.0.0.0:* >>> LISTEN 5065/vncterm >>> >>> Some additional details: >>> [root@x1 ~]# netstat -paltn | grep 59 >>> tcp 0 0 127.0.0.1:5901 0.0.0.0:* >>> LISTEN 8232/vncterm >>> tcp 0 0 127.0.0.1:5902 0.0.0.0:* >>> LISTEN 3504/qemu-dm-15 >>> tcp 0 0 0.0.0.0:5903 0.0.0.0:* >>> LISTEN 5065/vncterm >>> tcp 0 0 10.31.0.21:59994 10.31.0.24:443 >>> ESTABLISHED 8288/stunnel >>> tcp 0 0 10.31.0.21:5903 10.31.0.238:39476 >>> ESTABLISHED 5075/vncterm >>> tcp 0 0 10.31.0.21:48259 10.31.0.24:443 >>> TIME_WAIT - >>> >>> It seems to me that the problem is, that qemu-dm-wrapper is=20 >>> listening on 127.0.0.1 instead of 0.0.0.0. Probably qemu-dm-wrapper=20 >>> was changed by some hotfix. >>> >>> So to sum up again. Using windows templates after installing=20 >>> hotfixes, VNC get's binded to localhost (127.0.01) instead of=20 >>> binding it to every IPv4: 0.0.0.0. >>> Please advise how to get Windows consoles back or make it listen on=20 >>> all IPs. >>> >>> Thank you and Regards, >>> F. >>> On 5/11/12 11:40 AM, Rajesh Battala wrote: >>> Hi France, >>> For which kind of instances you are getting the error message?=20 >>> [Newly created or old vm's ] Were you able to view the console for=20 >>> the system VM's? >>> >>> Thanks >>> Rajesh Battala >>> >>> From: France [mailto:mailinglists@isg.si] >>> Sent: Monday, November 05, 2012 3:36 PM >>> To: >>> cloudstack-users@incubator.apache.org>> t >>> or.apache.org> >>> Cc: Rajesh Battala >>> Subject: Re: Make vnc bind to 0.0.0.0 insted of localhost on=20 >>> XenServer 6 with CS 3.0.2 >>> >>> Hi Rajesh, >>> >>> thank you for your explanation. >>> What is the proposed solution to get the proxy web console=20 >>> back/working in CloudStack 3.0.2 web GUI? >>> >>> Currently i'm getting error: " Unable to start console session as=20 >>> connection is refused by the machine you are accessing" >>> >>> Regards, >>> M. >>> On 5/11/12 10:50 AM, Rajesh Battala wrote: >>> >>> Hi France, >>> >>> We had modified the vnc config on xenserver hosts to listen on=20 >>> localhost instead of 0.0.0.0 because of security reasons. >>> >>> In your 3.0.2 environment, CS uses https console url provided by the=20 >>> xenserver host to stream the VNC to the Ajax client. >>> >>> >>> >>> Thanks >>> >>> Rajesh Battala >>> >>> >>> >>> >>> >>> -----Original Message----- >>> >>> From: France [mailto:mailinglists@isg.si] >>> >>> Sent: Monday, November 05, 2012 3:11 PM >>> >>> To: >>> cloudstack-users@incubator.apache.org>> t >>> or.apache.org> >>> >>> Subject: Make vnc bind to 0.0.0.0 insted of localhost on XenServer 6=20 >>> with CS 3.0.2 >>> >>> >>> >>> Hi, >>> >>> >>> >>> i'm using CloudStack 3.0.2 (as per last official release) and=20 >>> XenServer 6.0.2-53456p (xenenterprise). >>> >>> >>> >>> After installing some of these hotfixes: >>> >>> [root@x4 ~]# xe patch-list | grep XS6 >>> >>> name-label ( RO): XS602E002 >>> >>> name-label ( RO): XS602E005 >>> >>> name-label ( RO): XS602E006 >>> >>> name-label ( RO): XS602E003 >>> >>> name-label ( RO): XS602E001 >>> >>> name-label ( RO): XS602E008 >>> >>> name-label ( RO): XS602E009 >>> >>> name-label ( RO): XS602E004 >>> >>> name-label ( RO): XS602E007 >>> >>> >>> >>> VNC terminal get's binded to 127.0.0.1 or localhost instead of=20 >>> binding to 0.0.0.0, which in turn means, that newly created >>> (restarted?) virtual instances can not be accessed with WEB proxy=20 >>> console, because connection to hipervisor host is refused. >>> >>> [root@x4 ~]# netstat -apltn | grep vnc >>> >>> tcp 0 0 127.0.0.1:9504 0.0.0.0:* >>> >>> LISTEN 11695/vncterm >>> >>> tcp 0 0 127.0.0.1:9505 0.0.0.0:* >>> >>> LISTEN 12269/vncterm >>> >>> tcp 0 0 127.0.0.1:5901 0.0.0.0:* >>> >>> LISTEN 8128/vncterm >>> >>> tcp 0 0 0.0.0.0:5902 0.0.0.0:* LISTEN >>> >>> 28166/vncterm >>> >>> tcp 0 0 127.0.0.1:5903 0.0.0.0:* >>> >>> LISTEN 11251/vncterm >>> >>> tcp 0 0 127.0.0.1:5904 0.0.0.0:* >>> >>> LISTEN 11695/vncterm >>> >>> tcp 0 0 127.0.0.1:5905 0.0.0.0:* >>> >>> LISTEN 12269/vncterm >>> >>> tcp 0 0 127.0.0.1:9501 0.0.0.0:* >>> >>> LISTEN 8128/vncterm >>> >>> tcp 0 0 0.0.0.0:9502 0.0.0.0:* LISTEN >>> >>> 28166/vncterm >>> >>> tcp 0 0 127.0.0.1:9503 0.0.0.0:* >>> >>> LISTEN 11251/vncterm >>> >>> >>> >>> ##### >>> >>> How can i make newly created (restarted?) virtual instances to bind=20 >>> to >>> >>> 0.0.0.0 again? >>> >>> ##### >>> >>> >>> >>> >>> >>> We've had a lot of other problems after the upgrade(s), most of them >>> >>> solved bo manually copying files from cloudstack management server=20 >>> to >>> >>> hipervisors. Like: NFSSR.py to fix storage template problems. This >>> >>> problem might be related to files: >>> >>> /opt/xensource/libexec/vncterm-wrapper or qemu-dm-wrapper but i=20 >>> don't >>> >>> want to screw around with these on production system myself. >>> >>> Please advise. Thank you. >>> >>> >>> >>> Regards, >>> >>> France >>> >>> >>>