Commit 33927d70 authored by araujo's avatar araujo
Browse files

It is an agent developed using Go that runs inside guest virtual machines

and allows host hypervisor to obtain information from guest such like
memory usage, cpu, disk and ethernet configuration.

It supports virtio-console as well as WebSocket protocol.

WWW: https://github.com/araujobsd/bhyve-vm-goagent

Sponsored by:	iXsystems, Inc.
parent 66682d8a
......@@ -194,6 +194,7 @@
SUBDIR += bennugd-core
SUBDIR += bennugd-modules
SUBDIR += bglibs
SUBDIR += bhyve-vm-goagent
SUBDIR += bicyclerepair
SUBDIR += bin86
SUBDIR += bingrep
......
# $FreeBSD$
PORTNAME= bhyve-vm-goagent
PORTVERSION= 1.0
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= araujo@FreeBSD.org
COMMENT= Agent developed in Go that runs inside guest vm
LICENSE= BSD2CLAUSE
ONLY_FOR_ARCHS= amd64 i386
USES= go
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
USE_GITHUB= yes
GH_ACCOUNT= araujobsd
GH_TAGNAME= a640870c90752e01af30e394ce7c8157f4371a1b
GH_TUPLE= gorilla:websocket:v1.2.0:websocket/src/github.com/gorilla/websocket \
shirou:gopsutil:v2.17.12:gopsutil/src/github.com/shirou/gopsutil
MAKE_ENV= GOPATH=${WRKSRC} GOROOT=${LOCALBASE}/go
PLIST_FILES= sbin/bhyve-vm-goagent
do-build:
cd ${WRKSRC} ; make deps ; make build
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-freebsd-${ARCH}-1.0-RELEASE \
${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
.include <bsd.port.mk>
TIMESTAMP = 1517232923
SHA256 (araujobsd-bhyve-vm-goagent-v1.0-a640870c90752e01af30e394ce7c8157f4371a1b_GH0.tar.gz) = 71ff3e116f6a4298ec683154b6deadad22d0bc7e1e9541c2f765991714d7ba15
SIZE (araujobsd-bhyve-vm-goagent-v1.0-a640870c90752e01af30e394ce7c8157f4371a1b_GH0.tar.gz) = 7262
SHA256 (gorilla-websocket-v1.2.0_GH0.tar.gz) = 04d1c4fa839a01d32d3c8c558370a964d83b5c980f74c4b965f3dd04f8cb9276
SIZE (gorilla-websocket-v1.2.0_GH0.tar.gz) = 42984
SHA256 (shirou-gopsutil-v2.17.12_GH0.tar.gz) = 0abdee29c3c70d9860d8177e70b9bbb0651af4e48b03cfbb36bdf53300fa7268
SIZE (shirou-gopsutil-v2.17.12_GH0.tar.gz) = 107887
--- Makefile.orig 2018-01-29 12:30:37 UTC
+++ Makefile
@@ -1,6 +1,6 @@
GO ?= go
TARGET := bhyve-vm-goagent
-OS := freebsd netbsd linux windows
+OS := freebsd
ARCH := 386 amd64
VERSION := `grep \"VERSION\" main.go | cut -d '"' -f 2 | head -1`
@@ -9,10 +9,8 @@ all: build
deps:
@echo "===> Downloading crossbuild dependencies."
go get github.com/gorilla/websocket
- go get github.com/shirou/w32
- go get github.com/StackExchange/wmi
- go get github.com/go-ole/go-ole
- go get github.com/go-ole/go-ole/oleutil
+ go get github.com/araujobsd/bhyve-vm-goagent/plugins
+ go get github.com/araujobsd/bhyve-vm-goagent/termios
build:
@for os in $(OS); do \
It is an agent developed using Go that runs inside guest virtual machines
and allows host hypervisor to obtain information from guest such like
memory usage, cpu, disk and ethernet configuration.
It supports virtio-console as well as WebSocket protocol.
WWW: https://github.com/araujobsd/bhyve-vm-goagent
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment