Cannot connect to console?
Hello,
I make a domain on ttylinux as in the Xen 2.0 manual. Then I try to connect to its console, but without sucess. Anybody please tell me how to fix the problem?
Here is how I connect to console (my Xen installation is from Xen 2.0.1 binary tarball):
---
$ xm list Name Id Mem(MB) CPU State Time(s) Console Domain-0 0 245 0 r---- 271.4 tty 13 64 0 -b--- 0.5 9613 $ xm console tty ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** Cannot connect to console 13 on domain 13
************ REMOTE CONSOLE EXITED *****************
$ xm console 13 ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** Cannot connect to console 13 on domain 13
************ REMOTE CONSOLE EXITED ***************** $
---
Thank you,
AQ
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 16 lines · aq
Hello,
I make a domain on ttylinux as in the Xen 2.0 manual. Then I try to connect to its console, but without sucess. Anybody please tell me how to fix the problem?
Here is how I connect to console (my Xen installation is from Xen 2.0.1 binary tarball):
---$ xm list Name Id Mem(MB) CPU State Time(s) Console Domain-0 0 245 0 r---- 271.4 tty 13 64 0 -b--- 0.5 9613 $ xm console tty ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** Cannot connect to console 13 on domain 13
Quoted 7 lines
************ REMOTE CONSOLE EXITED *****************
$ xm console 13 ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** Cannot connect to console 13 on domain 13************ REMOTE CONSOLE EXITED ***************** $
what does nc localhost 9613? in other words, are you able to connect to the TCP port that console is bound to? does option "-c" for xend create work?
jkt
Signature · 8 lines
cd /local/pub && more beer > /dev/mouth ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
Quoted 16 lines
Quoted 16 lines
Here is how I connect to console (my Xen installation is from Xen 2.0.1 binary tarball):
---$ xm list Name Id Mem(MB) CPU State Time(s) Console Domain-0 0 245 0 r---- 271.4 tty 13 64 0 -b--- 0.5 9613 $ xm console tty ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** Cannot connect to console 13 on domain 13************ REMOTE CONSOLE EXITED *****************
$ xm console 13 ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** Cannot connect to console 13 on domain 13
Quoted 6 lines
Quoted 2 lines
************ REMOTE CONSOLE EXITED ***************** $
what does
nc localhost 9613? in other words, are you able to connect to the TCP port that console is bound to? does option "-c" forxend creatework?
ah, I forgot to tell you that the problem I got was with -c option (xm create tty.xen -c)
here is the output of my attempt to connect to tcp socket, as suggested by Jan:
---
$ nc localhost 9602 Cannot connect to console 13 on domain 2 --- as you see, the problem still occurs.
then I tried again, this time without -c option. and I was surprised to see that "xm console tty" works (!!).
so I conclude that this is the expected behaviour of Xen: if I want to connect to console with "xm console", then I must not use "-c" option?
Thank you,
AQ
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 15 lines · aq
Quoted 3 lines
what does
nc localhost 9613? in other words, are you able to connect to the TCP port that console is bound to? does option "-c" forxend creatework?ah, I forgot to tell you that the problem I got was with -c option (xm create tty.xen -c)
here is the output of my attempt to connect to tcp socket, as suggested by Jan:
---$ nc localhost 9602 Cannot connect to console 13 on domain 2 --- as you see, the problem still occurs.
Quoted 5 lines
then I tried again, this time without -c option. and I was surprised to see that "xm console tty" works (!!).
so I conclude that this is the expected behaviour of Xen: if I want to connect to console with "xm console", then I must not use "-c" option?
no. something is wrong :-). I'm not a xen developer, but I'll suggest you to try to run xend with some debugging options...
Aren't you trying to access domain's console twice at once? I mean console opened from "-c" option and then issuing xend console .... It shouldn't work, AFAIK.
jkt
Signature · 8 lines
cd /local/pub && more beer > /dev/mouth ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
Quoted 22 lines · Jan Kundrát
Quoted 15 lines · aq
Quoted 3 lines
what does
nc localhost 9613? in other words, are you able to connect to the TCP port that console is bound to? does option "-c" forxend creatework?ah, I forgot to tell you that the problem I got was with -c option (xm create tty.xen -c)
here is the output of my attempt to connect to tcp socket, as suggested by Jan:
---$ nc localhost 9602 Cannot connect to console 13 on domain 2 --- as you see, the problem still occurs.Quoted 5 lines
then I tried again, this time without -c option. and I was surprised to see that "xm console tty" works (!!).
so I conclude that this is the expected behaviour of Xen: if I want to connect to console with "xm console", then I must not use "-c" option?
Quoted 6 lines
no. something is wrong :-). I'm not a xen developer, but I'll suggest you to try to run xend with some debugging options...
Aren't you trying to access domain's console twice at once? I mean console opened from "-c" option and then issuing
xend console .... It shouldn't work, AFAIK.
Yes, I run "xm create tty.xen -c", and then in another console (of domain0) I run "xm console tty" --> this time without success.
So the problem is that: at the same time there is only 1 console? any Xen developer can confirm this?
Thank you,
AQ
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 2 lines · aq
So the problem is that: at the same time there is only 1 console? any Xen developer can confirm this?
I'm not a developer, but I can confirm that this is, in fact, the case. The consoles provided as part of Xen are like serial consoles to independent systems. They are unmultiplexed. Simply, once you have connected to it once, that's it. If you need to connect to the instance multiple times, perhaps you should be using SSH instead?
Signature · 8 lines
Derrik Pates [email protected] ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/