Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hooklift/xhyve
Use xhyve from Go (OS X only)
https://github.com/hooklift/xhyve
golang golang-library osx xhyve
Last synced: about 2 months ago
JSON representation
Use xhyve from Go (OS X only)
- Host: GitHub
- URL: https://github.com/hooklift/xhyve
- Owner: hooklift
- License: mpl-2.0
- Created: 2015-09-16T02:01:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-04T18:24:05.000Z (over 7 years ago)
- Last Synced: 2024-08-05T10:15:49.785Z (5 months ago)
- Topics: golang, golang-library, osx, xhyve
- Language: C
- Homepage:
- Size: 12.1 MB
- Stars: 44
- Watchers: 9
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# libxhyve (OS X only)
Go bindings to use [xhyve](https://github.com/mist64/xhyve) as a library.### Prerequisites
* OS X Yosemite and upwards
* Go 1.5.x### Install
go get github.com/hooklift/xhyve### Example
[![asciicast](https://asciinema.org/a/bkxdrtso1cod53p5qzbypm4vs.png)](https://asciinema.org/a/bkxdrtso1cod53p5qzbypm4vs)
```go
package mainimport (
"os"
"github.com/hooklift/xhyve"
)func main() {
if err := xhyve.Run(os.Args); err != nil {
panic(err)
}
}
```There is small CLI that you can use to test the library.
```bash
cd cmd/xhyve; go build
sudo ./xhyve -m 1024M -c 1 -A -s 0:0,hostbridge -s 31,lpc \
-l com1,stdio -s 2:0,virtio-net -U 6BCE442E-4359-4BD9-84F7-EDFB8EC6D2EF \
-f 'kexec,imgs/vmlinuz,imgs/initrd.gz,earlyprintk=serial console=ttyS0'
```