When logged in through virsh console on to KVM. hostname is not shown properly in bash prompt. We are using 63 character hostname.
KVM Guest OS: Red Hat Enterprise Linux Server release 7.9 (Maipo) Host OS: Red Hat Enterprise Linux Server release 7.6 (Maipo)
I don't see above issue when logged in using ssh or virt-manager
hostname i'm using is Nikiabcdefdhijklmnopqrst898hd-uvwxyz-jkkdjkjdsdadjkjkkjdkjsdj90
adding below line in
/etc/bashrc
resolved the issue.'xterm' rpm provides resize binary.