- OS X El Capitan 10.11.2
- xhyve 0.2.0 via Homebrew
- coreos/coreos-xhyve from GitHub https://github.com/coreos/coreos-xhyve
- e2fsprogs via Homebrew
- GnuPG via Homebrew
Install the xhyve:
$ brew install xhyveInstall dependencies:
$ brew install e2fsprogs # For format a disk image
$ brew install gpg # For verify a downloaded CoreOS imageClone the coreos-xhyve repository:
$ git clone https://github.com/coreos/coreos-xhyveFetch a CoreOS image:
$ cd coreos-xhyve
$ ./coreos-xhyve-fetchCreate a root disk and format that:
$ dd if=/dev/zero of=./xhyve.img bs=1g count=5 # Create a 5GB disk
$ $HOMEBREW_ROOT/opt/e2fsprogs/sbin/mkfs.ext4 -L ROOT xhyve.imgCreate a custom.conf like below:
$ vi custom.conf
MEMORY=2048
CHANNEL=alpha
UUID=A781EE16-5E1F-40C3-8DA4-C40E76D2E2FB # To Created by `uuidgen` command
ROOT_HDD=/absolute/path/to/your/coreos-xhyve/xhyve.img
Launch the CoreOS:
$ sudo ./coreos-xhyve-run -f custom.conf