Carlos Godoy
2016-Feb-02 15:36 UTC
[libvirt-users] Both virsh console logging and pty usage
Hi, I am trying to set my VMs for redirecting their consoles to a file but its important to keep the virsh console access to solve any problem I can find while they are running. I tried several settings through libvirt (serial and console tags) but I can not get the key. Any suggestion? Any help? Many thanks in advance. Carlos G.
Peter Steele
2016-Feb-02 21:30 UTC
Re: [libvirt-users] Both virsh console logging and pty usage
I wrote a piece of code recently that monitors the consoles of the VMs and while no one is attached to the console, it throws away the buffer as any text appears. If someone *is* attached, it leaves it alone. It wouldn't be hard to modify the code to save the console text to a file instead of throwing it away. If you are interested, I can post the code. Peter On 02/02/2016 07:36 AM, Carlos Godoy wrote:> Hi, > > I am trying to set my VMs for redirecting their consoles to a file but > its important to keep the virsh console access to solve any problem I > can find while they are running. I tried several settings through > libvirt (serial and console tags) but I can not get the key. > > Any suggestion? Any help? > > Many thanks in advance. > Carlos G. > > > _______________________________________________ > libvirt-users mailing list > libvirt-users@redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users
David Caro
2016-Feb-03 08:54 UTC
Re: [libvirt-users] Both virsh console logging and pty usage
On 02/02 13:30, Peter Steele wrote:> I wrote a piece of code recently that monitors the consoles of the VMs and > while no one is attached to the console, it throws away the buffer as any > text appears. If someone *is* attached, it leaves it alone. It wouldn't be > hard to modify the code to save the console text to a file instead of > throwing it away. If you are interested, I can post the code. >I'd be quite interested in that code too :), I've started playing with the console myself> Peter > > On 02/02/2016 07:36 AM, Carlos Godoy wrote: > >Hi, > > > >I am trying to set my VMs for redirecting their consoles to a file but its > >important to keep the virsh console access to solve any problem I can find > >while they are running. I tried several settings through libvirt (serial > >and console tags) but I can not get the key. > > > >Any suggestion? Any help? > > > >Many thanks in advance. > >Carlos G. > > > > > >_______________________________________________ > >libvirt-users mailing list > >libvirt-users@redhat.com > >https://www.redhat.com/mailman/listinfo/libvirt-users >> _______________________________________________ > libvirt-users mailing list > libvirt-users@redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users-- David Caro Red Hat S.L. Continuous Integration Engineer - EMEA ENG Virtualization R&D Tel.: +420 532 294 605 Email: dcaro@redhat.com IRC: dcaro|dcaroest@{freenode|oftc|redhat} Web: www.redhat.com RHT Global #: 82-62605
Possibly Parallel Threads
- Both virsh console logging and pty usage
- virsh console logging and pty usage
- Fwd: Libvirt-QEMU : Multiplex the output from qemu's serial port to a pty as well as a file (basically redirect console to file as well as pty device)
- hvc - hypervisor virtual console & virsh
- Not getting a virsh console