QEMU/KVM: USB3 passthrough to FreeBSD
Clash Royale CLAN TAG#URR8PPP
I'm making my first steps in FreeBSD, so please excuse any possible "linuxism".
My goal is to run FreeBSD 10.2 inside virtual machine with QEMU/KVM and allow USB3 network card passthrough from the host to make it the only available WAN interface.
To start QEMU/KVM I run the following:
kvm -m 4096
-snapshot
-hda /path/to/the/image
-device nec-usb-xhci,id=xhci,addr=0x5
-device usb-host,bus=xhci.0,vendorid=0x0b95,productid=0x1790
-net none
This is running fine, if I'm trying to start Ubuntu 16.04. The interface is up, shows up in lsusb
and the address is assigned by DHCP.
I'm also able to run the very same FreeBSD image with VirtualBox: the card is recognised (as it's supported by FreeBSD) and I see:
pciconf -lv
#skipped
xhci0@pci0:0:12:0: class=0x0c0330 card=0x00000000 chip=0x1e318086 rev=0x00 hdr=0x00
vendor = 'Intel Corporation'
device = '7 Series/C210 Series Chipset Family USB xHCI Host Controller'
class = serial bus
subclass = USB
When running QEMU monitor, info usb
returns (no surprise) the same entry for the network card, both for Ubuntu and FreeBSD.
The only way of adding XHCI controller in QEMU I found is to specify nec-usb-xhci, so far this is the only difference between VirtualBox and QEMU I see.
Is there a way to make this USB3 passthrough to FreeBSD possible with QEMU?
usb freebsd virtualbox virtual-machine qemu
add a comment |
I'm making my first steps in FreeBSD, so please excuse any possible "linuxism".
My goal is to run FreeBSD 10.2 inside virtual machine with QEMU/KVM and allow USB3 network card passthrough from the host to make it the only available WAN interface.
To start QEMU/KVM I run the following:
kvm -m 4096
-snapshot
-hda /path/to/the/image
-device nec-usb-xhci,id=xhci,addr=0x5
-device usb-host,bus=xhci.0,vendorid=0x0b95,productid=0x1790
-net none
This is running fine, if I'm trying to start Ubuntu 16.04. The interface is up, shows up in lsusb
and the address is assigned by DHCP.
I'm also able to run the very same FreeBSD image with VirtualBox: the card is recognised (as it's supported by FreeBSD) and I see:
pciconf -lv
#skipped
xhci0@pci0:0:12:0: class=0x0c0330 card=0x00000000 chip=0x1e318086 rev=0x00 hdr=0x00
vendor = 'Intel Corporation'
device = '7 Series/C210 Series Chipset Family USB xHCI Host Controller'
class = serial bus
subclass = USB
When running QEMU monitor, info usb
returns (no surprise) the same entry for the network card, both for Ubuntu and FreeBSD.
The only way of adding XHCI controller in QEMU I found is to specify nec-usb-xhci, so far this is the only difference between VirtualBox and QEMU I see.
Is there a way to make this USB3 passthrough to FreeBSD possible with QEMU?
usb freebsd virtualbox virtual-machine qemu
add a comment |
I'm making my first steps in FreeBSD, so please excuse any possible "linuxism".
My goal is to run FreeBSD 10.2 inside virtual machine with QEMU/KVM and allow USB3 network card passthrough from the host to make it the only available WAN interface.
To start QEMU/KVM I run the following:
kvm -m 4096
-snapshot
-hda /path/to/the/image
-device nec-usb-xhci,id=xhci,addr=0x5
-device usb-host,bus=xhci.0,vendorid=0x0b95,productid=0x1790
-net none
This is running fine, if I'm trying to start Ubuntu 16.04. The interface is up, shows up in lsusb
and the address is assigned by DHCP.
I'm also able to run the very same FreeBSD image with VirtualBox: the card is recognised (as it's supported by FreeBSD) and I see:
pciconf -lv
#skipped
xhci0@pci0:0:12:0: class=0x0c0330 card=0x00000000 chip=0x1e318086 rev=0x00 hdr=0x00
vendor = 'Intel Corporation'
device = '7 Series/C210 Series Chipset Family USB xHCI Host Controller'
class = serial bus
subclass = USB
When running QEMU monitor, info usb
returns (no surprise) the same entry for the network card, both for Ubuntu and FreeBSD.
The only way of adding XHCI controller in QEMU I found is to specify nec-usb-xhci, so far this is the only difference between VirtualBox and QEMU I see.
Is there a way to make this USB3 passthrough to FreeBSD possible with QEMU?
usb freebsd virtualbox virtual-machine qemu
I'm making my first steps in FreeBSD, so please excuse any possible "linuxism".
My goal is to run FreeBSD 10.2 inside virtual machine with QEMU/KVM and allow USB3 network card passthrough from the host to make it the only available WAN interface.
To start QEMU/KVM I run the following:
kvm -m 4096
-snapshot
-hda /path/to/the/image
-device nec-usb-xhci,id=xhci,addr=0x5
-device usb-host,bus=xhci.0,vendorid=0x0b95,productid=0x1790
-net none
This is running fine, if I'm trying to start Ubuntu 16.04. The interface is up, shows up in lsusb
and the address is assigned by DHCP.
I'm also able to run the very same FreeBSD image with VirtualBox: the card is recognised (as it's supported by FreeBSD) and I see:
pciconf -lv
#skipped
xhci0@pci0:0:12:0: class=0x0c0330 card=0x00000000 chip=0x1e318086 rev=0x00 hdr=0x00
vendor = 'Intel Corporation'
device = '7 Series/C210 Series Chipset Family USB xHCI Host Controller'
class = serial bus
subclass = USB
When running QEMU monitor, info usb
returns (no surprise) the same entry for the network card, both for Ubuntu and FreeBSD.
The only way of adding XHCI controller in QEMU I found is to specify nec-usb-xhci, so far this is the only difference between VirtualBox and QEMU I see.
Is there a way to make this USB3 passthrough to FreeBSD possible with QEMU?
usb freebsd virtualbox virtual-machine qemu
usb freebsd virtualbox virtual-machine qemu
asked Jul 11 '16 at 14:02
PiohenPiohen
1014
1014
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
QEMU has a USB3.0 bug which needs to be patched first. 10-stable is known to work with QEMU XHCI now.
https://lists.gnu.org/archive/html/qemu-devel/2016-08/msg03571.html
--HPS
Hi @HPS, what do you mean by "10-stable"? Is this a precise qemu version which is patched for USB3?
– Piohen
Sep 6 '16 at 10:19
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f295155%2fqemu-kvm-usb3-passthrough-to-freebsd%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
QEMU has a USB3.0 bug which needs to be patched first. 10-stable is known to work with QEMU XHCI now.
https://lists.gnu.org/archive/html/qemu-devel/2016-08/msg03571.html
--HPS
Hi @HPS, what do you mean by "10-stable"? Is this a precise qemu version which is patched for USB3?
– Piohen
Sep 6 '16 at 10:19
add a comment |
QEMU has a USB3.0 bug which needs to be patched first. 10-stable is known to work with QEMU XHCI now.
https://lists.gnu.org/archive/html/qemu-devel/2016-08/msg03571.html
--HPS
Hi @HPS, what do you mean by "10-stable"? Is this a precise qemu version which is patched for USB3?
– Piohen
Sep 6 '16 at 10:19
add a comment |
QEMU has a USB3.0 bug which needs to be patched first. 10-stable is known to work with QEMU XHCI now.
https://lists.gnu.org/archive/html/qemu-devel/2016-08/msg03571.html
--HPS
QEMU has a USB3.0 bug which needs to be patched first. 10-stable is known to work with QEMU XHCI now.
https://lists.gnu.org/archive/html/qemu-devel/2016-08/msg03571.html
--HPS
answered Sep 5 '16 at 14:19
HPSHPS
1
1
Hi @HPS, what do you mean by "10-stable"? Is this a precise qemu version which is patched for USB3?
– Piohen
Sep 6 '16 at 10:19
add a comment |
Hi @HPS, what do you mean by "10-stable"? Is this a precise qemu version which is patched for USB3?
– Piohen
Sep 6 '16 at 10:19
Hi @HPS, what do you mean by "10-stable"? Is this a precise qemu version which is patched for USB3?
– Piohen
Sep 6 '16 at 10:19
Hi @HPS, what do you mean by "10-stable"? Is this a precise qemu version which is patched for USB3?
– Piohen
Sep 6 '16 at 10:19
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f295155%2fqemu-kvm-usb3-passthrough-to-freebsd%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown