<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 10/14/2014 07:04 AM, Yu Xin Huo
wrote:<br>
</div>
<blockquote cite="mid:543CF510.6090303@linux.vnet.ibm.com"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Administration_Guide/sect-Virtualization-Troubleshooting_-Troubleshooting_with_serial_consoles.html">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Administration_Guide/sect-Virtualization-Troubleshooting_-Troubleshooting_with_serial_consoles.html</a><br>
<br>
Per my understanding:<br>
<br>
1. To enable the serial console, it needs configuration on guest
OS.<br>
<br>
<i> You must configure the virtualized operating system to
output information to the virtual serial port.</i><i><br>
</i><i> The serial port is called </i><i><code
class="systemitem">ttyS0</code></i><i> on Linux or </i><i><code
class="systemitem">COM1</code></i><i> on Windows.</i><br>
<br>
It need to modify the <code class="filename">/boot/grub/grub.conf</code>
file on guest OS and reboot guest.<br>
<br>
So VM must have OS already installed, seems like it needs the
guest to be running.<br>
</blockquote>
<br>
Prior to do that guest OS configuration, the guest must have the
serial console set on its XML.<br>
<pre><serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console><font face="sans-serif">
</font></pre>
<font face="sans-serif">So the idea is providing a way to user to
choose between spice, vnc or serial and Kimchi will setup the
guest XML accordingly.</font><br>
<br>
For reference:<br>
-
<a class="moz-txt-link-freetext" href="http://rwmj.wordpress.com/2011/07/08/setting-up-a-serial-console-in-qemu-and-libvirt/">http://rwmj.wordpress.com/2011/07/08/setting-up-a-serial-console-in-qemu-and-libvirt/</a><br>
- <a class="moz-txt-link-freetext" href="http://libvirt.org/formatdomain.html#elementsConsole">http://libvirt.org/formatdomain.html#elementsConsole</a><br>
<br>
<blockquote cite="mid:543CF510.6090303@linux.vnet.ibm.com"
type="cite"> <br>
2. The serial console can be accessed with 'virsh console' or 'use
<code class="command">virt-manager</code> to display the virtual
text console'.<br>
<br>
So the target of this work item is to add a 'web command line
console' in kimchi UI to access the 'serial console'?<br>
<br>
<code class="filename"></code><code class="filename"></code><br>
</blockquote>
<br>
We could try to find an AJAX text console to enable serial console
view direct on Kimchi (the same virt-manager does)<br>
So if the guest is configured with serial console and user clicks on
"Connect" we open the text console in a new tab.<br>
But unless we find this AJAX text console done in an open source
project, I don't expect to have it for 1.4 release.<br>
<br>
<blockquote cite="mid:543CF510.6090303@linux.vnet.ibm.com"
type="cite"> <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kimchi-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kimchi-devel@ovirt.org">Kimchi-devel@ovirt.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel">http://lists.ovirt.org/mailman/listinfo/kimchi-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>