My USB card is a bhyve killer

Rajil Saraswat rajil.s at gmail.com
Thu Aug 17 02:03:35 UTC 2017


Hi,

I have a PCIe USB card which is exported to the bhyve vm using
passthrough. I have tried to use the card in Ubuntu, Debian 8 and Centos
7. Each time the OS has given a segmentation fault on bootup and killed
the bhyve session. This is what i get in the bhyve-log:

Aug 17 01:49:39: initialising
Aug 17 01:49:39:  [loader: grub]
Aug 17 01:49:39:  [uefi: no]
Aug 17 01:49:39:  [cpu: 1]
Aug 17 01:49:39:  [memory: 512M]
Aug 17 01:49:39:  [hostbridge: standard]
Aug 17 01:49:39:  [com ports: com1]
Aug 17 01:49:39:  [uuid: 09a84879-8156-11e7-b407-0cc47adeccc0]
Aug 17 01:49:39:  [utctime: no]
Aug 17 01:49:39:  [debug mode: no]
Aug 17 01:49:39:  [primary disk: /dev/zvol/vmpool/os9]
Aug 17 01:49:39:  [primary disk dev: custom]
Aug 17 01:49:39: initialising network device tap2
Aug 17 01:49:39: adding tap2 -> bridge1 (lannetwork)
Aug 17 01:49:39: booting
Aug 17 01:49:39: create file /tank/vm/openhab1/device.map
Aug 17 01:49:39:  -> (hd0) /dev/zvol/vmpool/os9
Aug 17 01:49:39: /usr/local/sbin/grub-bhyve -S -m
/tank/vm/openhab1/device.map -M 512M -r hd0,msdos1 openhab1
Aug 17 01:49:42:  [bhyve options: -c 1 -m 512M -AHP -U
09a84879-8156-11e7-b407-0cc47adeccc0 -S]
Aug 17 01:49:42:  [bhyve devices: -s 0,hostbridge -s 31,lpc -s
4:0,virtio-blk,/dev/zvol/vmpool/os9 -s
5:0,virtio-net,tap2,mac=58:9c:fc:07:cc:2d -s 6:0,passthru,129/0/0]
Aug 17 01:49:42:  [bhyve console: -l com1,stdio]
Aug 17 01:49:42: starting bhyve (run 1)
Aug 17 01:49:44: bhyve exited with status 139
Aug 17 01:49:44: destroying network device tap2
Aug 17 01:49:44: stopped

The USB card works fine on the host and is detected by the xhci driver.
The card is "Inateck Superspeed 4 Ports PCI-E to USB 3.0 Expansion Card
- Interface USB 3.0 4-Port" (https://www.amazon.com/gp/product/B00B6ZCNGM)

ppt3 at pci0:129:0:0:      class=0x0c0330 card=0x11001b73 chip=0x11001b73
rev=0x10 hdr=0x00
    vendor     = 'Fresco Logic'
    device     = 'FL1100 USB 3.0 Host Controller'
    class      = serial bus
    subclass   = USB

Any idea how can i use this card in a linux vm?


Thanks



More information about the freebsd-virtualization mailing list