[Midnightbsd-cvs] mports [24904] trunk/sysutils: add vm-bhyve

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Feb 2 17:45:53 EST 2019


Revision: 24904
          http://svnweb.midnightbsd.org/mports/?rev=24904
Author:   laffer1
Date:     2019-02-02 17:45:53 -0500 (Sat, 02 Feb 2019)
Log Message:
-----------
add vm-bhyve

Modified Paths:
--------------
    trunk/sysutils/Makefile

Added Paths:
-----------
    trunk/sysutils/vm-bhyve/
    trunk/sysutils/vm-bhyve/Makefile
    trunk/sysutils/vm-bhyve/distinfo
    trunk/sysutils/vm-bhyve/files/
    trunk/sysutils/vm-bhyve/files/patch-lib_vm-util
    trunk/sysutils/vm-bhyve/files/patch-lib_vm-zfs
    trunk/sysutils/vm-bhyve/pkg-descr
    trunk/sysutils/vm-bhyve/pkg-message
    trunk/sysutils/vm-bhyve/pkg-plist

Modified: trunk/sysutils/Makefile
===================================================================
--- trunk/sysutils/Makefile	2019-02-02 22:40:55 UTC (rev 24903)
+++ trunk/sysutils/Makefile	2019-02-02 22:45:53 UTC (rev 24904)
@@ -119,6 +119,7 @@
 SUBDIR += upower
 SUBDIR += upsd
 SUBDIR += userboot-freebsd
+SUBDIR += vm-bhyve
 SUBDIR += vpnc-scripts
 SUBDIR += warden
 SUBDIR += wmbsdbatt

