Re: [libvirt] specifying -serial telnet: in XML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



| > My kernel boot command line has 'console=ttyS0' option.  Is there anything
| > else I need to ensure 'telnet 127.0.0.1 port' displays the messages ? 
| 
| That setting should be what's required to make serial console work. Are
| you sure you've got it set in the correct place of grub.conf for the 
| guest OS ?  I have my guests configured using:
| 
|    "console=ttyS0 console=tty"
| 
| whch makes messages go to the serial port and graphical console

I am not using the grub.conf file in the guest. Instead, I am specifying
the "console=ttyS0" with the <cmdline> tag 

  <os>
    <type>hvm</type>
    <kernel>/home/suka/virtmcs/kernels/vmlinuz-ckpt</kernel>
    <initrd>/home/suka/virtmcs/kernels/initrd-ckpt.img</initrd>
    <cmdline>"ro debug root=/dev/sda1 console=ttyS0"</cmdline>
    <boot dev='hd'/>
  </os>

I have the <console> stanza as:

    <console type='pty' tty='/dev/pts/3'>
      <source path='/dev/pts/3'/>
      <target port='0'/>
    </console>

With this,if I add "console=tty" to the <cmdline> line,


    <cmdline>"ro debug root=/dev/sda1 console=ttyS0 console=tty"</cmdline>

or "console=tty0"

    <cmdline>"ro debug root=/dev/sda1 console=ttyS0 console=tty0"</cmdline>

the guest exits a few seconds after "virsh start". I don't see any useful
messages in /var/log/libvirt/qemu/guest.log of /var/log/messages.

If I remove the "console=tty" i.e go back to <os> stanza above, the guest
boots fine and I can use the vnc (graphic console) but I don't see any
messages on serial console.

Thanks,

Sukadev

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]