Bug 1274692 - several problems with vioserial and vdagent
Summary: several problems with vioserial and vdagent
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-viewer
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-23 11:50 UTC by bertaudmarc
Modified: 2023-09-18 00:11 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-11 10:55:36 UTC
Embargoed:


Attachments (Terms of Use)
dump on ws2012 (191.21 KB, application/octet-stream)
2015-10-26 13:51 UTC, bertaudmarc
no flags Details
minidump (270.94 KB, application/octet-stream)
2015-10-26 13:54 UTC, bertaudmarc
no flags Details
dump analysis with windbg (219.40 KB, image/jpeg)
2015-10-26 15:16 UTC, bertaudmarc
no flags Details

Description bertaudmarc 2015-10-23 11:50:51 UTC
Description of problem:
Several probably linked problems:
- The Spice vdagent (vdservice) stops after starting;
- Impossible to install the virtIO-serial driver;
- No PCI simple communication controller in Device Manager;
- addition of a spice channel refused by virt-manager;
- copy/paste doesn't work

Version-Release number of selected component (if applicable):
host: Debian Jessie, Virt-Manager 1:1.0.1-5
guest: Windows server 2012 64b
qxlwddm-012
virtio drivers: virtio-win-0.1.1
 disk drive: Red Hat Virtio scsi disk device
 display adapter: Red Hat QXL controller (version 7/28/2015 22.33.46.473)
 network adapter: Read Hat Virtio Ethernet controller
 system devices: virtio balloon driver
 vioserial: 09/22/2015 62.72.104.11000
spice-guest-tools-0.100

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:

c:/windows/Temp/vdagent.log, last messages:
VDAgent ::init_vio_serial:: failed opening \\.\Global\com.redhat.spice.0, error 2
c:/windows/Temp/vdservice.log, last messages:
vdservice::execute::agent killed  six times
restart_agent::agent restarted too many times
vdservice::stop::service stopped
Expected results:


Additional info:

Comment 1 bertaudmarc 2015-10-23 16:31:02 UTC
Now I added in virt-manager a virtio serial controller.
I start the vm, go in device manager and see a "PCI simple communication controller".

I select "PCI simple", update driver, select the virtio serial driver (vioserial). The result is a BSOD with WDF_VIOLATION code.

Comment 2 bertaudmarc 2015-10-23 16:44:42 UTC
Other manipulation, independantly of the above one.

In the virt-manager, I add hardware, select channel, name = com.redhat.spice.0
type= spicevmc

I have the following message:
error starting domain. early end of file from monitor.
- device virtserialport, bus=virtio-serial0.0.nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0

virtio-serial bus: out of range port id specified, max allowed:0
device 'virtserialport' could not be initialzed.

Comment 3 bertaudmarc 2015-10-24 13:53:28 UTC
libvirt version: 1.2.9
qemu version: 2.1.2

Comment 4 Yaniv Kaul 2015-10-25 07:36:44 UTC
Hi,

Are you sure this bug is reported against the right product and component? This does not sounds like a RHEV issue.

Comment 5 bertaudmarc 2015-10-25 14:22:20 UTC
No !
By analogy with the bug  https://bugzilla.redhat.com/show_bug.cgi?id=895356
which is not dependant of RHEV bur rather for windows 2012.
I guess people like Vadim Rozenfeld or Martin could help.
Any suggestion if I must move my question ?

