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
>>
>> 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!
>>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://listman.redhat.com/archives/libvirt-users/attachments/20210524/8f60e1ee/attachment.htm>