Jump to content
lemoncurry

VM wont start internal error: Did not find USB device 1c4f:0048

7 posts in this topic Last Reply

Recommended Posts

Posted (edited)

 I have a Linux Mint 19 xfce VM that now wont start,  Ive tried changing the  [USB Controller:]  setting and turning off [USB Devices:]

This VM installed and worked fine. Havent started it for a few months,  now getting back to it,  it wont work!
I would just create a new VM,  but this seems to be a common issue,  so need a permanent fix.

@casperse Which Xml file did you edit?

Get error:

Quote

    Execution error

    internal error: Did not find USB device 1c4f:0048

lsusb reports:

Quote

    Bus 002 Device 002: ID 8087:8001 Intel Corp.
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 002: ID 8087:8009 Intel Corp.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 003: ID 0b05:17cf ASUSTek Computer, Inc.
    Bus 003 Device 002: ID 0951:1665 Kingston Technology Digital DataTraveler SE9 64GB
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

Libvirt Log:

Quote

    2019-05-02 11:18:08.884+0000: 4522: warning : virHostdevReAttachUSBDevices:1875 : Unable to find device 000.000 in list of active USB devices
    2019-05-02 11:18:08.884+0000: 4522: warning : virHostdevReAttachUSBDevices:1875 : Unable to find device 000.000 in list of active USB devices
    2019-05-02 11:19:01.447+0000: 4522: error : virDomainHostdevSubsysPCIDefParseXML:7440 : internal error: unknown pci source type 'vendor'
    2019-05-02 11:19:42.466+0000: 4529: error : virDomainHostdevSubsysPCIDefParseXML:7440 : internal error: unknown pci source type 'vendor'

 

And cant save changes to VM settings,  but get error:     

Quote

    VM creation error

    internal error: unknown pci source type 'vendor'

     

It looks like the USB IDs have changed and the VM controller is not updating them?
Does anyone have suggestions as to a permanent fix?

 

Edited by lemoncurry

Share this post


Link to post
Posted (edited)

Ok,  found an issue with  /etc/libvirt/qemu/LinuxMint-XFCE.xml

There were duplicate entries for <hostdev mode='subsystem' type='usb' managed='no'>

    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x1c4f'/>
        <product id='0x0048'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
   
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x0b05'/>
        <product id='0x17cf'/>
      </source>
      <address type='usb' bus='0' port='1'/>
    </hostdev>

After removed the offending entry for 1c4f:0048 it boots up,  but as yet wont see any usb drives plugged in.

The remaining questions are ..
How did this entry become incorrect, get inserted etc.?

Will this be an ongoing issue.?

Edited by lemoncurry

Share this post


Link to post

I ran into this issue when I had mapped my Mouse and KB to the VM, removed them and for some reason it was trying to start the VM with them.. Had to reconnect them, start the VM, then remove them from the template.

 

 

Share this post


Link to post
Posted (edited)

Ok, Thanks,  that is interesting.  1c4f:0048= SiGma Micro most likely a Keyboard.
So given the many other reports of VM start-up issues that seem to be caused by Unraid being  "Unable to find device",  clearly there are fundamental issues with the  process UnRaid is using. In presence06's case,  not having a particular removable USB device plugged in should not prevent a VM from starting!  I can understand such issues relating to GPU and more permanent peripherals,  but to fail on an un-found removable device comes under the "bug" category. This is a Bug.

Edited by lemoncurry

Share this post


Link to post

Agree, this reads like a bug. I am facing the same issue. No longer have the USB device and my VM is un-usable. Is there some fix?

Share this post


Link to post
41 minutes ago, steve1977 said:

Is there some fix?

Edit the vm and change from form view to xml view, and remove the section that references the device from the xml

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.