Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pci_passthru_args #172

Closed
will666 opened this issue Jun 15, 2017 · 7 comments
Assignees

Comments

@will666
Copy link

@will666 will666 commented Jun 15, 2017

Hi,

I'm looking for using pci_passthru_args, how do we proceed? I saw the table bhyveppt in the sqlite database, but it's empty. I did not see nothing about it in the documentation.

Thank you in advance.

@olevole olevole self-assigned this Jun 15, 2017
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jun 15, 2017

Hi.

I'm not sure pass-thru in CBSD finished ;-) For this reason it still not documented.
Nevertheless, I began work on this. You can try to use

cbsd bhyve-ppt

command after booting hoster with corresponding records in /boot/loader.conf:

a) vmm should be loaded via /boot/loader.conf, not after booting system (kldload): vmm_load="YES"
b) you must have pptdevs in /boot/loader.conf ( see https://wiki.freebsd.org/bhyve/pci_passthru ), e.g: pptdevs="5/1/0"

If all ok, you can see devices via:

cbsd bhyve-ppt mode=list

and try to apply it to vm:

cbsd bhyve-ppt mode=attach ppt=<ppt> jname=<vmname>

but i never test this because I do not have the right equipment ;-)

@will666

This comment has been minimized.

Copy link
Author

@will666 will666 commented Jun 15, 2017

I didn't try the command cbsd bhyve-ppt yet, but I'm about to do so.
I've done the configuration and used pptdevs in the past, i just wanted to know the "CBSD way" of doing PCI passthrough.
Thank you for your help, i'll get back to you after some tests.

@will666

This comment has been minimized.

Copy link
Author

@will666 will666 commented Jun 16, 2017

I just tried the command and it works like a charm, great feature!
Perhaps it would be good to detach the ppt automatically in case of VM deletion - if a VM was deleted while ppt attached, the ppt device will remain unavailable.
Thank you for all your hard work.

@will666 will666 closed this Jun 16, 2017
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jun 16, 2017

Wow, this works, Great! Thanks for testing ;-)

Perhaps it would be good to detach the ppt automatically in case of VM deletion

It looks reasonable to me. I've return this Issue to open state as reminder to fix it

@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jun 22, 2017

done with 91e1833
Will be available in next CBSD release: 11.1.0

Thx!

@olevole olevole closed this Jun 22, 2017
@will666

This comment has been minimized.

Copy link
Author

@will666 will666 commented Jun 22, 2017

Great! Thank you again for your time and your hard work. I'm using CBSD on a production server and it works pretty good for me, i run around 30 jails and 2 bhyve vms on the same host with ZFS.
I'm also keeping an eye on ClonOS, I really like jails as containers and I really love FreeBSD.

@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jun 22, 2017

@will666 It's very nice that the project is useful for someone. Feedback/comments and ideas are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.