
Hey, all. For one, apologies if this isn't quite the right list, I tried to get the right one. But, my problem: I'm firing up a Centos 6.5 box with virt-install, recently converted from a physical (I did a 'dd' to a raw image, and converted it to qcow2), and it boots fine, etc., etc., but I can't get to the console except through vnc; "virsh console" just shows a blank screen. Do I need to tell the kernel to boot in ASCII mode or somesuch? Thanks! -Ken

On 22.05.21 18:52, Ken D'Ambrosio wrote: > ... apologies if this isn't quite the right list, I tried to get the > right one. But, my problem: I'm firing up a Centos 6.5 box with > virt-install, [...] and it boots fine, etc., etc., but I can't get to > the console except through vnc; "virsh console" just shows a blank > screen. 1. I think this is absolutely the right list for your issue 2. is it really blank? or something like Connected to domain '[domain]' Escape character is ^] (Ctrl + ]) 3. If I am not mistaken the guest needs to be configured in a certain way for virsh console [domain] to work. I can't say how though

On 22.05.21 18:52, Ken D'Ambrosio wrote: ... apologies if this isn't quite the right list, I tried to get the right one. But, my problem: I'm firing up a Centos 6.5 box > with virt-install, [...] and it boots fine, etc., etc., but I can't get to the console except through vnc; "virsh console" just shows a blank screen. 1. I think this is absolutely the right list for your issue
Yay. :-)
2. is it really blank? or something like
Connected to domain '[domain]' Escape character is ^] (Ctrl + ])
Okay, it *does* say those things -- but that's all it says. <CR> gets me nowhere, as opposed to the other KVM hosts we have running.
3. If I am not mistaken the guest needs to be configured in a certain way for virsh console [domain] to work. I can't say how though
Hmmm... well, if anyone knows, I'm all ears. Thanks for the reply!

I generally use GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8" and redo grub.cfg (i.e. update-grub, grub2-mkconfig) -wk On 5/22/2021 2:49 PM, Ken D'Ambrosio wrote:
On 22.05.21 18:52, Ken D'Ambrosio wrote: ... apologies if this isn't quite the right list, I tried to get the right one. But, my problem: I'm firing up a Centos 6.5 box > with virt-install, [...] and it boots fine, etc., etc., but I can't get to the console except through vnc; "virsh console" just shows a blank screen. 1. I think this is absolutely the right list for your issue
Yay. :-)
2. is it really blank? or something like
Connected to domain '[domain]' Escape character is ^] (Ctrl + ])
Okay, it *does* say those things -- but that's all it says. <CR> gets me nowhere, as opposed to the other KVM hosts we have running.
3. If I am not mistaken the guest needs to be configured in a certain way for virsh console [domain] to work. I can't say how though
Hmmm... well, if anyone knows, I'm all ears.
Thanks for the reply!

hi William On 22.05.21 23:59, William wrote:
I generally use
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8" and redo grub.cfg (i.e. update-grub, grub2-mkconfig)
thanks for the pointer. I literally ran in the guests commandline GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8" sudo update-grub which did change anything to the behavior on the hosts cli Connected to domain '[domain]' Escape character is ^] (Ctrl + ]) and then nothing so ... what is the error I am making?
On 5/22/2021 2:49 PM, Ken D'Ambrosio wrote:
On 22.05.21 18:52, Ken D'Ambrosio wrote: ... apologies if this isn't quite the right list, I tried to get the right one. But, my problem: I'm firing up a Centos 6.5 box > with virt-install, [...] and it boots fine, etc., etc., but I can't get to the console except through vnc; "virsh console" just shows a blank screen. 1. I think this is absolutely the right list for your issue
Yay. :-)
2. is it really blank? or something like
Connected to domain '[domain]' Escape character is ^] (Ctrl + ])
Okay, it *does* say those things -- but that's all it says. <CR> gets me nowhere, as opposed to the other KVM hosts we have running.
3. If I am not mistaken the guest needs to be configured in a certain way for virsh console [domain] to work. I can't say how though
Hmmm... well, if anyone knows, I'm all ears.
Thanks for the reply!

hi, long time ago, but I remember you needed to modify something in upstart as well, grub is just bootrapping the operating system, after that the system needs to have a serial console running to connect to. Maybe here you will find the golden tip: https://support.hpe.com/hpesc/public/docDisplay?docId=c03595461&docLocale=en_US hth, regards, Natxo On Sun, May 23, 2021 at 9:53 AM vrms <vrms@netcologne.de> wrote:
hi William
On 22.05.21 23:59, William wrote:
I generally use
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8" and redo grub.cfg (i.e. update-grub, grub2-mkconfig)
thanks for the pointer.
I literally ran in the guests commandline
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8" sudo update-grub
which did change anything to the behavior on the hosts cli
Connected to domain '[domain]' Escape character is ^] (Ctrl + ])
and then nothing
so ... what is the error I am making?
On 5/22/2021 2:49 PM, Ken D'Ambrosio wrote:
On 22.05.21 18:52, Ken D'Ambrosio wrote: ... apologies if this isn't quite the right list, I tried to get the right one. But, my problem: I'm firing up a Centos 6.5 box > with virt-install, [...] and it boots fine, etc., etc., but I can't get to the console except through vnc; "virsh console" just shows a blank screen. 1. I think this is absolutely the right list for your issue
Yay. :-)
2. is it really blank? or something like
Connected to domain '[domain]' Escape character is ^] (Ctrl + ])
Okay, it *does* say those things -- but that's all it says. <CR> gets me nowhere, as opposed to the other KVM hosts we have running.
3. If I am not mistaken the guest needs to be configured in a certain way for virsh console [domain] to work. I can't say how though
Hmmm... well, if anyone knows, I'm all ears.
Thanks for the reply!
-- -- Groeten, natxo

well libvirt has to know about the serial port and attach it to the console. do you have something like this in your XML file? <serial type='pty'> <source path='/dev/pts/0'/> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/0'> <source path='/dev/pts/0'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> at that point I just type in "virsh console $DOM" in the command line # virsh console XXXX Connected to domain XXXX Escape character is ^] XXXX4 login: I often have to hit the enter key a once or twice to get the login prompt once connected. On 5/23/2021 12:52 AM, vrms wrote:
hi William
I generally use
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8" and redo grub.cfg (i.e. update-grub, grub2-mkconfig)
On 22.05.21 23:59, William wrote: thanks for the pointer.
I literally ran in the guests commandline
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8" sudo update-grub
which did change anything to the behavior on the hosts cli
Connected to domain '[domain]' Escape character is ^] (Ctrl + ])
and then nothing
so ... what is the error I am making?
On 5/22/2021 2:49 PM, Ken D'Ambrosio wrote:
On 22.05.21 18:52, Ken D'Ambrosio wrote: ... apologies if this isn't quite the right list, I tried to get the right one. But, my problem: I'm firing up a Centos 6.5 box > with virt-install, [...] and it boots fine, etc., etc., but I can't get to the console except through vnc; "virsh console" just shows a blank screen. 1. I think this is absolutely the right list for your issue Yay. :-)
2. is it really blank? or something like
Connected to domain '[domain]' Escape character is ^] (Ctrl + ]) Okay, it *does* say those things -- but that's all it says. <CR> gets me nowhere, as opposed to the other KVM hosts we have running.
3. If I am not mistaken the guest needs to be configured in a certain way for virsh console [domain] to work. I can't say how though Hmmm... well, if anyone knows, I'm all ears.
Thanks for the reply!

On 24.05.21 03:12, W wrote:
well libvirt has to know about the serial port and attach it to the console.
do you have something like this in your XML file?
<serial type='pty'> <source path='/dev/pts/0'/> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/0'> <source path='/dev/pts/0'/> <target type='serial' port='0'/> <alias name='serial0'/> </console>
no, I have: <serial type='pty'> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> </serial> <console type='pty'> <target type='serial' port='0'/> </console> I can edit this with *virsh edit [domain]* but the get the same results as before. When I look into the file thereafter, all edits are gone even though I got a success message with the editing
On 5/23/2021 12:52 AM, vrms wrote:
hi William
I generally use
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8" and redo grub.cfg (i.e. update-grub, grub2-mkconfig)
On 22.05.21 23:59, William wrote: thanks for the pointer.
I literally ran in the guests commandline
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8" sudo update-grub
which did change anything to the behavior on the hosts cli
Connected to domain '[domain]' Escape character is ^] (Ctrl + ])
and then nothing
so ... what is the error I am making?
On 5/22/2021 2:49 PM, Ken D'Ambrosio wrote:
On 22.05.21 18:52, Ken D'Ambrosio wrote: ... apologies if this isn't quite the right list, I tried to get the right one. But, my problem: I'm firing up a Centos 6.5 box > with virt-install, [...] and it boots fine, etc., etc., but I can't get to the console except through vnc; "virsh console" just shows a blank screen. 1. I think this is absolutely the right list for your issue Yay. :-)
2. is it really blank? or something like
Connected to domain '[domain]' Escape character is ^] (Ctrl + ]) Okay, it *does* say those things -- but that's all it says. <CR> gets me nowhere, as opposed to the other KVM hosts we have running.
3. If I am not mistaken the guest needs to be configured in a certain way for virsh console [domain] to work. I can't say how though Hmmm... well, if anyone knows, I'm all ears.
Thanks for the reply!

On 5/24/21 3:22 AM, vrms wrote:
On 24.05.21 03:12, W wrote:
well libvirt has to know about the serial port and attach it to the console.
do you have something like this in your XML file?
<serial type='pty'> <source path='/dev/pts/0'/> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/0'> <source path='/dev/pts/0'/> <target type='serial' port='0'/> <alias name='serial0'/> </console>
no, I have:
<serial type='pty'> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> </serial> <console type='pty'> <target type='serial' port='0'/> </console>
I can edit this with *virsh edit [domain]* but the get the same results as before. When I look into the file thereafter, all edits are gone even though I got a success message with the editing
well i typically undefine , edit and then define. Look at the docs. It is likely that you have to stop and start the VM any for your system to see the new config. I doubt you can hotplug a serial interface. With that in mind you could simpy dumpxml, stop the VM, edit the XML and restart the VM with the edited XML. Also as a point of reference, a coworker just mentioned the virsh ttyconsole command If the console is there it will tell you which one is configured. # virsh ttyconsole vm137 /dev/pts/1 otherwise it just exits(1).
On 5/23/2021 12:52 AM, vrms wrote:
hi William
I generally use
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8" and redo grub.cfg (i.e. update-grub, grub2-mkconfig)
On 22.05.21 23:59, William wrote: thanks for the pointer.
I literally ran in the guests commandline
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8" sudo update-grub
which did change anything to the behavior on the hosts cli
Connected to domain '[domain]' Escape character is ^] (Ctrl + ])
and then nothing
so ... what is the error I am making?
On 5/22/2021 2:49 PM, Ken D'Ambrosio wrote:
On 22.05.21 18:52, Ken D'Ambrosio wrote: ... apologies if this isn't quite the right list, I tried to get the right one. But, my problem: I'm firing up a Centos 6.5 box > with virt-install, [...] and it boots fine, etc., etc., but I can't get to the console except through vnc; "virsh console" just shows a blank screen. 1. I think this is absolutely the right list for your issue Yay. :-)
2. is it really blank? or something like
Connected to domain '[domain]' Escape character is ^] (Ctrl + ]) Okay, it *does* say those things -- but that's all it says. <CR> gets me nowhere, as opposed to the other KVM hosts we have running.
3. If I am not mistaken the guest needs to be configured in a certain way for virsh console [domain] to work. I can't say how though Hmmm... well, if anyone knows, I'm all ears.
Thanks for the reply!
participants (6)
-
Ken D'Ambrosio
-
Natxo Asenjo
-
vrms
-
W
-
William
-
William Kern