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

[libvirt-users] using vmchannel between 6.x host/guests

Hi all.  Having trouble figuring out the magic to set up VMChannel comms between EL6.x host/guests.  My end goal is to enable fence_virt in the guest to talk to fence_virtd on the host via VMChannel.  I'd prefer to use that instead of multicast because it is supposed to work even if networking in the guest is down/borked.

My analysis is that there is a mismatch between what libvirt is feeding qemu-kvm and what qemu-kvm is willing to accept:

virt-install option:
--channel unix,path=/var/run/cluster/fence/foobar,mode=bind,target_type=guestfwd,target_address=

turns into this XML:
<channel type='unix'>
  <source mode='bind' path='/var/run/cluster/fence/foobar'/>
  <target type='guestfwd' address='' port='1229'/>

Which then gets fed to qemu-kvm as this:
-chardev socket,id=charchannel0,path=/var/run/cluster/fence/foobar,server,nowait -netdev user,guestfwd=tcp:,chardev=charchannel0,

And then qemu-kvm barfs like so:
qemu-kvm: -netdev user,guestfwd=tcp:,chardev=charchannel0,id=user-channel0: Invalid parameter 'chardev'


NB: I did try this with the versions in 6.2, got the same result.  Upgraded to these versions to see if the problem went away, but no joy.

NB2: The fence_virt.conf manpage lists the following as example XML for defining a channel device:
<channel type=’unix’>
    <source mode=’bind’ path=’/sandbox/guests/fence_molly_vmchannel’/>
    <target type=’guestfwd’ address=’’ port=’1229’/>

Any advice would be greatly appreciated.  I can fall back to multicast, of course, but I'd like to make this work if possible.


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