Comment 6 Yaniv Kaul 2015-10-25 14:34:56 UTC
(In reply to bertaudmarc from comment #5)
> No !
> By analogy with the bug  https://bugzilla.redhat.com/show_bug.cgi?id=895356
> which is not dependant of RHEV bur rather for windows 2012.
> I guess people like Vadim Rozenfeld or Martin could help.
> Any suggestion if I must move my question ?

First of all, you are mixing multiple issues into a single bug report. This makes it very difficult to handle and distribute the issues to people. I suggest multiple reports. Secondly, if you think Vadim or Martin can help - CC them, set NeedInfo or just email them / the users mailing list.

- Why not file it on virt-manager, if you have issues around it?
- I'm sure spice has components as well (perhaps even in freedesktop.org?)
- issue 895356 is not a bug, but a Request For Enhancement.
- I'd add logs. The libvirt.xml file for example, is critical.If you can't get the virtio-serial, try to get it working first, before everything else.

Comment 7 bertaudmarc 2015-10-25 15:17:34 UTC
These problems seem to be linked: no channel, no virtio-serial installed.
Most errors often referred to buqzilla.redhat.com by searching with google: this is probably the best source to solve such problems !
It's the first time I use this site: I will CC them ...

Comment 8 bertaudmarc 2015-10-25 15:31:51 UTC
The xml file of my vm: sbs2012.xml                                  

<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh edit sbs2012
or other application using the libvirt API.
-->

<domain type='kvm'>
  <name>sbs2012</name>
  <uuid>720bc189-1165-04b7-a92b-f17e9b194ca7</uuid>
  <memory unit='KiB'>16777216</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <vcpu placement='static'>8</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.12'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
 <apic/>
    <pae/>
  </features>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>Nehalem</model>
    <vendor>Intel</vendor>
    <feature policy='require' name='tm2'/>
    <feature policy='require' name='est'/>
    <feature policy='require' name='monitor'/>
    <feature policy='require' name='ds'/>
    <feature policy='require' name='ss'/>
    <feature policy='require' name='vme'/>
    <feature policy='require' name='dtes64'/>
    <feature policy='require' name='rdtscp'/>
    <feature policy='require' name='ht'/>
    <feature policy='require' name='dca'/>
    <feature policy='require' name='pbe'/>
    <feature policy='require' name='tm'/>
    <feature policy='require' name='pdcm'/>
    <feature policy='require' name='vmx'/>
    <feature policy='require' name='ds_cpl'/>
    <feature policy='require' name='xtpr'/>
    <feature policy='require' name='acpi'/>
  </cpu>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none' io='native'/>
      <source file='/var/lib/libvirt/images/sbs2012-1.img'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
    </disk>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/sr0'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <shareable/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/usr/share/virtio-win/virtio-win-0.1.110.iso'/>
      <target dev='hdd' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' target='0' unit='1'/>
    </disk>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'$
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'$
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'$
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'$
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:33:71:2f'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'$
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='spice' autoport='yes' listen='127.0.0.1'>
      <listen type='address' address='127.0.0.1'/>
    </graphics>
    <sound model='es1370'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'$
    </sound>
    <video>
      <model type='qxl' ram='65536' vram='65536' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'$
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'$
    </memballoon>
  </devices>
</domain>

Comment 9 Vadim Rozenfeld 2015-10-26 00:48:33 UTC
(In reply to bertaudmarc from comment #1)
> Now I added in virt-manager a virtio serial controller.
> I start the vm, go in device manager and see a "PCI simple communication
> controller".
> 
> I select "PCI simple", update driver, select the virtio serial driver
> (vioserial). The result is a BSOD with WDF_VIOLATION code.

Have you managed to install vioserial driver? Or can you upload the relevant 
crash dump file?

Thanks,
Vadim.

Comment 10 bertaudmarc 2015-10-26 13:43:48 UTC
Yes, see comment #1, the result is a blue screen with WDF_VIOLATION code when I update the driver. The text begin by "your pc ran into a problem need to restart ...". 
Where is the crash dump in ws2012 ?

Comment 11 bertaudmarc 2015-10-26 13:51:49 UTC
Created attachment 1086522 [details]
dump on ws2012

I found this as dump

Comment 12 bertaudmarc 2015-10-26 13:54:37 UTC
Created attachment 1086523 [details]
minidump

and this

Comment 13 bertaudmarc 2015-10-26 15:16:37 UTC
Created attachment 1086537 [details]
dump analysis with windbg

Comment 15 Yaniv Lavi 2015-10-28 16:46:42 UTC
I think

Comment 16 bertaudmarc 2015-11-02 22:59:35 UTC
What are you waiting for me now ?

Comment 17 bertaudmarc 2015-11-17 13:40:26 UTC
virt-viewer version: 1.0-1

Comment 18 bertaudmarc 2015-11-17 16:51:04 UTC
I succeeded to create the Channel spice. Why now ? That will stay a mystery.
When I start the vm I have the following message:

Error starting domain: internal error: early end of file from monitor: possible problem:
2015-11-17T16:47:01.897072Z qemu-system-x86_64: -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0: virtio-serial-bus: Out-of-range port id specified, max. allowed: 0
2015-11-17T16:47:01.897138Z qemu-system-x86_64: -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0: Device 'virtserialport' could not be initialized

Comment 19 bertaudmarc 2015-11-18 16:31:16 UTC
As suggested by some people I changed in the xml file the following line:
<type arch='x86_64' machine='pc-0.12'>hvm</type>
by this one:
<type arch='x86_64' machine='pc-1.1'>hvm</type>
and ...

the domain can start ! why ?

Comment 20 bertaudmarc 2015-11-18 16:34:07 UTC
Finally I installed the vioser.inf driver for the PCI simple communications controller !

Comment 21 bertaudmarc 2015-11-18 16:41:55 UTC
The copy/paste procedure seems to work.
The "fullscreen" is not auto ?

My problems are solved but the explanation is welcome ;-)

Comment 22 Ajay 2018-10-17 13:27:40 UTC Comment hidden (spam)
Comment 23 Daniel Berrangé 2020-09-11 10:55:36 UTC
Closing since there are multiple issues described in this bug related to variously qemu, virt-manager and the guest OS. There is no obvious action required from POV of virt-view.

Comment 28 Red Hat Bugzilla 2023-09-18 00:11:56 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.