xhyve hypervisor

xhyve,一个轻量级的 OS X 虚拟化解决方案。「xhyve, a lightweight OS X virtualization solution」

  • Owner: machyve/xhyve
  • Platform: BSD, Linux, Windows 10
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

xhyve.xyz

About

The xhyve hypervisor is a port of bhyve to macOS. It is built on top of Hypervisor.framework in OS X 10.10 Yosemite and higher, runs entirely in userspace, and has no other dependencies. It can run FreeBSD, some Linux distributions, and Windows 10 and may gain support for other guest operating systems in the future.

License: BSD-2-Clause

Introduction: http://www.pagetable.com/?p=831

Requirements

  • OS X 10.10.3 Yosemite or later
  • a 2010 or later Mac (i.e. a CPU that supports EPT: sysctl kern.hv_support = 1)

Installation

If you have homebrew, then simply:

$ brew update
$ brew install --HEAD xhyve

The --HEAD in the brew command ensures that you always get the latest changes, even if the homebrew database is not yet updated. If for any reason you don't want that simply do brew install xhyve .

If you have MacPorts, then simply:

$ sudo port selfupdate
$ sudo port install xhyve

MacPorts is up to date with the GitHub ref listed in the port info

$ port info xhyve
xhyve @20170117 (emulators)
...

Otherwise:

Building

$ git clone https://github.com/machyve/xhyve.git
$ cd xhyve
$ xcodebuild

The resulting binary will be in build/Release/xhyve

Usage

$ xhyve -h

See below for steps to boot various OSs

What is bhyve?

bhyve is the FreeBSD hypervisor, roughly analogous to KVM + QEMU on Linux. It has a focus on simplicity.

It exposes the following peripherals to virtual machines:

  • Local x(2)APIC
  • IO-APIC
  • 8259A PIC
  • 8253/8254 PIT
  • HPET
  • PM Timer
  • RTC
  • PS/2 Keyboard and Mouse (via VNC)
  • PCI
    • host bridge
    • passthrough
    • UART
    • AHCI (i.e. HDD and CD)
    • VirtIO block device
    • VirtIO networking
    • VirtIO RNG
    • Intel e1000 (aka e82545)
    • VGA/Framebuffer (exposed with a minimal VNC server)
    • XHCI USB support with one device defined - a tablet for Windows guest support

bhyve architecture

                                                       Linux
           I/O        VM control       FreeBSD        NetBSD
                                                      OpenBSD

Main metrics

Overview
Name With Ownermachyve/xhyve
Primary LanguageC
Program languageMakefile (Language Count: 5)
PlatformBSD, Linux, Windows 10
License:Other
所有者活动
Created At2015-06-10 04:45:42
Pushed At2022-01-29 15:33:45
Last Commit At2021-10-02 06:16:50
Release Count2
Last Release Namev0.2.0 (Posted on )
First Release Namev0.1.0 (Posted on )
用户参与
Stargazers Count6.5k
Watchers Count194
Fork Count353
Commits Count204
Has Issues Enabled
Issues Count141
Issue Open Count73
Pull Requests Count51
Pull Requests Open Count16
Pull Requests Close Count21
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private