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

building on Linux? #194

Open
lonnietc opened this issue Aug 10, 2020 · 3 comments
Open

building on Linux? #194

lonnietc opened this issue Aug 10, 2020 · 3 comments

Comments

@lonnietc
Copy link

What would it take to get Xhyve to compile and run on Linux?
Thanks

@shchuko
Copy link
Contributor

shchuko commented Aug 10, 2020

xHyve is built on top of the Hypervisor.Framework which is a part of macOS. Linux has other virtualisation kernel module (KVM), which is (unsurprisingly) unsupported by xhyve. It looks like QEMU+KVM will help you under Linux.

@lonnietc
Copy link
Author

Yes, I am aware of KVM and what I am truly interested in is seeing if I can port the Xhyve over to Linux after which I can maybe get it running under a unikernel.

So then, to this end, I am trying to find out what the specific parts are that tie it to the macOS since in my reading on the Xhyve, it said that there were minimal dependencies on the Hypervisor.Framework and that made me wonder if it would be easier to port Xhyve over to Linux rather than try and port the full Bhyve from FreeBSD over to Linux.

The follow on step, should that go well, would be to port from the Linux version of Xhyve to a Unikernel which would then allow Xhyve to basically run on bare metal.

The Xhyve approach just appeared to perhaps be easier in my initial review of possible directions.

@lonnietc
Copy link
Author

Hello,

After a long time away due to covid-19 related matters, I am now trying to get back on top of things with my virtualization project.

Originally the goal was to port the latest bhyve to Linux and then to a new type of OS and kernel that is being developed but maybe porting to Linux was really not needed.

Now I am interested to know if Xhyve is reasonably up to date with the latest Bhyve features as well as to try and find out what system calls that the "Hypervisor.Framework" needed.

I am figuring that just maybe I can create a type of Hypervisor.Framework layer to my new kernel (not Linux and more of a Hypervisor kernel) that sends back the needed information needed by Xvisor.

Any thoughts would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants