[libvirt] Libvirt Support Virtio-serail

Pankaj Rawat pankaj.rawat at nechclst.in
Mon May 14 10:03:11 UTC 2012


Thanks for the input
Actually I wanted to have private communication channel b/w host and guest
By default I cannot have multiple console on guest through virsh console guestname ( they all are dependent on each other , if I execute a command on one shell its output is reflected on all of them ).
I wanted to login into guest from multiple shells(and the console should be independent of each other)

Virtio-serial have this feature ,I have gone through various install option on web , but they don't seem to work.


Our kernel version for host and guest is 2.6.32-220.4.1.el6.x86_64

We goes through the mentioned link
And edit our xml file by adding

<channel type='pty'>
   <target type='virtio' name='arbitrary.virtio.serial.port.name'/>
   <address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>

Then we tried to access the channel device through virsh console guest_name dev_name

It gives error :-

# virsh console serial vport0p1
Connected to domain serial
Escape character is ^]
error: internal error cannot find character device vport0p1

but the vport

#ls -l /dev/virtio-ports/arbitrary.virtio.serial.port.name
lrwxrwxrwx. 1 root root 11 May 14 05:01 /dev/virtio-ports/arbitrary.virtio.serial.port.name -> ../vport0p1


Regards
Pankaj Rawat



-----Original Message-----
From: Christophe Fergeau [mailto:cfergeau at redhat.com]
Sent: Monday, May 14, 2012 1:55 PM
To: Pankaj Rawat
Cc: libvir-list at redhat.com
Subject: Re: [libvirt] Libvirt Support Virtio-serail

Hi Pankaj,

On Mon, May 14, 2012 at 03:52:54AM +0000, Pankaj Rawat wrote:
> I wanted to know whether libvirt has any kind of support for virt-io
> serial or not If yes then how can I use it?

I think http://libvirt.org/formatdomain.html#elementCharChannel is what you are looking for, if it's not, please describe in more details what setup you want to achieve.

Christophe



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

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




More information about the libvir-list mailing list