<div dir="ltr">Hi,<br><br>I'm the package maintainer for virt-manager and related packages for Pardus distribution. While testing the latest libvirt, virtinst & virt-manager packages, I've come across a strange issue and I would like to get your valuable opinion.<br>
<br>I add all spice related devices and everything works good, except the vdagent inside the windows xp guest. The virtio serial driver is loaded correctly. As I track down the issue, I found out that libvirt is starting qemu-kvm with parameters which do not match the ones adviced by the spice people. Please see below email discussion with them on this. The offending line seems to be the chardev parameter.  qemu-kvm is started by virt-manager with the following parameter for chardev:<br>
<br><div style="margin-left: 40px;"> -chardev null,id=channel0<br><br></div>and the full spice related parameters are:<br><div><div style="margin-left: 40px;"><br>-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x8 -chardev null,id=channel0 -device virtserialport,bus=virtio-serial0.0,nr=0,chardev=channel0,name=com.redhat.spice.0<br>
<div class="im">-usb -device usb-tablet,id=input0 -spice port=5900,addr=127.0.0.1,disable-ticketing -vga qxl -device qxl,id=video1,bus=pci.0,addr=0x7</div><br></div>while spice people adviced:<br><br><div style="margin-left: 40px;">
-chardev spicevmc,id=channel0,name=vdagent<br></div><div class="gmail_quote"><br>and the rest of the parameters to match it. See below mail on the details.  I don't know if this is really the issue, but I also recognize the following inside the domain XML:<br>
<br>    <channel type='null'><br>      <target type='virtio' name='com.redhat.spice.0'/><br>      <address type='virtio-serial' controller='0' bus='0' port='0'/><br>
    </channel><br><br>the "channel type" is listed as "null", while I assume it should have been listed as "spicevmc". (not sure of this, I saw this in some other websites).  When I edit the domain xml with virsh edit, it saves my changes but the "null" stays the same how many times I try to change it.<br>
<br>Please note that I've applied the following patches to virtinst 0.500.6:<br><br><div style="margin-left: 40px;">constrain-spicevmc-usage-correct.patch  <br>virtinst-fix-channel-parse.patch  <br>virtinst-spicevmc-fixes.patch<br>
</div><br>which I obtained from the git. I also patched virt-manager 0.8.7 with the following I obtained from the git:<br><br><div style="margin-left: 40px;">chardev-hide-unsupported-params-for-selected-type.patch<br>only-show-relevant-char-device-fields.patch<br>
show-char-device-target-name.patch<br>chardev-propose-to-add-remove-spice-agent.patch<br>allow-setting-char-device-target-name.patch<br>fix-adding-removing-channel-device.patch<br></div><br>Any idea what I might be missing to get the vdagent run inside the windows guest?<br>
</div><br>Many thanks,<br><br>Emre Erenoglu<br><br></div><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Marian Krcmarik</b> <span dir="ltr"><<a href="mailto:mkrcmari@redhat.com">mkrcmari@redhat.com</a>></span><br>
Date: Mon, Apr 18, 2011 at 5:56 PM<br>Subject: Re: [Spice-devel] vdagent does not start<br>To: Emre Erenoglu <<a href="mailto:erenoglu@gmail.com">erenoglu@gmail.com</a>><br>Cc: <a href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a><br>
<br><br><div class="im"><br>
<br>
----- Original Message -----<br>
> From: "Emre Erenoglu" <<a href="mailto:erenoglu@gmail.com">erenoglu@gmail.com</a>><br>
> To: <a href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a><br>
> Sent: Sunday, April 17, 2011 1:10:16 PM<br>
> Subject: [Spice-devel] vdagent does not start<br>
> Dear Developers,<br>
><br>
> I have a virtual XP system with the spice channel enabled through the<br>
> serial port. The command line that runs qemu has (reduced):<br>
><br>
> -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x8<br>
> -chardev null,id=channel0 -device<br>
> virtserialport,bus=virtio-serial0.0,nr=0,chardev=channel0,name=com.redhat.spice.0<br>
> -usb -device usb-tablet,id=input0 -spice<br>
> port=5900,addr=127.0.0.1,disable-ticketing -vga qxl -device<br>
> qxl,id=video1,bus=pci.0,addr=0x7<br>
<br>
</div>I think you may need to specify chardev for spice so I would modify:<br>
<br>
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x8  -chardev spicevmc,id=channel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=0,chardev=channel0,name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -spice port=5900,addr=127.0.0.1,disable-ticketing -vga qxl -device qxl,id=video1,bus=pci.0,addr=0x7<br>

<br>
with agent and virtio-serial driver installed on guest.<br>
<div><div></div><div class="h5">><br>
> However, the vdagent services does not start. when I give it a start<br>
> control, it reports to start then stop immediately. Here are the logs<br>
> I've found:<br>
</div></div></div><br><br clear="all"><br>-- <br>Emre<br>
</div></div>