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

Why does it need macos and can't run on Linux/qemu? #8

Closed
christianparpart opened this issue Mar 5, 2022 · 6 comments
Closed

Why does it need macos and can't run on Linux/qemu? #8

christianparpart opened this issue Mar 5, 2022 · 6 comments

Comments

@christianparpart
Copy link

Hey.

it's a great effort and many thanks for this work. But while trying to search for a freebsd github action that is not requiring macos for virtualbox but rather Linux with qemu I seem to be out of luck.

I start to wonder why it has to be macos/virtualbox. Isn't qemu (/linux) sufficient? I'm primarily intersted in this because macos costs 10 times the money (or minutes) as standard linux does on github actions pricing.

Many thanks,
Christian.

@jacob-carlborg
Copy link
Contributor

The reason why FreeBSD and OpenBSD require macOS runners is because the GitHub action uses the Xhyve hypervisor. Xhyve is only available on macOS. I chose that one because it's faster than QEMU and has minimal dependencies. Also the macOS GitHub runner supports hardware accelerated virtualization while the Linux runners don't. I'm only using this action for open source projects so I haven't thought about the costs.

When running NetBSD, QEMU is already being used and Linux is currently required. Since the action already supports QEMU most work is already done. I'm working on the last part to unify all this that will allow to run FreeBSD and OpenBSD using the QEMU hypervisor on Linux and to run NetBSD using QEMU on macOS.

To summarize: QEMU on Linux is sufficient and I'm working on supporting that.

@christianparpart
Copy link
Author

Many thanks for the detailed technical reply.

@christianparpart
Copy link
Author

Make meant thanks for your great work, @jacob-carlborg .

@jacob-carlborg
Copy link
Contributor

Thanks. You need to update to version 0.4.0 to run FreeBSD on Linux runners: https://github.com/cross-platform-actions/action/releases/tag/v0.4.0.

@FGasper
Copy link

FGasper commented May 10, 2022

@jacob-carlborg
Copy link
Contributor

Of note: This failed for me w/ OpenBSD: https://github.com/FGasper/p5-JavaScript-QuickJS/actions/runs/2297373821

@FGasper OpenBSD still needs to run on macOS-10.15 runners. There's no technical reason why it can't run on Linux, but I haven't verified it yet. Please create a separate issue to make sure it's not forgotten.

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

3 participants