Jump to content

Enabling VM Service causing USB Flash Drive to go offline


Go to solution Solved by SimonF,

Recommended Posts

I'm having an issue when I enable and start the VM Service, my USB Flash Drive starts to report offline and becomes unreadable.  As suggested in the GUI, I have attached a diagnostic bundle from after enabling the service and the flash drive going offline.

 

This issue started happening after I had a faulty CPU in my system.  I have replaced the CPU and everything runs fine until I enable the VM service.

homeserver-diagnostics-20240408-1112.zip

Link to comment

Without being able to start the VM service, how can I do that?  From what I can remember, I wasn't passing the flash drive or a USB controller into the VMs, but I was passing some USB devices.

Link to comment
  • Solution
24 minutes ago, bisk said:

Without being able to start the VM service, how can I do that?  From what I can remember, I wasn't passing the flash drive or a USB controller into the VMs, but I was passing some USB devices.

Is this your flash drive?

 

Bus 001 Device 005: ID 0951:1666 Kingston Technology DataTraveler 100 G3/G4/SE9 G2/50

 

You have it defined in the JasonVM.

 

mv /usr/local/sbin/qemu /usr/local/sbin/qemu.old

 

This will allow you VM manager and the VMs will not autostart.

 

edit the VM to remove this section.

 

<hostdev mode="subsystem" type="usb" managed="no">

<source startupPolicy="optional">

<vendor id="0x0951"/>

<product id="0x1666"/>

</source>

<address type="usb" bus="0" port="1"/>

</hostdev>

 

mv /usr/local/sbin/qemu.old /usr/local/sbin/qemu

 

Now you should be able to start your VMs.

 

 

 

  • Like 1
Link to comment

Interesting that a flash drive is being redirected, I honestly don't remember doing that, but I guess I did 🤷‍♂️

 

I started the array with VM Manager disabled

Ran "mv /usr/local/sbin/qemu /usr/local/sbin/qemu.old"

Enabled VM Manager

Edited JasonVM in XML View to remove the section suggested, but when I try to save the changes I'm getting the following error - "VM creation error.  Cannot check QEMU binary /usr/local/sbin/qemu: No such file or directory" and then the VM is removed from VM Manager.  I was able to restore my VM Metadata since I've got a backup though.

 

Here are the steps that I took to get things working again

Disabled VM Manager

Started the array

Ran "mv /usr/local/sbin/qemu /usr/local/sbin/qemu.old"

Enabled VM Manager

Disabled Autostart on all of the VMs

Stopped the array

Rebooted

Started the array

Edited JasonVM in XML View to remove the section suggested

I was able to manually start the VMs now

Enabled Autostart on the VMs that I wanted to start with the array

 

Thanks for the assistance in getting me back up and running!

Link to comment

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.

×
×
  • Create New...