* [Qemu-devel] SSH console for qemu
@ 2011-07-06 14:08 Nikita A Menkovich
2011-07-06 15:27 ` Stefan Hajnoczi
0 siblings, 1 reply; 6+ messages in thread
From: Nikita A Menkovich @ 2011-07-06 14:08 UTC (permalink / raw)
To: qemu-devel, libvirt-users
Hello,
I'm using qemu with libvirt and I want to create SSH emergency console
to linux/unix guests, same way as it is realized in qemu VNC.
Maybe someone could help me to determine a place to dive in this question.
I think the best way to make it - extend qemu API. But if this could
be made with libvirt - this will be also fine.
--
Nikita A Menkovich
http://libc6.org/
JID: menkovich@gmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] SSH console for qemu
2011-07-06 14:08 [Qemu-devel] SSH console for qemu Nikita A Menkovich
@ 2011-07-06 15:27 ` Stefan Hajnoczi
2011-07-07 8:36 ` Nikita A Menkovich
0 siblings, 1 reply; 6+ messages in thread
From: Stefan Hajnoczi @ 2011-07-06 15:27 UTC (permalink / raw)
To: Nikita A Menkovich; +Cc: libvirt-users, qemu-devel
On Wed, Jul 6, 2011 at 3:08 PM, Nikita A Menkovich <menkovich@gmail.com> wrote:
> I'm using qemu with libvirt and I want to create SSH emergency console
> to linux/unix guests, same way as it is realized in qemu VNC.
> Maybe someone could help me to determine a place to dive in this question.
>
> I think the best way to make it - extend qemu API. But if this could
> be made with libvirt - this will be also fine.
Serial console and the "virsh console" command?
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] SSH console for qemu
2011-07-06 15:27 ` Stefan Hajnoczi
@ 2011-07-07 8:36 ` Nikita A Menkovich
2011-07-07 18:19 ` [Qemu-devel] [libvirt-users] " Eric Blake
2011-07-07 18:47 ` [Qemu-devel] " Stefan Hajnoczi
0 siblings, 2 replies; 6+ messages in thread
From: Nikita A Menkovich @ 2011-07-07 8:36 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: libvirt-users, qemu-devel
Seems no, I think, that the best way is running some kind of ssh
daemon, that connects to console (/dev/vcsa1 for example), that listen
on port and send to output console events on boot, and allow to work
with server with simple ssh client. Also important feature will be
saving history of output.
On 6 July 2011 19:27, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Wed, Jul 6, 2011 at 3:08 PM, Nikita A Menkovich <menkovich@gmail.com> wrote:
>> I'm using qemu with libvirt and I want to create SSH emergency console
>> to linux/unix guests, same way as it is realized in qemu VNC.
>> Maybe someone could help me to determine a place to dive in this question.
>>
>> I think the best way to make it - extend qemu API. But if this could
>> be made with libvirt - this will be also fine.
>
> Serial console and the "virsh console" command?
>
> Stefan
>
--
Nikita A Menkovich
http://libc6.org/
JID: menkovich@gmail.com
Tel: +7 (921) 423-96-48
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [libvirt-users] SSH console for qemu
2011-07-07 8:36 ` Nikita A Menkovich
@ 2011-07-07 18:19 ` Eric Blake
2011-07-07 20:55 ` Nikita A Menkovich
2011-07-07 18:47 ` [Qemu-devel] " Stefan Hajnoczi
1 sibling, 1 reply; 6+ messages in thread
From: Eric Blake @ 2011-07-07 18:19 UTC (permalink / raw)
To: Nikita A Menkovich; +Cc: libvirt-users, Stefan Hajnoczi, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]
On 07/07/2011 02:36 AM, Nikita A Menkovich wrote:
> Seems no, I think, that the best way is running some kind of ssh
> daemon, that connects to console (/dev/vcsa1 for example), that listen
> on port and send to output console events on boot, and allow to work
> with server with simple ssh client. Also important feature will be
> saving history of output.
If you're trying to capture boot events, then you have to have an SGA
(serial graphics adaptor) capable BIOS that can output boot events on
the serial console. There's recent work underway to add that feature to
qemu, and to expose that feature from libvirt:
https://www.redhat.com/archives/libvir-list/2011-July/msg00174.html
Setting up an ssh daemon in the guest is too late - the daemon won't be
set up until the guest has already booted, so there's no way to have
that daemon forward boot messages back to the host in a timely manner.
I think you're trying too hard - 'virsh console' really is the way to
read all messages output to the guest's console, and your only missing
piece is that you also appear to want BIOS to output to the console.
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] SSH console for qemu
2011-07-07 8:36 ` Nikita A Menkovich
2011-07-07 18:19 ` [Qemu-devel] [libvirt-users] " Eric Blake
@ 2011-07-07 18:47 ` Stefan Hajnoczi
1 sibling, 0 replies; 6+ messages in thread
From: Stefan Hajnoczi @ 2011-07-07 18:47 UTC (permalink / raw)
To: Nikita A Menkovich; +Cc: libvirt-users, qemu-devel
On Thu, Jul 7, 2011 at 9:36 AM, Nikita A Menkovich <menkovich@gmail.com> wrote:
> Seems no, I think, that the best way is running some kind of ssh
> daemon, that connects to console (/dev/vcsa1 for example), that listen
> on port and send to output console events on boot, and allow to work
> with server with simple ssh client. Also important feature will be
> saving history of output.
If you configure an ssh daemon properly you can have it invoke "virsh
console <domain>" as the shell. Remember to lock down port forwarding
and sftp.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [libvirt-users] SSH console for qemu
2011-07-07 18:19 ` [Qemu-devel] [libvirt-users] " Eric Blake
@ 2011-07-07 20:55 ` Nikita A Menkovich
0 siblings, 0 replies; 6+ messages in thread
From: Nikita A Menkovich @ 2011-07-07 20:55 UTC (permalink / raw)
To: Eric Blake; +Cc: libvirt-users, Stefan Hajnoczi, qemu-devel
I want to launch very minimal ssh daemon (that listen on selected port
and allows only input commands and read output from console) that
launch when guest started, and this not run inside a guest.
Thanks to the link for patch
On 7 July 2011 22:19, Eric Blake <eblake@redhat.com> wrote:
> On 07/07/2011 02:36 AM, Nikita A Menkovich wrote:
>> Seems no, I think, that the best way is running some kind of ssh
>> daemon, that connects to console (/dev/vcsa1 for example), that listen
>> on port and send to output console events on boot, and allow to work
>> with server with simple ssh client. Also important feature will be
>> saving history of output.
>
> If you're trying to capture boot events, then you have to have an SGA
> (serial graphics adaptor) capable BIOS that can output boot events on
> the serial console. There's recent work underway to add that feature to
> qemu, and to expose that feature from libvirt:
>
> https://www.redhat.com/archives/libvir-list/2011-July/msg00174.html
>
> Setting up an ssh daemon in the guest is too late - the daemon won't be
> set up until the guest has already booted, so there's no way to have
> that daemon forward boot messages back to the host in a timely manner.
> I think you're trying too hard - 'virsh console' really is the way to
> read all messages output to the guest's console, and your only missing
> piece is that you also appear to want BIOS to output to the console.
>
> --
> Eric Blake eblake@redhat.com +1-801-349-2682
> Libvirt virtualization library http://libvirt.org
>
>
--
Nikita A Menkovich
http://libc6.org/
JID: menkovich@gmail.com
Tel: +7 (921) 423-96-48
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-07-07 20:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-06 14:08 [Qemu-devel] SSH console for qemu Nikita A Menkovich
2011-07-06 15:27 ` Stefan Hajnoczi
2011-07-07 8:36 ` Nikita A Menkovich
2011-07-07 18:19 ` [Qemu-devel] [libvirt-users] " Eric Blake
2011-07-07 20:55 ` Nikita A Menkovich
2011-07-07 18:47 ` [Qemu-devel] " Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).