Hi, How do I take over a XEN domU''s console, from anothe user? XEN keeps giving me this error when I try and access a domU via SSH: Another console has already been attached to guest -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 Fax: 086 268 8492
Alexandre Kouznetsov
2012-Jun-21 20:23 UTC
Re: how to take over console from another user?
El 21/06/12 06:27, Rudi Ahlers escribió:> How do I take over a XEN domU''s console, from anothe user?Works for me. Xen 4.0.1, 2.6.32-5-xen-amd64. (well, it''s not a "take over". It opens a second console.) Please describe, what do you do exactly to reproduce the issue, and what is your environment. -- Alexandre Kouznetsov
On Thu, Jun 21, 2012 at 10:23 PM, Alexandre Kouznetsov <alk@ondore.com> wrote:> El 21/06/12 06:27, Rudi Ahlers escribió: >> >> How do I take over a XEN domU''s console, from anothe user? > > Works for me. Xen 4.0.1, 2.6.32-5-xen-amd64. > (well, it''s not a "take over". It opens a second console.) > > Please describe, what do you do exactly to reproduce the issue, and what is > your environment. >When someone already had a connection open for a domU''s console, then I can''t open another connection to it. How do I establish a 2nd connection? -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 Fax: 086 268 8492
Alexandre Kouznetsov
2012-Jun-22 15:43 UTC
Re: how to take over console from another user?
El 22/06/12 04:18, Rudi Ahlers escribió:> On Thu, Jun 21, 2012 at 10:23 PM, Alexandre Kouznetsov<alk@ondore.com> wrote: >> El 21/06/12 06:27, Rudi Ahlers escribió: >>> >>> How do I take over a XEN domU''s console, from anothe user? >> >> Works for me. Xen 4.0.1, 2.6.32-5-xen-amd64. >> (well, it''s not a "take over". It opens a second console.) >> >> Please describe, what do you do exactly to reproduce the issue, and what is >> your environment. >> > When someone already had a connection open for a domU''s console, then > I can''t open another connection to it. How do I establish a 2nd > connection?Maybe we are treating differently the term console? Let''s say, i have a Dom0 with a running DomU called "whatever". I can get more than one terminal on Dom0, let''s say, connecting via SSH. I run "xm console whatever" on one terminal and get a console access. I run the same command on another terminal, and get another console access. (BTW, that they both connect me to the same console, if i log in on one of them, i appear to be logged in on the other one. The output is slitted in a weired way. Not very usable.) If I wish to force me terminal to detach form any of them, I look for xenconsole running process and kill it. Is that what are you talking about? -- Alexandre Kouznetsov
On Fri, Jun 22, 2012 at 10:43:31AM -0500, Alexandre Kouznetsov wrote:> Let''s say, i have a Dom0 with a running DomU called "whatever". I can > get more than one terminal on Dom0, let''s say, connecting via SSH. > I run "xm console whatever" on one terminal and get a console access. I > run the same command on another terminal, and get another console access. > > (BTW, that they both connect me to the same console, if i log in on one > of them, i appear to be logged in on the other one. The output is > slitted in a weired way. Not very usable.) > > If I wish to force me terminal to detach form any of them, I look for > xenconsole running process and kill it. > > Is that what are you talking about?I bet. For a long time, that worked, well, sortof. there were always problems when two people were on the same console. I noticed that with the latest RHEL5 (centos5) xen package, though, they added some locking. If you try to xm console to the same domain twice, it won''t let you. Which I think is great, as it makes the whole console experience feel more reliable to the end user. To answer the original question, I use kill on the xm console process I want gone.
I just noticed messing around with the consoles today that Debian wheezy does not implement locking and I can attest to the weirdness of two terminals being logged in at once. How come this is done by the distro and not by Xen? Feature request to xen-devel? On Jun 22, 2012, at 4:17 PM, "Luke S. Crawford" <lsc@prgmr.com> wrote:> On Fri, Jun 22, 2012 at 10:43:31AM -0500, Alexandre Kouznetsov wrote: >> Let''s say, i have a Dom0 with a running DomU called "whatever". I can >> get more than one terminal on Dom0, let''s say, connecting via SSH. >> I run "xm console whatever" on one terminal and get a console access. I >> run the same command on another terminal, and get another console access. >> >> (BTW, that they both connect me to the same console, if i log in on one >> of them, i appear to be logged in on the other one. The output is >> slitted in a weired way. Not very usable.) >> >> If I wish to force me terminal to detach form any of them, I look for >> xenconsole running process and kill it. >> >> Is that what are you talking about? > > I bet. For a long time, that worked, well, sortof. there were always > problems when two people were on the same console. > > I noticed that with the latest RHEL5 (centos5) xen package, though, > they added some locking. If you try to xm console to the same domain > twice, it won''t let you. Which I think is great, as it makes the whole > console experience feel more reliable to the end user. > > To answer the original question, I use kill on the xm console process > I want gone. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users