News for hackers. Stuff that matters.
Re:Running FreeBSD on OS X using xhyve, a port of bhyve by ulzeraj on Wednesday December 12, 2018 @03:32AM (#18662300)
AFAIK it’s not a port of bhyve but a Port of the bhyve userland tools that tap into the MacOS hypervisor framework.

I wish there was a simpler approach to the hypervisor framework. I normally avoid using any third party software that wants to taint the kernel and third party hypervisors fall into that category. There is parallels desktop lite which can be installed from the App Store but it’s extremely limited (and paywalled) for something that I suspect it’s just a pretty interface to the hypervisor framework.

Re:Running FreeBSD on OS X using xhyve, a port of bhyve by danieldk on Wednesday December 12, 2018 @07:32AM (#18663339)
There was Veertu Desktop, which used Hypervisor.framework, but they have pivoted into CI for iOS. At some point it was open sourced, but it seems to have disappeared from their GitHub account. At least someone seems to have made a copy before:

https://github.com/tithomas1/vdhh

Re:Running FreeBSD on OS X using xhyve, a port of bhyve by FlyingSnake on Wednesday December 12, 2018 @08:52AM (#18663867)
Thanks for the link, I was wondering what happened to veertu desktop. It was a neat project.
Re:Running FreeBSD on OS X using xhyve, a port of bhyve by eksu on Wednesday December 12, 2018 @10:13AM (#18664541)
QEMU now has ‘hvf’ (hypervisor.framework) available in master as an accelerator, I think it was a summer of code project.

Wish I could use it, but the current implementation calls the xgetbv instruction which is not available on my Westemere EP processors.

All MacOS/QEMU needs is PCIE passthrough and you could have an amazing setup with thunderbolt accessories.

Re:Running FreeBSD on OS X using xhyve, a port of bhyve by floam on Wednesday December 12, 2018 @07:03PM (#18668773)
> QEMU now has ‘hvf’ (hypervisor.framework) available in master as an accelerator, I think it was a summer of code project.

It was not a Summer of Code project, there was (is) a company called Veertu that did the work who sold a virtualization product for running Linux and Windows on macOS on the App Store. Because it used Hypervisor.framework, it could be sandboxed and could be on the Mac App Store.

Google forked Veertu's GitHub repo, adding a few bells and whistles for use in their Android emulator.

Finally, the work was merged upstream to QEMU.

Re:Running FreeBSD on OS X using xhyve, a port of bhyve by ulzeraj on Wednesday December 12, 2018 @04:22PM (#18667883)
Mmmm eGPU + Passthrough would be sweet. Imagine gaming or using GPU heavy applications on a Windows VM with dedicated GPU and without the need for a separate set of monitor and input devices like Looking Glass does. https://github.com/gnif/LookingGlass
Re:Running FreeBSD on OS X using xhyve, a port of bhyve by moondev on Wednesday December 12, 2018 @03:43PM (#18667573)
Was not aware of this! Thanks for sharing, this could be a great breakthrough for interfacing with hvf machines. xhyve is sorely missing an accessible management cli.
Re:Running FreeBSD on OS X using xhyve, a port of bhyve by wiredfool on Wednesday December 12, 2018 @04:13AM (#18662452)
Correct, xhyve is built on the macos hypervisor framework.

I've had good experiences with it running linux guests, it took a bit of tweaking to get networking setup, but other than that it's been solid.

Re:Running FreeBSD on OS X using xhyve, a port of bhyve by stansm on Wednesday December 12, 2018 @06:13AM (#18662910)
How is IO performance compared to Vbox? I've seen some old benchmarks indicating that xhyve IO is like 4x slower..
Re:Running FreeBSD on OS X using xhyve, a port of bhyve by wiredfool on Wednesday December 12, 2018 @01:08PM (#18666179)
I'm seeing about 15% slower raw speed than the bare drive, dd if=/dev/zero of=tmp bs=1M count=512 is giving me between 68 and 250 mb/sec on a 2013 MBA with a nearly full disk, where in the terminal I'm getting between 78mb/s and 290mb/s.

ymmv, of course.

Re:Running FreeBSD on OS X using xhyve, a port of bhyve by tambourine_man on Wednesday December 12, 2018 @05:51AM (#18662827)
>running linux guests

Can you point me to the resources you used? Thanks.

Re:Running FreeBSD on OS X using xhyve, a port of bhyve by wiredfool on Wednesday December 12, 2018 @01:13PM (#18666219)
It's been a while, but this is the startup script I'm using:

https://gist.github.com/wiredfool/0e1aa099a29f562cdc3ba30c36...

The hard drive images are literally a qemu image for linux kvm that's been qemu-img converted to a raw format, then the kernel and initrd were extracted, and stored in the mac file system. This image was originally on my linux box for a while, before I needed to go mobile on the laptop with it.

Re:Running FreeBSD on OS X using xhyve, a port of bhyve by freebsd4me on Wednesday December 12, 2018 @11:17AM (#18665130)
the xhyve repo came with a small Linux setup

time (git clone github.com/mist64/xhyve.git; cd xhyve; make; ./xhyverun.sh) w/ "sudo halt" pasted into the resulting shell: 14.85s