USB passthru ERROR 5 after set tunable vmm_load=Yes

Willy666

Dabbler
Joined
Feb 10, 2017
Messages
28
Truenas 13.0-U4-1
I have an intel 7700k
Truenas is on usb stick
I have tried to passthru my usb bluetooth device to my VM
After set Tunable vmm_load=Yes and pptdevs="0/20/0" (my USB controller) Truenas give me
Mounting from ZFS failed with error 5
now I can only go back to my previous Truenas 12
but without my VM

any Help?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Reinstall, import config backup.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Do you have a backup of your configuration from TN 13? Without the tunable? If yes, perform a fresh install and reimport that config.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You can upgrade your TN 12 installation to 13, then recreate your VM. All the VMs data is still there, only the settings are lost. Just use the existing zvol as the virtual disk device and you should be fine.
 

Willy666

Dabbler
Joined
Feb 10, 2017
Messages
28

Attachments

  • Schermata 2023-11-14 alle 08.53.12.png
    Schermata 2023-11-14 alle 08.53.12.png
    356 KB · Views: 56

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
That's not a configuration backup but boot environments.

But did you set that tunable while running U4.1? Then you should be able to boot back into U4 ...
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Then perform a fresh installation of U5.3 and import that configuration file.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
No, you download an install ISO, write that to another USB drive, boot that, and perform a new installation to your existing USB drive wiping the OS and the botched config in the process. Your storage pool will not be touched by this procedure.

Then you import the saved config and your are as good as new.
 

Willy666

Dabbler
Joined
Feb 10, 2017
Messages
28
No, you download an install ISO, write that to another USB drive, boot that, and perform a new installation to your existing USB drive wiping the OS and the botched config in the process. Your storage pool will not be touched by this procedure.

Then you import the saved config and your are as good as new.
Is not easier upgrade and import the configuration file?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Possibly. I just wanted to make sure you get a clean state.

Remove all boot environments except the 12.0 one you are running. Then perform the upgrade to 12.0-U8.1 first and then switching trains to 13.0-U5.3.

In case that fails for some reason you can still perform a fresh install.
 

Willy666

Dabbler
Joined
Feb 10, 2017
Messages
28
now I have replace my old configuration but without my VM.
So now I have to recreate my vm and select existing Zvol
 

Willy666

Dabbler
Joined
Feb 10, 2017
Messages
28
Possibly. I just wanted to make sure you get a clean state.

Remove all boot environments except the 12.0 one you are running. Then perform the upgrade to 12.0-U8.1 first and then switching trains to 13.0-U5.3.

In case that fails for some reason you can still perform a fresh install.
When I replace a Vm I select the old VM disk I have to reinstall Debian ? or it risks to delete the existing OS ?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
No, of course not. Your installed guest OS is inside that zvol and you can just boot it. Just make sure you pick the same type of device - AHCI vs. VirtIO ...
 

Willy666

Dabbler
Joined
Feb 10, 2017
Messages
28
No, of course not. Your installed guest OS is inside that zvol and you can just boot it. Just make sure you pick the same type of device - AHCI vs. VirtIO ...
Thanks U are a great friend. SOLVED!

Now avoiding last mistakes. Can I passthru the usb device to the VM? I have to pass all the bus? I have Truenas installed on Usb on the same bus
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You can only pass PCIe devices which implies the whole USB controller.

Do you have another group of USB ports (back vs. front) connected to another controller, possibly? Or a free PCIe slot for an add on card?
 
Top