Do we have anyone here that uses Qemu on OpenBsd, ? I am having trouble figuring out how to mount a usb device, to a guest system on Qemu, everything I find when searching applied to Linux, and does not work on OpenBsd.
Here is what I use to start the VM, and it works fine. The question is , how/where to append the correct syntax (option) so it also mounts the usb device, /devsd1i in the vm.
Below, is a shell script I use, it is executable, and starts the VM
Code:
cd /home/garry/Images/ISO-images/Debian-9/
ulimit -d 3000000
qemu-system-x86_64 -rtc base=localtime -net user,hostfwd=tcp::10080-:80,hostfwd=tcp::10022-:22, -net nic -m 1000 -drive format=raw,file=debian9.img
I do see in the qemu manual:
Quote:
USB options
-usb
Enable the USB driver (if it is not used by default yet).
-usbdevice devname
Add the USB device devname. Note that this option is deprecated,
please use "-device usb-..." instead.
|
But it is not clear to me, where I would add the option, in my startup script. Also I am sure I would need to run the start up script as root, since on my system only root can mount anything,...I could maybe setup a "doas" option to avoid that, but would rather not.
Any way, any help is appreciated. Thanks