https://rancher.com/ logo
Title
i

icy-parrot-30770

10/12/2022, 7:43 PM
Hello everyone I need your help, I have a lot of access rights problem using the "rancher.io/local-path" provisioner of "rancher desktop". Wanting to be as close as possible to the target configuration, I would like to try if using "rook.io + ceph" as a provisioner solve my access right issues. For the installation of rook.io, there is a "cluster-test.yaml" file dedicated for that purpose, but you must define the path of the volume (on the VM) containing the data which must be blank and unformatted For this I would like to use an external usb key (or an external HDD). -> could you tell me if it is possible to directly mount this usb key on the "rancher desktop" VM? (I'm on mac osx 12.6 monterey)
f

fast-garage-66093

10/13/2022, 12:10 AM
I don't think this is possible right now; at least not in any reasonably easy way. You would need USB passthrough support from QEMU, and that has been notoriously difficult.
i

icy-parrot-30770

10/13/2022, 8:05 AM
Hi Jan, thank you very much for your response :) so as it seems difficult but not impossible, I will try to ;) after reading / watching some stuff I have installed lsusb via brew (brew install lsusb) "lsusb" command in terminal.app give the result : -> Bus 020 Device 008: ID 058f:6387 Alcor Micro, Corp. Mass Storage Serial: 4CB7B84B which is my usb 2 device -> so use of "ehci" (xhci for usb 3 devices) where is stored the script file (if any) that is used to boot the RD alpine VM ? where I would be able to insert (if possible) in it the command : (if i want to mount any device plugged on this specific plug) -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,hostbus=20,hostaddr=8 or (if i want to mount only this specific device) -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=0x058f,productid=0x6387 best regards Olivier
f

fast-garage-66093

10/13/2022, 3:55 PM
You can put additional qemu option into the
QEMU_SYSTEM_X86_64
(or
QEMU_SYSTEM_AARCH64
) environment variable, that override the command used to start qemu. Since Rancher Desktop is normally launched via the Finder, you have to put it into the global launchd environment, e.g. (random sample from my shell history):
/bin/launchctl setenv QEMU_SYSTEM_X86_64 "qemu-system-x86_64 -cpu host,host-cache-info=on"
When you are done with your experiments, you want to remove the setting again with
/bin/launchctl unsetenv QEMU_SYSTEM_X86_64
Please let us know if you can actually make it work!
i

icy-parrot-30770

10/14/2022, 8:09 AM
thanks you very much !! I will let you know :)