[libvirt] breaking out of virsh console?

Hello all... In my VM's inittab, I set agetty to run on ttyS0 so I could do "virsh console myvm" and log in from the host machine's command line. It works perfectly. Trouble is, I don't know how to break out of it to get back to the command line on my host. I've only been able to do so by killing the virsh process. There's gotta be a better way.. Right? Thanks...Paul...

On Thu, 2008-08-14 at 11:23 -0700, Schroeder, Paul wrote:
Hello all...
In my VM's inittab, I set agetty to run on ttyS0 so I could do "virsh console myvm" and log in from the host machine's command line. It works perfectly. Trouble is, I don't know how to break out of it to get back to the command line on my host. I've only been able to do so by killing the virsh process. There's gotta be a better way.. Right?
ctrl + ]
Thanks...Paul...
-- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

On Thu, Aug 14, 2008 at 02:26:57PM -0400, Andrew Cathrow wrote:
On Thu, 2008-08-14 at 11:23 -0700, Schroeder, Paul wrote:
Hello all...
In my VM's inittab, I set agetty to run on ttyS0 so I could do "virsh console myvm" and log in from the host machine's command line. It works perfectly. Trouble is, I don't know how to break out of it to get back to the command line on my host. I've only been able to do so by killing the virsh process. There's gotta be a better way.. Right?
ctrl + ]
Patches to add documentation to this effect in the virsh.pod man page and / or website HTML pages are welcomed :-) Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

On Thu, 14 Aug 2008, Daniel P. Berrange wrote:
On Thu, Aug 14, 2008 at 02:26:57PM -0400, Andrew Cathrow wrote:
On Thu, 2008-08-14 at 11:23 -0700, Schroeder, Paul wrote:
Hello all...
In my VM's inittab, I set agetty to run on ttyS0 so I could do "virsh console myvm" and log in from the host machine's command line. It works perfectly. Trouble is, I don't know how to break out of it to get back to the command line on my host. I've only been able to do so by killing the virsh process. There's gotta be a better way.. Right?
ctrl + ]
Patches to add documentation to this effect in the virsh.pod man page and / or website HTML pages are welcomed :-)
With respect to this. Does anyone have a pam configuration to connect to vm (vm@shellhost)? My current plan is to extend my mDNS based libvirt implementation with one login server that is able to connect to any of my other nodes in the network. But if anyone has something I can base a PAM configuration on I'm happy to reuse it :) Stefan

Hello, even though this might probably not be exactly what you expect, I released a GPL3-Tool, the UnifiedSessionsManager, what functionally supports the "splitted" management of Clients and Servers including Headless-Mode and allows for disconnect and reconnect by a simplified addressing schema only. But anyhow, the onyl supported communications channel is SSH, tested with OpenSSH. I personally use SSH as kerberized SSO in companion with LDAP and automount by usage of PAM, thus having exactly the functionality of a centralized access by encrypted communications only. The tool supports for DISPLAYFORWARDING as well as for CONNECTIONFORWARDING, which is a local client on caller's site. Remote execution of X11 clients are supoorted, e.g. for remote VMM execution and passing the GUI through the SSH tunnel via DISPLAYFORWARDING. Additionally several CONSOLE types are supported in a generic manner for XEN, which are: XTERM, GTERM, VNC, EMACS, NONE. Where NONE is the headless-mode for initial startup. The name UnifiedSessionsManager means, it supports the (almost) same syntax for all supported types: XEN, QEMU, VMW(VMare:workstaion,server,player),VNC,X11,CLI, and PM, where PM is a physical machine, which could be started by WoL-WakeOnLAN. Thus you can setup a login-server, where ever you want, and just access any of your PMs or VMs, physical or virtual machines, in a secure manner by SSH. And connect and reconnect arbitrarily as you require, and choose for each session a different CONSOLE type. Additionally MACROs and GROUPs are supported, though the one-call startup of any desktop with an arbitrary number of VMs is supported. This includes the automated startup of the VMs. The URL is http://www.unifiedsessionsmanager.org http://sourceforge.net/projects/ctys Arno Stefan de Konink wrote:
On Thu, 14 Aug 2008, Daniel P. Berrange wrote:
On Thu, Aug 14, 2008 at 02:26:57PM -0400, Andrew Cathrow wrote:
On Thu, 2008-08-14 at 11:23 -0700, Schroeder, Paul wrote:
Hello all...
In my VM's inittab, I set agetty to run on ttyS0 so I could do "virsh console myvm" and log in from the host machine's command line. It works perfectly. Trouble is, I don't know how to break out of it to get back to the command line on my host. I've only been able to do so by killing the virsh process. There's gotta be a better way.. Right?
ctrl + ]
Patches to add documentation to this effect in the virsh.pod man page and / or website HTML pages are welcomed :-)
With respect to this. Does anyone have a pam configuration to connect to vm (vm@shellhost)? My current plan is to extend my mDNS based libvirt implementation with one login server that is able to connect to any of my other nodes in the network. But if anyone has something I can base a PAM configuration on I'm happy to reuse it :)
Stefan
-- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
-- ---------------------------------------------------------------------------- Arno-Can Uestuensoez www.i4p.de / www.i4p.com
participants (5)
-
acue
-
Andrew Cathrow
-
Daniel P. Berrange
-
Schroeder, Paul
-
Stefan de Konink