Roman Storozhenko
2017-May-24 13:40 UTC
[libvirt-users] How to set guest console size in libvirt configuration options?
Hello, everybody I use virsh to run my VM and QEMU as a hypervisor. When I connect to it, it shows me a console with a some predefined size. I know that I am able to update grub configuration to pass the correct size as a kernel command line option or use stty something like: stty rows 62 cols 213 and it's resizes correctly. But is there any way to define the console's size outside the guest, in the VM's configuration? --- Thanks in advance, Roman Storozhenko
Daniel P. Berrange
2017-May-24 14:26 UTC
Re: [libvirt-users] How to set guest console size in libvirt configuration options?
On Wed, May 24, 2017 at 04:40:33PM +0300, Roman Storozhenko wrote:> Hello, everybody > > I use virsh to run my VM and QEMU as a hypervisor. > When I connect to it, it shows me a console with a some predefined size. > I know that I am able to update grub configuration to pass the correct > size as a kernel command line option or use stty something like: > > stty rows 62 cols 213 > > and it's resizes correctly. > > But is there any way to define the console's size outside the guest, in > the VM's configuration?Unfortunately that's not possible, nor can we notify the guest of resizes on the client end. Honestly the 'virsh console' is best used only in emergencies when the VM doesn't boot. Any other time it is better to just use SSH, which correctly deals with resizing consoles. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|