Discussion:
Using USB stick in a qemu NetBSD guest on a Linux host
Carsten Kunze
2014-07-14 20:56:29 UTC
Permalink
Hello,

I am using NetBSD as a qemu guest on a Linux host. I'd like to use a USB stick and tried e.b. "-hdb /dev/sdb" or "-usbdevice disk::/dev/sdb" but nothing works. Has anyone done this successfully?

--Carsten
Christian Koch
2014-07-14 22:02:04 UTC
Permalink
Post by Carsten Kunze
Hello,
I am using NetBSD as a qemu guest on a Linux host. I'd like to use a USB stick
and tried e.b. "-hdb /dev/sdb" or "-usbdevice disk::/dev/sdb" but nothing
works. Has anyone done this successfully?
--Carsten
FYI, remember that disks and partitions within disks are named differently in
NetBSD than in Linux. "/dev/sda" in Linux is like saying "/dev/sd0" in NetBSD.
Maybe that's why you can't see the USB stick inside the NetBSD VM.

-Christian
Carsten Kunze
2014-07-15 18:57:05 UTC
Permalink
Post by Christian Koch
FYI, remember that disks and partitions within disks are named differently in
NetBSD than in Linux. "/dev/sda" in Linux is like saying "/dev/sd0" in NetBSD.
Maybe that's why you can't see the USB stick inside the NetBSD VM.
I could attach the device with qemu monitor with

usb_add host:<VendorID>:<ProductID>

but then mouse and keyboard does not work anymore.
If I use

-usbdevice host:<VendorID>:<ProductID>

the device is not recognized ...
Carsten Kunze
2014-07-15 18:16:06 UTC
Permalink
Post by Christian Koch
FYI, remember that disks and partitions within disks are named differently in
NetBSD than in Linux. "/dev/sda" in Linux is like saying "/dev/sd0" in NetBSD.
Maybe that's why you can't see the USB stick inside the NetBSD VM.
The USB device is /dev/sde, there is only one primary partition /dev/sde1. I use the option -hdb /dev/sde1. There is nothing in dmesg and usbdevs reports only the mouse. What would be the correct option?

Carsten
Carsten Kunze
2014-07-15 19:48:15 UTC
Permalink
Post by Christian Koch
FYI, remember that disks and partitions within disks are named differently in
NetBSD than in Linux. "/dev/sda" in Linux is like saying "/dev/sd0" in NetBSD.
Maybe that's why you can't see the USB stick inside the NetBSD VM.
Thank you, it has been a problem with a script I use. It works indeed with "-hdb /dev/sde1".
Loading...