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@redhat.com]
Envoyé : vendredi 28 août 2015 06:28
À : Jean-Pierre Ribeauville;
libvirt-users@redhat.com<mailto:libvirt-users@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