Skip to contentSkip to conversation

How to test vm channel with windows guest

Qemu-devel SAURAV LAHIRI 2 participants 3 messages May 2, 2011 – May 3, 2011

lore
Share & tools
lore
#0 lore raw

Hello,

We have established a communication channel between a ubuntu 10.04 host and a windows xp guest using vm channel.

At the host end we have used a unix socket. Below is the libvirt related config

===========================================================
<channel type='unix'>
  <source mode='bind' path='/tmp/guestfs' /> <target type='virtio' name='org.windows-kvm.port.1'/> <address type='virtio-serial' controller='0' bus='0'/> </channel>
===========================================================

To test if the channel has been successfully created or not we run the "vioser_test" at the guest and. At the host end we run "socat /tmp/guestfs -".

We find that while the guest is able to send commands to the host, it does not work from the host to the guest end.

Is the source code for vioser_test available for reference. Also is there any reference documents to write agents like vioser_test utility.

Thanks in advance.

sl

#1 lore raw
Quoted 20 lines · SAURAV LAHIRI

Hello,

We have established a communication channel between a ubuntu 10.04 host and a windows xp guest using vm channel.

At the host end we have used a unix socket. Below is the libvirt related config

===========================================================
<channel type='unix'>
<source mode='bind' path='/tmp/guestfs' /> <target type='virtio' name='org.windows-kvm.port.1'/> <address type='virtio-serial' controller='0' bus='0'/> </channel>
===========================================================

To test if the channel has been successfully created or not we run the "vioser_test" at the guest and. At the host end we run "socat /tmp/guestfs -".

Quoted 5 lines

We find that while the guest is able to send commands to the host, it does not work from the host to the guest end.

Is the source code for vioser_test available for reference. Also is there any reference documents to write agents like vioser_test utility.

I'm not familiar with this vioser_test utility, is it part of the virtio driver package for windows? If so the source code is available here:

http://git.kernel.org/?p=virt/kvm/kvm-guest-drivers-windows.git

Amit's virtio-serial test suite is also available for reference:

http://fedoraproject.org/wiki/Features/VirtioSerial#How_To_Test

I'm not sure how applicable it is for windows though.

Quoted 6 lines

Thanks in advance.

sl

#2 lore raw

Hello Michael,
Thank you very much for pointing to the virtio driver package for windows. It does have the vioser-test utility.

Regards
sl

--- On Mon, 2/5/11, Michael Roth <[email protected]> wrote:

From: Michael Roth <[email protected]>
Subject: Re: [Qemu-devel] How to test vm channel with windows guest
To: "SAURAV LAHIRI" <[email protected]>
Cc: [email protected], [email protected]
Date: Monday, 2 May, 2011, 10:48

Quoted 20 lines · SAURAV LAHIRI

Hello,

We have established a communication channel between a ubuntu 10.04 host and a windows xp guest using vm channel.

At the host end we have used a unix socket. Below is the libvirt related config

===========================================================
<channel type='unix'>
<source mode='bind' path='/tmp/guestfs' /> <target type='virtio' name='org.windows-kvm.port.1'/> <address type='virtio-serial' controller='0' bus='0'/> </channel>
===========================================================

To test if the channel has been successfully created or not we run the "vioser_test" at the guest and. At the host end we run "socat /tmp/guestfs -".

Quoted 5 lines

We find that while the guest is able to send commands to the host, it does not work from the host to the guest end.

Is the source code for vioser_test available for reference. Also is there any reference documents to write agents like vioser_test utility.

I'm not familiar with this vioser_test utility, is it part of the virtio driver package for windows? If so the source code is available here:

http://git.kernel.org/?p=virt/kvm/kvm-guest-drivers-windows.git

Amit's virtio-serial test suite is also available for reference:

http://fedoraproject.org/wiki/Features/VirtioSerial#How_To_Test

I'm not sure how applicable it is for windows though.

Quoted 6 lines

Thanks in advance.

sl