Re: DomU console driver not works for Fedora17 in HVM mode with Xen 4.1.2

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

 



Thanks for your reply.

I have tried the method but it looks still can't work, there is no "hvc0" device file in my "/dev" directory,
is that the root cause?


On Mon, Aug 20, 2012 at 11:47 PM, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> wrote:
On Mon, 20 Aug 2012, Konrad Rzeszutek Wilk wrote:
> On Mon, Aug 20, 2012 at 09:39:56PM +0800, Wei Xu wrote:
> > > Hi All,
> > > I'm try to set up and verify Xen console driver base on Fedora 17 and Xen
> > > 4.1.2 with hvm guest mode,
> > > i searched around and got a link, it give steps both for PV and HVM mode,
> > > I followed the HVM guide
> > > and upgraded my kernel to 3.5.0.
> > >
> > >            http://www.dedoimedo.com/computers/xen-console.html
> > >
> > > After that, I can got console output with "xm console <dom_id>", but the
> > > console driver is not used when I tracing the driver
>
> .. I am not sure I understand: "when I tracing the driver" ? Are
> you referring to the PV driver?
>
> > > with "crash" utility, by examing the "console_drivers", the console driver
> > > is still "serial8250 console", so i wonder if I didn't
> > > set up it properly or something else, is there someone ever experienced
> > > it, thanks.
>
> Hm, it should be the hvc one. Perhaps Stefano knows..
>
> CC-ing him and xen-devel here.

An HVM guest has access to both an emulated serial (if a serial="pty"
parameter is present in the VM config file) and a PV console.
However the default first console is the emulated serial with libxl (see
libxl__primary_console_find), that is what you get when you execute "xl
console" without -t.

But if you edit inittab to spawn a getty on hvc0 and then execute "xl
console -t pv" you should get access to the PV console.

--
xen mailing list
xen@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux