[RFC] Add support for guest serial console

Hi, i want to discuss about the support of guest serial console. To access a serial console, i need to add the xml of the device (http://wiki.libvirt.org/page/Unable_to_connect_to_console_of_a_running_domai...): <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> And, the operation system of the VM need to point to the serial: console=ttyS0,115200 So, how we can make sure that the user can access the machine by serial console: 1) Just add the xml and let the user add the statement above? 2) Use libvirt to add this parameters (https://libvirt.org/formatdomain.html#elementsOSKernel) -- Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com

On 11/16/2015 12:17 PM, Ramon Medeiros wrote:
Hi,
i want to discuss about the support of guest serial console. To access a serial console, i need to add the xml of the device (http://wiki.libvirt.org/page/Unable_to_connect_to_console_of_a_running_domai...):
<serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console>
And, the operation system of the VM need to point to the serial:
console=ttyS0,115200
So, how we can make sure that the user can access the machine by serial console:
1) Just add the xml and let the user add the statement above?
2) Use libvirt to add this parameters (https://libvirt.org/formatdomain.html#elementsOSKernel)
Always try to go the libvirt route if applicable. If libvirt automagically avoids the "console=ttyS0,115200 " statement, better. Daniel
participants (2)
-
Daniel Henrique Barboza
-
Ramon Medeiros