Thanks for your reply.<br><br>I have tried the method but it looks still can't work, there is no "hvc0" device file in my "/dev" directory,<br>is that the root cause?<br><br><br><div class="gmail_quote">
On Mon, Aug 20, 2012 at 11:47 PM, Stefano Stabellini <span dir="ltr"><<a href="mailto:stefano.stabellini@eu.citrix.com" target="_blank">stefano.stabellini@eu.citrix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, 20 Aug 2012, Konrad Rzeszutek Wilk wrote:<br>
> On Mon, Aug 20, 2012 at 09:39:56PM +0800, Wei Xu wrote:<br>
> > > Hi All,<br>
> > > I'm try to set up and verify Xen console driver base on Fedora 17 and Xen<br>
> > > 4.1.2 with hvm guest mode,<br>
> > > i searched around and got a link, it give steps both for PV and HVM mode,<br>
> > > I followed the HVM guide<br>
> > > and upgraded my kernel to 3.5.0.<br>
> > ><br>
> > > <a href="http://www.dedoimedo.com/computers/xen-console.html" target="_blank">http://www.dedoimedo.com/computers/xen-console.html</a><br>
> > ><br>
> > > After that, I can got console output with "xm console <dom_id>", but the<br>
> > > console driver is not used when I tracing the driver<br>
><br>
> .. I am not sure I understand: "when I tracing the driver" ? Are<br>
> you referring to the PV driver?<br>
><br>
> > > with "crash" utility, by examing the "console_drivers", the console driver<br>
> > > is still "serial8250 console", so i wonder if I didn't<br>
> > > set up it properly or something else, is there someone ever experienced<br>
> > > it, thanks.<br>
><br>
> Hm, it should be the hvc one. Perhaps Stefano knows..<br>
><br>
> CC-ing him and xen-devel here.<br>
<br>
</div>An HVM guest has access to both an emulated serial (if a serial="pty"<br>
parameter is present in the VM config file) and a PV console.<br>
However the default first console is the emulated serial with libxl (see<br>
libxl__primary_console_find), that is what you get when you execute "xl<br>
console" without -t.<br>
<br>
But if you edit inittab to spawn a getty on hvc0 and then execute "xl<br>
console -t pv" you should get access to the PV console.<br>
</blockquote></div><br>