DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th July 2019
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 415
Default Qemu on OpenBsd

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:
$ start-debian9
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
__________________
My best friends are parrots
Reply With Quote
  #2   (View Single Post)  
Old 7th July 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,814
Default

Garry,

IIRC, Qemu on OpenBSD does not support USB device pass through. The USB network redirection feature is disabled in the Port build.
Reply With Quote
  #3   (View Single Post)  
Old 8th July 2019
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 415
Default

Ok, thanks, that is kind of what I figured, based on some stuff I found searching and the results of my attempts. Thanks for confirming this though.
__________________
My best friends are parrots
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
QEMU on OpenBsd, mounting a vnd0 device PapaParrot OpenBSD Packages and Ports 15 21st April 2018 07:22 PM
Installing OpenBSD under QEMU/KVM bsd007 OpenBSD Packages and Ports 4 26th October 2017 11:37 AM
Network problem with OpenBSD 4.6 under QEMU eherrera OpenBSD General 1 17th May 2012 08:23 PM
OpenBSD qemu usb passthrough kolaloka OpenBSD Packages and Ports 9 9th October 2011 12:15 AM
OpenBSD on qemu: opera install problems Mr-Biscuit OpenBSD Packages and Ports 6 7th September 2009 03:29 AM


All times are GMT. The time now is 10:53 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick