Re: Libvirt Support Virtio-serail

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

 



Scenario:-

The host is fedora17
Libvirt:0.9.11
And guest is rhel6.2, fedora17
The Host is running on a Intel I5 processor

Our xml file contain entry for
1 serial console , 2 virtio console

The xml file get properly defined, and proper port assigned to each console


Now when guest is started.
I am not able to connect via virtio console
#virsh console --devname console1 guest
My console get stuck , I am not getting any prompt.


#virsh console guest
It works fine but it connect to guest via serial console , not by virtion console.

Now in guest I look for the virtio_console driver which I found is not loaded, also not separate getty started for any virtio console

When I manually load the virtio console , even then I am not able to login using the virtio console

>From http://libvirt.org/formatdomain.html#elementCharChannel
A virtio console device is exposed in the guest as /dev/hvc[0-7]

But /dev/hvc0 .. are already present.
What does above mean?

Is something special needed to be done. Does we have to even modify guest to support multiple console,
Instead of modifying just the guest xml.


Regards
Pankaj Rawat

-----Original Message-----
From: Dave Allan [mailto:dallan@xxxxxxxxxx]
Sent: Tuesday, June 05, 2012 5:56 PM
To: Pankaj Rawat
Cc: Daniel P. Berrange; libvir-list@xxxxxxxxxx; Christophe Fergeau
Subject: Re:  Libvirt Support Virtio-serail

On Tue, Jun 05, 2012 at 11:08:16AM +0000, Pankaj Rawat wrote:
> Hi ,
>
> I installed fedora17 on my system, the libvirt version is 0.9.11
>
> I configured guest.xml as specified
> <console type='pty'>
>       <target type='virtio'/>
> </console>
> <console type='pty'>
>       <target type='virtio'/>
> </console>
>
> When I define the guest xml I can see the port assigned to it
>
> Now when I try to access the console via
> #virsh console --devname console0 guest
> Or
> #virsh console --devname console1 guest
> My console get stuck , I am not getting any prompt.
> Is something I am missing?

Without knowing anything about your setup, I'd guess you have no getty
running.

Dave

> Regards
> Pankaj Rawat
>
>
>
> -----Original Message-----
> From: libvir-list-bounces@xxxxxxxxxx [mailto:libvir-list-bounces@xxxxxxxxxx] On Behalf Of Pankaj Rawat
> Sent: Tuesday, May 15, 2012 9:56 AM
> To: Daniel P. Berrange
> Cc: libvir-list@xxxxxxxxxx; Christophe Fergeau
> Subject: Re:  Libvirt Support Virtio-serail
>
> # libvirtd --version
> libvirtd (libvirt) 0.9.4
>
>
> Regards
> Pankaj Rawat
>
>
> -----Original Message-----
> From: Daniel P. Berrange [mailto:berrange@xxxxxxxxxx]
> Sent: Monday, May 14, 2012 5:30 PM
> To: Pankaj Rawat
> Cc: Christophe Fergeau; libvir-list@xxxxxxxxxx
> Subject: Re:  Libvirt Support Virtio-serail
>
> On Mon, May 14, 2012 at 11:09:46AM +0000, Pankaj Rawat wrote:
> > Well I tried it but it doesnt work
> >
> >     <console type='pty'>
> >       <target type='virtio'/>
> >     </console>
> >     <console type='pty'>
> >       <target type='virtio'/>
> >     </console>
> >     <console type='pty'>
> >       <target type='virtio'/>
> >     </console>
> >     <console type='pty'>
> >       <target type='virtio'/>
> >     </console>
> >
> > All above are merged into one
> >     <console type='pty'>
> >       <target type='virtio' port='0'/>
> >     </console>
> >
> > When I define the guest xml
>
> Hmm, what version of libvirt do you have ? This behaviour
> suggest that your version is too old to support multiple
> consoles.
>
> > Following error received  when I tried to execute the command
> >
> > # virsh console --device console1  serial
> > error: command 'console' doesn't support option --device
>
> Doh, I mean --devname
>
> Daniel
> --
> |: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
> |: http://libvirt.org              -o-             http://virt-manager.org :|
> |: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
> |: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|
>
>
>
> DISCLAIMER:
>
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended
>
> for the named recipient(s) only.
>
> It shall not attach any liability on the originator or NECHCL or its
>
> affiliates. Any views or opinions presented in
>
> this email are solely those of the author and may not necessarily reflect the
>
> opinions of NECHCL or its affiliates.
>
> Any form of reproduction, dissemination, copying, disclosure, modification,
>
> distribution and / or publication of
>
> this message without the prior written consent of the author of this e-mail is
>
> strictly prohibited. If you have
>
> received this email in error please delete it and notify the sender
>
> immediately. .
>
> -----------------------------------------------------------------------------------------------------------------------
>
> --
> libvir-list mailing list
> libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list
>
>
>
> DISCLAIMER:
>
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended
>
> for the named recipient(s) only.
>
> It shall not attach any liability on the originator or NECHCL or its
>
> affiliates. Any views or opinions presented in
>
> this email are solely those of the author and may not necessarily reflect the
>
> opinions of NECHCL or its affiliates.
>
> Any form of reproduction, dissemination, copying, disclosure, modification,
>
> distribution and / or publication of
>
> this message without the prior written consent of the author of this e-mail is
>
> strictly prohibited. If you have
>
> received this email in error please delete it and notify the sender
>
> immediately. .
>
> -----------------------------------------------------------------------------------------------------------------------
>
> --
> libvir-list mailing list
> libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list



DISCLAIMER:

-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and
intended

for the named recipient(s) only. 

It shall not attach any liability on the originator or NECHCL or its

affiliates. Any views or opinions presented in 

this email are solely those of the author and may not necessarily reflect the

opinions of NECHCL or its affiliates. 

Any form of reproduction, dissemination, copying, disclosure, modification,

distribution and / or publication of 

this message without the prior written consent of the author of this e-mail is

strictly prohibited. If you have 

received this email in error please delete it and notify the sender

immediately. .

-----------------------------------------------------------------------------------------------------------------------

--
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]