[libvirt-users] Using unix-type channel ....

Jean-Pierre Ribeauville jpribeauville at axway.com
Fri Aug 28 06:45:15 UTC 2015


Hi,


Thx for your hint.



I've tried this instead :



<channel type='unix'>

      <source mode='bind' path='/opt/omnivision_1.agent'/>

      <target type='virtio' name='omnivision_1.agent'/>

      <address type='virtio-serial' controller='0' bus='0' port='2'/>

    </channel>



Then,  when starting the Guest I get  a pop up window showing this error message :

Error starting domain : internal error : process exited while connecting to monitor
Quemu-kvm -chardev socket id=channel1,path=/opt/omnivision_1_agent,server,nowait
Failed to bind socket : Permission denied


Did I miss something ?

Regards,

J.P.




-----Message d'origine-----
De : Michal Privoznik [mailto:mprivozn at redhat.com]
Envoyé : vendredi 28 août 2015 06:28
À : Jean-Pierre Ribeauville; libvirt-users at redhat.com<mailto:libvirt-users at redhat.com>
Objet : Re: [libvirt-users] Using unix-type channel ....



On 27.08.2015 15:48, Jean-Pierre Ribeauville wrote:

> Hi,

>

> I'm trying to use unix-type channel to send/receive datas between host and guest .

>

> Here are the steps I follow :

>

> 1) Adding these lines to expose a channel unix type to my guest

> <channel type='unix'>

>       <source mode='bind' path='/var/lib/libvirt/qemu/omnivision_1.agent'/>

>       <target type='virtio' name='org.qemu.guest_agent.0'/>

>       <alias name='channel0'/>

>       <address type='virtio-serial' controller='0' bus='0' port='2'/>

>     </channel>

>



This won't fly. A channel with that name is special. It's guest agent socket that libvirt automatically connects to once domain is starting up. You need to provide a different name and everything should just work.



Michal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20150828/269700ba/attachment.htm>


More information about the libvirt-users mailing list