Created attachment 1239857 [details]
Description of problem:
Guest console can't be kept at pty serial if close and then reopen the guest window in virt-manager
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Prepare a rhel6 guest in virt-manager and add "console=tty0 console=ttyS0,115200" to /boot/grub/grub.conf kernel line
2.Open guest's hardware details,click "Add Hardware" -> Serial -> Device type as "pty", Then finish
3.Power on the guest and click title option "View" -> Text console -> Serial 1
4.There are booting info showing in the guest console and will stop at log in interface, pls refer to screenshot1
5.Close guest window and open the guest window again in virt-manager, found the guest console turn into graphic mode. pls refer to screenshot2
As above description
Guest console can be kept at pty serial if close and then reopen the guest window in virt-manager
1.Can't reproduce this problem on rhel7.3
Created attachment 1239858 [details]
Created attachment 1239859 [details]
This is not a bug, virt-manager always tries to open graphical console if you open the guest details. If you switch to serial console and close the details window the preference between graphical or serial console is not stored and the next time you'll get graphical console.
(In reply to Pavel Hrdina from comment #3)
> This is not a bug, virt-manager always tries to open graphical console if
> you open the guest details. If you switch to serial console and close the
> details window the preference between graphical or serial console is not
> stored and the next time you'll get graphical console.
But rhel7 could keep guest console at serial no matter close and open the guest window, as you said, should file a bug on rhel7?
Hi, I didn't know that virt-manager on rhel7 keeps the serial console open. I guess that someone implemented it. The virt-manager on rhel7 is way much newer than the one in rhel6 and has a lot of new features that are not and will not be in the old virt-manager.
I'm changing the NOTABUG to WONTFIX as we will not backport every feature into rhel6. Thanks for the info.