cneira / jail-task-driver

nomad task driver that uses FreeBSD jails
BSD 3-Clause "New" or "Revised" License
36 stars 2 forks source link

bhyve support #15

Open cneira opened 4 years ago

cneira commented 4 years ago

It would be nice to be able to orchestrate bhyve instances and run them inside jails.

Crest commented 1 year ago

What makes you believe this isn't possible? FreeBSD can expose vmm(4), tap(4), etc. devices and slightly loosen the isolation provided by jails allowing bhyve to run inside a jail, but starting and stopping bhyve isn't the hard part. Hooking the bhyve guests up to the correct network and storage is the hard part that's only theoretically possible using jail hooks.

cneira commented 1 year ago

What makes you believe this isn't possible? FreeBSD can expose vmm(4), tap(4), etc. devices and slightly loosen the isolation provided by jails allowing bhyve to run inside a jail, but starting and stopping bhyve isn't the hard part. Hooking the bhyve guests up to the correct network and storage is the hard part that's only theoretically possible using jail hooks.

@Crest I just stated that would be nice to have, and help is wanted to code the needed part. Now the situation is better as bhyve can run in jails with ppt.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251046