FreeBSD Bugzilla – Attachment 147681 Details for
Bug 182209
[new port] emulators/hyperv-ic: Ports containing Hyper-V integration components for FreeBSD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
hyperv.shar
hyperv.shar (text/plain), 16.58 KB, created by
Kylie
on 2014-09-26 01:13:01 UTC
(
hide
)
Description:
hyperv.shar
Filename:
MIME Type:
Creator:
Kylie
Created:
2014-09-26 01:13:01 UTC
Size:
16.58 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># hyperv-is ># hyperv-is/pkg-install ># hyperv-is/pkg-descr ># hyperv-is/pkg-plist ># hyperv-is/distinfo ># hyperv-is/Makefile ># hyperv-is/files ># hyperv-is/files/patch-pkg-plist ># hyperv-is/files/patch-pkg-descr ># hyperv-is/files/patch-pkg-message ># hyperv-is/pkg-message ># >echo c - hyperv-is >mkdir -p hyperv-is > /dev/null 2>&1 >echo x - hyperv-is/pkg-install >sed 's/^X//' >hyperv-is/pkg-install << '3c520b87be02d411e687c6851c9f02c3' >X#!/bin/sh >X# >X# make install or pkg_add script >X# Checks labels/gptids for roots and swap partitions >X# adds hyperv labels in loader.conf >X# >X >X#Check poudriere workdirs >XPOD_WRK_HOME=/wrkdirs >Xif [ ! -d ${POD_WRK_HOME} ]; then >X POD_WRK_HOME=/ >Xfi >X >XWRKDIRS=${POD_WRK_HOME}$(pwd |awk '{print $1}')/work/stage >Xif [ ! -d ${WRKDIRS} ]; then >X WRKDIRS=/ >Xfi >X >Xif [ "$2" = "PRE-INSTALL" ]; then >Xecho "===> Pre-install Check" >X >X#rootfs check >Xroot_flag=$(mount | awk '/ on \/ / { print $1 }' | cut -d / -f3-) >Xif [ "$root_flag" != "" ]; then >X fs_test=$(glabel status | awk '{print $1}' | grep $root_flag) >X if [ "$fs_test" == "" ]; then >X echo " xxx rootfs Label/gptid missing in fstab" >X fi >Xelse >X echo " xxx rootfs Label/gptid missing in fstab" >Xfi >X#swap check >Xswap_flag=$(grep swap /etc/fstab | awk '{print $1}' | cut -d / -f3-) >Xif [ "$swap_flag" != "" ]; then >X sw_test=$(glabel status | awk '{print $1}' | grep $swap_flag) >X if [ "$sw_test" == "" ]; then >X echo " xxx swap Label/gptid missing in fstab" >X fi >Xelse >X echo " xxx swap Label/gptid missing in fstab " >Xfi >X >Xif [ "$fs_test" != "" -a "$sw_test" != "" ]; then >X echo "===> Labels/gptids Found" >X echo "===> Hyper-V BIS Installation Continues" >Xelse >X echo "===> Labels/gptids Not found" >X echo "===> Hyper-V BIS Installation Aborted" >X echo "===> Refer to Disk UUID section in README document" >X echo "===> Please refer the Prerequisites page and complete all steps" >X echo "WWW: https://github.com/FreeBSDonHyper-V/Hyperv-Ports/wiki/Prerequisites " >X exit -1 >Xfi >Xfi >Xexit 0 >3c520b87be02d411e687c6851c9f02c3 >echo x - hyperv-is/pkg-descr >sed 's/^X//' >hyperv-is/pkg-descr << 'f4b7e228f12133b0b028061765b6d0dd' >XNAME >X hyperv-is -- FreeBSD Integration Service on Hyper-v >X >XSYNOPSIS >X The hyperv-is provision a collection of kernel mode drivers as well as >X user-space daemons to facilitate integration with Hyper-v to provide a >X feature rich and high performance FreeBSD guest experience. >X >X >XDESCRIPTION >X The FreeBSD Integration Service on Hyper-v includes a collection of kernel >X mode drivers as well as user-space daemons to interact with the drivers >X that are required to run Hyper-V-specific devices known as FreeBSD >X Integration Services (BIS). >X It is to facilitate integration with Hyper-v to provide a feature rich >X and high performance FreeBSD guest experience. >X As of this writing, the hyperv-is ports package >X installs the following binaries: >X >X a) hv_vmbus.ko - This is a loadable kernel module that provides a high >X performance communication interface between the FreeBSD guest partition >X and the Hyper-V root partition running Windows Server software. This mod- >X ule is located under /boot/kernel/. >X >X b) hv_storvsc.ko - This is a loadable kernel module that provides FreeBSD >X guests with optimized access to physical storage devices. This module is >X located under /boot/kernel/. >X >X c) hv_netvsc.ko - This is a loadable kernel module that provides FreeBSD >X guests with optimized access to the physical network card. This module >X is located under /boot/kernel/. >X >X d) hv_utils.ko - This is a loadable kernel module that provides FreeBSD >X guests with time synchronization, heartbeat, console shutdown and key-value pair >X functionality. This module is located under /boot/kernel/. >X >X e) hv_ata_pci_disengage.ko - This is a loadable kernel module that dis- >X ables the FreeBSD native ATA driver in order to avoid conflicts with the >X hv_storvsc driver. This module is located under /boot/kernel/. >X >X f) hv_kvp_daemon - This is a user mode daemon that communicates with the >X hv_utils driver to manage user configurable metadata in the form of key >X value pairs. This daemon also allows the system administrator to read >X and set IP addresses assigned to a FreeBSD guest. The daemon utilizes the >X following collection of scripts stored under /usr/local/hyperv/scripts: >X hv_get_dhcp_info >X hv_get_dns_info >X hv_set_ifconfig >X >X The daemon is located under /usr/sbin/. The corresponding daemon script >X named hv_kvpd is present under /etc/rc.d/. >X >XPRE-REQUISITE >X Before you install hyperv-is ports, please ensure that you have added >X disk labels or UUIDs to all devices listed in fstab. >X >XSEE ALSO >X hv_vmbus(4), hv_utils(4), hv_netvsc(4), hv_storvsc(4), >X hv_ata_pci_disengage(4), hv_kvp_daemon(8) >X >XHISTORY >X Support for hyperv-is ports was first released in September 2013. The >X ports were developed through a joint effort between Citrix Inc., >X Microsoft Corp. and Network Appliance Inc.. >X >XAUTHORS >X FreeBSD support for hyperv-is was first added by Microsoft BSD >X Integration Services Team <bsdic@microsoft.com>. >f4b7e228f12133b0b028061765b6d0dd >echo x - hyperv-is/pkg-plist >sed 's/^X//' >hyperv-is/pkg-plist << 'dc3af9f4a971bdee44bd9b2f6d0c44ed' >X@cwd /boot/kernel >Xhv_ata_pci_disengage.ko >Xhv_netvsc.ko >Xhv_storvsc.ko >Xhv_utils.ko >Xhv_vmbus.ko >X@cwd /usr/local/hyperv/scripts >Xhv_get_dhcp_info >Xhv_get_dns_info >Xhv_set_ifconfig >X@cwd /etc/rc.d >Xhv_kvpd >X@cwd /usr/share/man/man1 >Xhyperv-is.1.gz >X@cwd /usr/share/man/man4 >Xhv_ata_pci_disengage.4.gz >Xhv_kvp.4.gz >Xhv_netvsc.4.gz >Xhv_storvsc.4.gz >Xhv_utils.4.gz >Xhv_vmbus.4.gz >X@cwd / >X@dirrmtry /usr/local/hyperv/scripts >X@dirrmtry /usr/local/hyperv >dc3af9f4a971bdee44bd9b2f6d0c44ed >echo x - hyperv-is/distinfo >sed 's/^X//' >hyperv-is/distinfo << '9b4f2f7673f4839a98b4e53d4eaaf56f' >XSHA256 (hyperv-is-8.4.1.1.tar.gz) = 21f21bf8192892b823a63ebcea8cfd916ab0572b965c06471388386765346ae6 >XSIZE (hyperv-is-8.4.1.1.tar.gz) = 94356 >XSHA256 (hyperv-is-9.1.1.1.tar.gz) = ab4dc50d4f66ef983bd0de96388ba95e29d1e987362336bf44e3ff971425245a >XSIZE (hyperv-is-9.1.1.1.tar.gz) = 94286 >XSHA256 (hyperv-is-9.2.1.1.tar.gz) = 75e4ed3ba0c75ce5c67efed7b4f72ada3047f4cc986659b64c14979227292fd5 >XSIZE (hyperv-is-9.2.1.1.tar.gz) = 94294 >XSHA256 (hyperv-is-9.3.1.1.tar.gz) = 10a63b7b2a7bbfd158eed3852b0c25bfba3362c3cec28dfac641e22e61b23587 >XSIZE (hyperv-is-9.3.1.1.tar.gz) = 94296 >XSHA256 (hv-kvp-1.0.tar.gz) = c2c60ae645cae75b25934aae7b18c8a29bf00660a1e4ade5d8f31bb98d7ecc78 >XSIZE (hv-kvp-1.0.tar.gz) = 30815 >9b4f2f7673f4839a98b4e53d4eaaf56f >echo x - hyperv-is/Makefile >sed 's/^X//' >hyperv-is/Makefile << '4e23e705ff6899a9f5d3177d806a802e' >X# $FreeBSD$ >XPORTNAME= hyperv-is >XPORTVERSION= 1.1 >XCATEGORIES= kld >XMASTER_SITES= https://github.com/FreeBSDonHyper-V/Hyperv-Ports/raw/hyperv-is-master/BIS-${PORTVERSION}/FreeBSD-${OSREL}/ports/ >XMAINTAINER= bsdic@microsoft.com >XCOMMENT= FreeBSD Integration Service on Hyper-v >X >XONLY_FOR_ARCHS= amd64 i386 >XUSES+= uidfix >X.include <bsd.port.pre.mk> >XFILE_84= hyperv-is-8.4.${PORTVERSION}${EXTRACT_SUFX} >XFILE_91= hyperv-is-9.1.${PORTVERSION}${EXTRACT_SUFX} >XFILE_92= hyperv-is-9.2.${PORTVERSION}${EXTRACT_SUFX} >XFILE_93= hyperv-is-9.3.${PORTVERSION}${EXTRACT_SUFX} >XFILE_100= hv-kvp-${PORTVERSION}${EXTRACT_SUFX} >X >X.if ${OPSYS} != FreeBSD >XIGNORE= not supported ${OPSYS} >X.endif >X >X.if ${OSREL} != "10.0" >XCC= gcc -w >X.endif >X >X.if ${OSREL} == "8.4" >XDISTFILES= ${FILE_84} >X.elif ${OSREL} == "9.1" >XDISTFILES= ${FILE_91} >X.elif ${OSREL} == "9.2" >XDISTFILES= ${FILE_92} >X.elif ${OSREL} == "9.3" >XDISTFILES= ${FILE_93} >X.elif ${OSREL} == "10.0" >XPORTNAME= hv-kvp >XPORTVERSION= 1.0 >XDISTFILES= ${FILE_100} >X.else >XIGNORE= not supported $${OSREL} (${OSREL}) >X.endif >X >XLISTPATCH= ${PATCHDIR}/patch-pkg-plist >XDESCRPATCH= ${PATCHDIR}/patch-pkg-descr >XMESSAGEPATCH= ${PATCHDIR}/patch-pkg-message >X >Xdo-patch: >X @if ([ ${OSREL} = "10.0" ] && [ ! -f ${PATCHDIR}/havepatched ] ); then \ >X ${TOUCH} ${PATCHDIR}/havepatched; \ >X ${PATCH} ${PLIST} ${LISTPATCH}; \ >X ${PATCH} ${PKGMESSAGE} ${MESSAGEPATCH}; \ >X ${PATCH} ${DESCR} ${DESCRPATCH}; \ >X ${RM} ${PKGINSTALL}; \ >X ${RM} *.orig; \ >X fi >X >Xpost-extract: >X @${MKDIR} ${STAGEDIR}/boot >X @${MKDIR} ${STAGEDIR}/boot/kernel >X @${MKDIR} ${STAGEDIR}/etc/ && ${MKDIR} ${STAGEDIR}/etc/rc.d >X @${MKDIR} ${STAGEDIR}/usr/share && ${MKDIR} ${STAGEDIR}/usr/share/man >X @${MKDIR} ${STAGEDIR}/usr/share/man/man1 && ${MKDIR} ${STAGEDIR}/usr/share/man/man4 && ${MKDIR} ${STAGEDIR}/usr/share/man/man8 >X @${MKDIR} ${STAGEDIR}/usr/local/hyperv && ${MKDIR} ${STAGEDIR}/usr/local/hyperv/scripts >X @${MKDIR} ${STAGEDIR}/usr/sbin >X >Xpost-install: >X @${RM} ${STAGEDIR}/boot/kernel/linker.hints >X >X.include <bsd.port.post.mk> >4e23e705ff6899a9f5d3177d806a802e >echo c - hyperv-is/files >mkdir -p hyperv-is/files > /dev/null 2>&1 >echo x - hyperv-is/files/patch-pkg-plist >sed 's/^X//' >hyperv-is/files/patch-pkg-plist << '425fa0f890ca3ee8adbf4e0f24dac5b0' >X1,6c1,2 >X< @cwd /boot/kernel >X< hv_ata_pci_disengage.ko >X< hv_netvsc.ko >X< hv_storvsc.ko >X< hv_utils.ko >X< hv_vmbus.ko >X--- >X> @cwd /boot/kernel >X> hv_kvp.ko >X13,14c9,10 >X< @cwd /usr/share/man/man1 >X< hyperv-is.1.gz >X--- >X> @cwd /usr/sbin >X> hv_kvp_daemon >X16d11 >X< hv_ata_pci_disengage.4.gz >X18,24c13,17 >X< hv_netvsc.4.gz >X< hv_storvsc.4.gz >X< hv_utils.4.gz >X< hv_vmbus.4.gz >X< @cwd / >X< @dirrmtry /usr/local/hyperv/scripts >X< @dirrmtry /usr/local/hyperv >X--- >X> @cwd /usr/share/man/man8 >X> hv_kvp_daemon.8.gz >X> @cwd /usr/local >X> @dirrmtry hyperv/scripts >X> @dirrmtry hyperv >425fa0f890ca3ee8adbf4e0f24dac5b0 >echo x - hyperv-is/files/patch-pkg-descr >sed 's/^X//' >hyperv-is/files/patch-pkg-descr << '76f1cb772ec1934dfb0c07d663dcbe1e' >X2c2 >X< hyperv-is -- FreeBSD Integration Service on Hyper-v >X--- >X> hv-kvp -- Hyper-V KVP Integration Components >X5,7c5,6 >X< The hyperv-is provision a collection of kernel mode drivers as well as >X< user-space daemons to facilitate integration with Hyper-v to provide a >X< feature rich and high performance FreeBSD guest experience. >X--- >X> The hv-kvp provision a collection of kernel mode drivers and services >X> that enhance FreeBSD guest experience on Hyper-V. >X11,17c10,12 >X< The FreeBSD Integration Service on Hyper-v includes a collection of kernel >X< mode drivers as well as user-space daemons to interact with the drivers >X< that are required to run Hyper-V-specific devices known as FreeBSD >X< Integration Services (BIS). >X< It is to facilitate integration with Hyper-v to provide a feature rich >X< and high performance FreeBSD guest experience. >X< As of this writing, the hyperv-is ports package >X--- >X> The Hyper-V Integration Components include drivers and services that >X> improve functionality and performance of a FreeBSD guest operating system >X> running on Hyper-V. As of this writing, the hv-kvp ports package >X20,34c15,16 >X< a) hv_vmbus.ko - This is a loadable kernel module that provides a high >X< performance communication interface between the FreeBSD guest partition >X< and the Hyper-V root partition running Windows Server software. This mod- >X< ule is located under /boot/kernel/. >X< >X< b) hv_storvsc.ko - This is a loadable kernel module that provides FreeBSD >X< guests with optimized access to physical storage devices. This module is >X< located under /boot/kernel/. >X< >X< c) hv_netvsc.ko - This is a loadable kernel module that provides FreeBSD >X< guests with optimized access to the physical network card. This module >X< is located under /boot/kernel/. >X< >X< d) hv_utils.ko - This is a loadable kernel module that provides FreeBSD >X< guests with time synchronization, heartbeat, console shutdown and key-value pair >X--- >X> a) hv_utils.ko - This is a loadable kernel module that provides FreeBSD >X> guests with timekeeping, heartbeat, console shutdown and key-value pair >X37,41c19 >X< e) hv_ata_pci_disengage.ko - This is a loadable kernel module that dis- >X< ables the FreeBSD native ATA driver in order to avoid conflicts with the >X< hv_storvsc driver. This module is located under /boot/kernel/. >X< >X< f) hv_kvp_daemon - This is a user mode daemon that communicates with the >X--- >X> b) hv_kvp_daemon - This is a user mode daemon that communicates with the >X54c32 >X< Before you install hyperv-is ports, please ensure that you have added >X--- >X> Before you install hv-kvp ports, please ensure that you have added >X58,59c36 >X< hv_vmbus(4), hv_utils(4), hv_netvsc(4), hv_storvsc(4), >X< hv_ata_pci_disengage(4), hv_kvp_daemon(8) >X--- >X> hv_kvp(4), hv_kvp_daemon(8) >X62c39 >X< Support for hyperv-is ports was first released in September 2013. The >X--- >X> Support for hv-kvp ports was first released in September 2013. The >X67c44 >X< FreeBSD support for hyperv-is was first added by Microsoft BSD >X--- >X> FreeBSD support for hv-kvp was first added by Microsoft BSD >76f1cb772ec1934dfb0c07d663dcbe1e >echo x - hyperv-is/files/patch-pkg-message >sed 's/^X//' >hyperv-is/files/patch-pkg-message << 'a62dd4d9d4cef8d0647aeb66946620bb' >X1,9c1,5 >X< ########################################################################################################## >X< After installing do the following steps: >X< # Deleting Hyper-v BIS driver names >X< sed -i "" '/Loader labels for Hyper-v BIS driver/d' /boot/loader.conf >X< sed -i "" '/hv_vmbus_load/d' /boot/loader.conf >X< sed -i "" '/hv_utils_load/d' /boot/loader.conf >X< sed -i "" '/hv_storvsc_load/d' /boot/loader.conf >X< sed -i "" '/hv_netvsc_load/d' /boot/loader.conf >X< sed -i "" '/hv_ata_pci_disengage_load/d' /boot/loader.conf >X--- >X> ############################################################################################ >X> To enable hv_kvp, you should do the steps following: >X> # Deleting kvp label >X> sed -i "" '/Loader labels for Hyper-V KVP drivers/d' /etc/rc.conf >X> sed -i "" '/hv_kvp_load/d' /etc/rc.conf >X11,19c7,17 >X< #Hyper-v driver names >X< echo "# Loader labels for Hyper-v BIS drivers -do not modify" >> /boot/loader.conf >X< echo 'hv_vmbus_load="YES"' >> /boot/loader.conf >X< echo 'hv_utils_load="YES"' >> /boot/loader.conf >X< echo 'hv_storvsc_load="YES"' >> /boot/loader.conf >X< echo 'hv_netvsc_load="YES"' >> /boot/loader.conf >X< echo 'hv_ata_pci_disengage_load="YES"' >>/boot/loader.conf >X< When deinstalled, restore /boot/loader.conf and /etc/rc.conf >X< ########################################################################################################## >X--- >X> #hyperv driver names >X> echo '# Loader labels for Hyper-V KVP drivers -do not modify' >> /boot/loader.conf >X> echo 'hv_kvp_load="YES"' >> /boot/loader.conf >X> >X> # KVP - daemon label >X> sed -i "" '/Label for KVP daemon/d' /etc/rc.conf >X> sed -i "" '/hv_kvp_daemon_enable/d' /etc/rc.conf >X> echo '# Label for KVP daemon -do not modify' >> /etc/rc.conf >X> echo 'hv_kvp_daemon_enable="YES"' >> /etc/rc.conf >X> After deinstall, you should restore /boot/loader.conf and /etc/rc.conf >X> ############################################################################################# >a62dd4d9d4cef8d0647aeb66946620bb >echo x - hyperv-is/pkg-message >sed 's/^X//' >hyperv-is/pkg-message << '63135bcd5f939c71e7d1351ee1f97785' >X########################################################################################################## >XAfter installing do the following steps: >X# Deleting Hyper-v BIS driver names >X sed -i "" '/Loader labels for Hyper-v BIS driver/d' /boot/loader.conf >X sed -i "" '/hv_vmbus_load/d' /boot/loader.conf >X sed -i "" '/hv_utils_load/d' /boot/loader.conf >X sed -i "" '/hv_storvsc_load/d' /boot/loader.conf >X sed -i "" '/hv_netvsc_load/d' /boot/loader.conf >X sed -i "" '/hv_ata_pci_disengage_load/d' /boot/loader.conf >X >X #Hyper-v driver names >X echo "# Loader labels for Hyper-v BIS drivers -do not modify" >> /boot/loader.conf >X echo 'hv_vmbus_load="YES"' >> /boot/loader.conf >X echo 'hv_utils_load="YES"' >> /boot/loader.conf >X echo 'hv_storvsc_load="YES"' >> /boot/loader.conf >X echo 'hv_netvsc_load="YES"' >> /boot/loader.conf >X echo 'hv_ata_pci_disengage_load="YES"' >>/boot/loader.conf >XWhen deinstalled, restore /boot/loader.conf >X########################################################################################################## >63135bcd5f939c71e7d1351ee1f97785 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 182209
:
136866
|
146366
|
146367
|
146369
|
146370
|
146371
|
146372
|
147366
|
147367
|
147368
|
147463
| 147681