Added: trunk/sysutils/vm-bhyve/Makefile
===================================================================
--- trunk/sysutils/vm-bhyve/Makefile	                        (rev 0)
+++ trunk/sysutils/vm-bhyve/Makefile	2019-02-02 22:45:53 UTC (rev 24904)
@@ -0,0 +1,33 @@
+# $MidnightBSD$
+# $FreeBSD: head/sysutils/vm-bhyve/Makefile 460415 2018-01-30 16:58:14Z asomers $
+
+PORTNAME=	vm-bhyve
+PORTVERSION=	1.1.8
+DISTVERSIONPREFIX=v
+CATEGORIES=	sysutils
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Management system for bhyve virtual machines
+
+LICENSE=	bsd2
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
+
+OPTIONS_DEFINE=	EXAMPLES
+EXAMPLES_DESC=	Install example guest templates
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	churchers
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/vm ${STAGEDIR}${PREFIX}/sbin
+	${INSTALL_SCRIPT} ${WRKSRC}/rc.d/vm ${STAGEDIR}${PREFIX}/etc/rc.d
+	(cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/vm-bhyve)
+	(cd ${WRKSRC}/sample-templates/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+	${INSTALL_MAN} ${WRKSRC}/vm.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
+
+.include <bsd.port.mk>


Property changes on: trunk/sysutils/vm-bhyve/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/vm-bhyve/distinfo
===================================================================
--- trunk/sysutils/vm-bhyve/distinfo	                        (rev 0)
+++ trunk/sysutils/vm-bhyve/distinfo	2019-02-02 22:45:53 UTC (rev 24904)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1532289832
+SHA256 (vm-bhyve-v1.1.8_GH0.tar.gz) = 2c716a03a4d94d0867fd081d5dc0abc342d66a23208b606e659d10eed56c3114
+SIZE (vm-bhyve-v1.1.8_GH0.tar.gz) = 54985


Property changes on: trunk/sysutils/vm-bhyve/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/vm-bhyve/files/patch-lib_vm-util
===================================================================
--- trunk/sysutils/vm-bhyve/files/patch-lib_vm-util	                        (rev 0)
+++ trunk/sysutils/vm-bhyve/files/patch-lib_vm-util	2019-02-02 22:45:53 UTC (rev 24904)
@@ -0,0 +1,22 @@
+--- lib/vm-util.orig
++++ lib/vm-util
+@@ -55,7 +55,7 @@
+ # @modifies VM_NO_UG
+ #
+ util::check_bhyve_support(){
+-    local _mesg _result
++    local _mesg _mesg1 _mesg2 _result
+ 
+     # basic checks
+     [ `id -u` -ne 0 ] && util::err "virtual machines can only be managed by root"
+@@ -73,7 +73,9 @@
+     fi
+ 
+     # check ept for intel
+-    _mesg=$(grep -E '^[ ]+VT-x' /var/run/dmesg.boot | tail -n 1)
++    _mesg1=$(grep -E '^[ ]+VT-x' /var/run/dmesg.boot | tail -n 1)
++    _mesg2=$(grep -E '^[ ]+Secondary Processor Controls' /var/run/dmesg.boot | tail -n 1)
++    _mesg="${_mesg1}${_mesg2}"
+ 
+     if [ -n "${_mesg}" ]; then
+ 


Property changes on: trunk/sysutils/vm-bhyve/files/patch-lib_vm-util
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/vm-bhyve/files/patch-lib_vm-zfs
===================================================================
--- trunk/sysutils/vm-bhyve/files/patch-lib_vm-zfs	                        (rev 0)
+++ trunk/sysutils/vm-bhyve/files/patch-lib_vm-zfs	2019-02-02 22:45:53 UTC (rev 24904)
@@ -0,0 +1,11 @@
+--- lib/vm-zfs.orig
++++ lib/vm-zfs
+@@ -45,7 +45,7 @@
+ 
+     # check for zfs storage location
+     # user should specify "zfs:pool/dataset" if they want ZFS support
+-    if [ ${vm_dir%%:*} = "zfs" ]; then
++    if [ "${vm_dir%%:*}" = "zfs" ]; then
+ 
+         # check zfs running
+         kldstat -qm zfs >/dev/null 2>&1


Property changes on: trunk/sysutils/vm-bhyve/files/patch-lib_vm-zfs
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/vm-bhyve/pkg-descr
===================================================================
--- trunk/sysutils/vm-bhyve/pkg-descr	                        (rev 0)
+++ trunk/sysutils/vm-bhyve/pkg-descr	2019-02-02 22:45:53 UTC (rev 24904)
@@ -0,0 +1,6 @@
+A frontend for bhyve which provides the 'vm' command
+Create/start/stop virtual machines easily
+Bridged/NAT networking
+BSD/Linux/Windows guest support
+
+WWW: https://github.com/churchers/vm-bhyve


Property changes on: trunk/sysutils/vm-bhyve/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/vm-bhyve/pkg-message
===================================================================
--- trunk/sysutils/vm-bhyve/pkg-message	                        (rev 0)
+++ trunk/sysutils/vm-bhyve/pkg-message	2019-02-02 22:45:53 UTC (rev 24904)
@@ -0,0 +1,24 @@
+To enable vm-bhyve, please add the following lines to /etc/rc.conf,
+depending on whether you are using ZFS storage or not. Please note
+that the directory or dataset specified should already exist.
+
+    vm_enable="YES"
+    vm_dir="zfs:pool/dataset"
+
+OR
+
+    vm_enable="YES"
+    vm_dir="/directory/path"
+
+Then run 'vm init'.
+
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+If upgrading from 1.0 or earlier, please note that the 'guest'
+configuration option is no longer used.
+
+Guests that are not using UEFI boot will need either loader="grub"
+or loader="bhyveload" in their configuration in order to make sure
+the correct loader is used.
+
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Property changes on: trunk/sysutils/vm-bhyve/pkg-message
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/vm-bhyve/pkg-plist
===================================================================
--- trunk/sysutils/vm-bhyve/pkg-plist	                        (rev 0)
+++ trunk/sysutils/vm-bhyve/pkg-plist	2019-02-02 22:45:53 UTC (rev 24904)
@@ -0,0 +1,25 @@
+etc/rc.d/vm
+lib/vm-bhyve/vm-cmd
+lib/vm-bhyve/vm-config
+lib/vm-bhyve/vm-core
+lib/vm-bhyve/vm-datastore
+lib/vm-bhyve/vm-guest
+lib/vm-bhyve/vm-info
+lib/vm-bhyve/vm-rctl
+lib/vm-bhyve/vm-run
+lib/vm-bhyve/vm-switch
+lib/vm-bhyve/vm-util
+lib/vm-bhyve/vm-zfs
+man/man8/vm.8.gz
+sbin/vm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alpine.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/centos6.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/centos7.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/config.sample
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/debian.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/default.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/freebsd-zvol.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/netbsd.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/openbsd.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ubuntu.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/windows.conf


Property changes on: trunk/sysutils/vm-bhyve/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list