Merged in changes from dev, versions v0.1.2-dev through v0.1.9-dev.
Thanks to @invisnet for adding lagg to physical interfaces and the suggestion to correctly handle MTU on bridges.
Thanks to @3add3287 for rcboot fix.
-
ENH: Add property 'bhyve_disk_type' to control disk attachment method between
virtio-blkandahci-hd. e7266ea- Increments
chyves_guest_versionto 0300. - Merged with
dataset_versionto 0005 changes.
- Increments
-
ENH: Ability to include additional
bhyveloadflags when starting FreeBSD guests. 587eaae- This was added after reading an article by @michaeldexter.
- Increments
chyves_guest_versionto 0202. - Increments
dataset_versionto 0005.
-
ENH: Added ability to attach 32 disks to a single AHCI controller per PCI slot on FreeBSD 10 and 11 due to MFCs.
-
ENH: Indicate default bridge for
chyves list bridges. 4b67678 -
Moved clone handling in
__parse_cmd_ingress29d1fd1- In the future, when cloning a guest, a snapshot will be able to be specified. This is the first step by removing it from the
caseswitch.
- In the future, when cloning a guest, a snapshot will be able to be specified. This is the first step by removing it from the
-
Enhancements and fixes for
chyves info. -
Changed version nomenclature to 9 major versions rather than 999. 116b1b5
-
Add CoreOS as a
grub-bhyvepreconfigured OS. 562f9c5- Thanks to @olgeni for his PR to vm-bhyve.
-
ENH: Give host version information for
chyves version. 96c6c08 -
ENH: Allow Intel e1000 emulation on FreeBSD 10 and 11 due to MFCs. b8260e2, d356178, 7886c65
-
DOC: Minor changes to README.md 855a208
-
DOC: Minor change to code comments in
__start. fd9b0c1 -
FIX: Reworked
_FREEBSD_NET_DRIVERS_GREP_STRINGstring again to remove wireless devices and add a few missing drivers. c582b59 -
FIX: Add parameter number check for
chyves dev. b8d6ed0 -
FIX: Added handling of MTU for network bridges. 536dd8b
-
Merged in fix from @invisnet to add
laggto physical interfaces. 28f05f3 -
FIX: Update reference to old variable name in
__generate_bhyve_net_string. 10648b6 -
FIX: Issue when rebooting guest's using
revert_to_snapshotoreject_iso_on_n_reboot. 2e11c22 -
FIX: Issue where
eject_iso_on_n_reboot=0 would eject before first start. d5ba410 -
FIX: Issue when deleting guest when
network_design_modeis set to 'system'.6a546c9 -
FIX: Add ability to change
net_ifaceswhen network design mode is set to 'system'. 8c709e4 -
DOC: Changed log comments for number of reboots. db6a6ba
-
Fixed issues with
chyves <guest> console vncnot working due to inverse matches. 7924a5e -
Minor changes to documents. 1464736, 1a3b287, 7d3043a, 3aad0d6, and 756cd7a.
-
Added check in guest rename to see if guest is running. The dataset needs to be renamed and the zvol can not be in use. b32d92e
-
Fixed issue with
chyves upgradewhere it would perpetually claim it was out of date. aa317d2 -
Fixed reference to old variable name in
__generate_grub_bhyve_command. 082b570 -
Removed references to stop and start VM to remove optical media from VM in man page examples. 0b3691f
-
Merged in fix for '
rcboot' from @3add3287 when only one guest exists on system. 6a7c8a2 -
FIX: Typos in previous CHANGELOG.md entry. a6807ac
-
FIX: Do not run check for new chyves version when not installed yet. 87c081f
-
FIX: Create new 'uefi_vnc_port' when cloning guest with unique properties. 94e21f0
-
FIX: Error when displaying
$_NEXT_serialin__clone_guest. 1b4e619 -
FIX: Reference to old variable names in
__generate_grub_bhyve_command. 3ffa905 -
FIX: Setting COMPILER_TYPE on FreeNAS required for
make installinMakefile. a3701ad -
FIX: Issue when specifying a branch in 'chyves upgrade'. 15cd40f
-
FIX: FreeNAS handling of root directory via symbolic links. 77cf6f8
Documentation changes.
-
DOC: Address VGA/GPU passthrough in man page. be3ba7c
-
DOC: Included RAM parameters for guest examples which require more than 256M of RAM. 0dd18aa
- As suggested by /u/sirdond.
-
DOC: Included a generic Windows guest example in the man page. 485265d
-
DOC: Updated Intel e1000 requirements in man page. ba949ad
- Still need to figure the OS integer to check for in the code to make this work.
-
DOC: Typo in man/chyves.8.ronn e1f985b
-
DOC: Fixed typos and links in CHANGELOG.md, TODO.md, USAGE.md. c5b9c9d
Public release
-
DOC: Update for chyves global properties for Github checker. 53527c2
-
Various minor tweaks to get the two commands below working.
-
Turned on the ability check for new versions of chyves on GitHub based on the global property 'check_for_updates'. 92881c2
-
New command
chyves upgrade [master|dev|check]to upgrade or check the latest version for the particular running branch on GitHub. 6055762
-
Allow guest property
virtio_block_options_disk{n}to beunset. 5189276 -
Consolidated
firmwareandisoon SYNOPSIS section of man page. 75ff9a8 -
Added new property
eject_iso_on_n_reboot. This is both a global and guest property. The global property is reference when the guest property is not set. This ejects the ISO resource after{n}reboots. 9d1bee9 -
Fixed error when a guest has no disks. 9682731
-
Fixed typo for diagnostic logging. cc92b00
-
Added OpenBSD 6.0 support for
grub-bhyve. 263d53c -
Fixed
grepargument in__check_for_chyves_update. bd6de40 -
Updated
__check_for_chyves_updateto use__lograther thanecho. c53e997 -
Fixed reference to old network command syntax. f6a8f0
-
Fixed issue with output when no clones exist. f6a8f06
-
Partial fixed issue when rolling back a guest snapshot that is more than 88 characters. faba5ca
-
Added 'chvyes snapshot list` command. 3a6a926
-
Added
resetto end ofconsolecommand to redraw dimensions. d04340b -
Various fixes to doc files.
-
Fixed error output when attempting to write logs to template guest. 6df1865
-
Fixed grep error output when
chyvesnot setup on system. f8c2cb3 -
Fixed bug when grabbing first disk for
bhyveload. 5bc7a75
-
Fixed issue when rolling back a snapshot on a guest with different network config. Incremented chyves guest version. 63885ed
-
ENH: Added
-no-exitflag for__verify_tap_not_in_usec1c056e -
FIX: Variable in
__verify_iface_on_guestmissing. 3f784e8 -
ENH: Split
__network_removeinto two functions. 4920c13 -
FIX: Various problems with parsing for network add and remove. 3882dbb
-
FIX: Regex too loose for
grepping for tap interface in network library. c432053 -
FIX: Refined
__parse_cmd_resources4e0c106 -
FIX: Issue when assign bridge to private role. 442fe7c
-
FIX: Error when setting default bridge. 1b04ed8
-
Fixed issue with headers for
chyves list pools76b9c83 -
Added check for running host version when using VNC console output. 662e072
-
Various changes to doc files to bring to release state.
-
Disallow changing
serialproperty on running guest. 4ef8a4a -
Properties are not recorded to the log when pulling the value from the configuration file. Also also introduces 'stdout_level' setting '4' which is non-settable and never outputs to stdoutput. 382161a
-
Fixed issue introduced by 4d60946, non-trailing denominations re-allowed. de875c3
-
Fixed edge case where a reverting start or reboot snapshot would not reload guest settings. 8cfb332
-
Moved 'start' snapshot reverting
ifstatement so that above commit was apparent what the changes were. e50eea8 -
Fixed issue where bhyve and loader command would only be recorded when the
dev_modenot set to 'off'. 87f24a0
-
Guests can now be reverted to a previous snapshot state on start, reboot, both, or not at all (default). The new properties 'revert_to_snapshot' and 'revert_to_snapshot_method' control the snapshot and the method respectively for this process. 0e7f083
-
Added limited support for raw file based images. 3c37e0a
-
Added verbosity to
chyves list propertyand now checks for two parameters. fb2eb31 -
Changed the reported size value from
usedbychildrentousedforchyves info -z. 0e9dca2 -
Allow trailing 'b' for size denominations. 4d60946
-
Support for 32 AHCI hard drive devices on a single PCI slot for hosts running 12-CURRENT. d9f769f
-
Set defaults based on host OS version for 'bargs', use '-S' flag on 10.3+. 60d6d15
-
Minor revisions in
__generate_bhyve_slot_string(). e98e7a3 -
Added new function
__stop_guest_loader()to stop a hung loader process on guest boot and forchyves <guest> stop. ed324bb -
Newer chyves guest version are not allowed to start on older versions. This is preventative for the future. 2b8fce5
-
Added
make whatdirective to show what commands were available. a66943a -
Fixed missing disk sub-section in man page. e89035c
-
Finished commit to using keyword 'properties' rather than 'parameters' for guests qualities. b111b03
-
Finished commit for consolidate disk note/desc in synopsis. b111b03
-
Null value can now be set for
default_info_flagsanddefault_list_flags. 79a641a -
Created new command
chyves <guest>|MG|all unset <pcidev_{n}>to unset a property on a guest. 260f4ae -
Minor speed improvement from loading order in
__add_guest_disk(). acba72d
-
Fixed issue with
bhyvestring for VNC frame buffer. a0d68d7 -
Merged fix for incorrect UEFI firmware path when starting guest. Thanks to Andrew D.. bb60b4b
-
Fixed issue with when deleting guest. 8387e7e
-
Committed to using keyword 'properties' rather than 'parameters' for guests qualities. aae3376
-
Fixed issue for
chyves infowith diskless guests. 9baf434 -
Consolidate disk note/desc in synopsis. a7d21a4
-
Fixed issue referencing renamed functioned. 404e9dd
-
Added check for existence of local file when importing. 9680c23
Fix.
- Typo caught by /u/Open_Systems,
rcvar!=sysrc. 4a47aaf
Docs and minor fixes.
-
Converted to using Ruby gem:
ronnfor the man page fromtxt2man. See issue #1 for details. ed90a46 -
Utilized the 'LINK INDEXES' function of
ronnto link to external man pages (FreeBSD specifically). 0da85ca -
Minor changes to
chyves <guest> upgrade. This should have been committed in version 0.0.5 but there is no ill effects. Runningchyves <guest> upgradeor waiting until the next dataset increment will resolve the issue. 7c338dd -
Refreshed docs: README.md 756193d, MAN PAGE files 4589d5a, and USAGE.md 28f5aa0.
-
Refreshed table of contents in sbin/chyves. 5cf15a7
-
Other minor fixes.
Enhancements and fixes.
-
Added e1000 emulation possibility for tap interfaces on 12-CURRENT hosts. 4039608
-
Added 'keepnet' keyword for
chyves <guest> delete keepnet, which keeps network associations when deleting guests. a787daf -
Added 'system' network design handling mode, draft quality. 2737704
-
Added
chyves dataset <pool> upgradeas an upgrade mechanism. 31500b9 -
Fixed edge case when cloning templates. 34c374b
-
Fixed typos and minor code cleanup, various commits.
-
Fixed issue when setting bridge to private mode and physical/vlan interfaces were on bridge. Added function
__network_privatefor expanded functionality. 3939444 -
Added keyword 'all' for
chyves <guest> set <property>=<value>, so nowchyves all set <property>=<value>now works too. 9d0e05b
@croquagei feedback fixes.
-
Fixed issue when renaming ISO or firmware resources.ed94890
-
Fixed syntax in man page for starting guests. 1040c1b
First private release. Shared with @croquagei for testing.
- Fixed minor issue with
__generate_bhyve_net_string. a41906e
Internal development.
chyves is the pluralized, big endian alphabetic increment of bhyve, it manages bhyve guests using ZFS, nmdm, virtio, cu and optionally tmux and grub-bhyve through the Bourne shell.
-
Forked from
iohyveat 0.7.5 "Tennessee Cherry Moonshine Edition" release at commit 2ff5b50. -
Changed command from
iohyvetochyves. -
Changed other internal references from
iohyvetochyves. For example, the VMM names now referencechy-$guest.
-
Fixed various typos and expanded man page.
-
Created and expanded properties section. Bulk of section was moved from
setsection. -
Updated
chyves help. -
Added a nomenclature syntax map.
-
Created new folder structure and project documents.
-
The root directory of the project contains documents about the project and also the Makefile for installing from source.
-
The installed files are now in their respective places
sbin/,rc.d/, andman/. -
Created a new dataset to house all the guests under
$pool/chyves/guests/$guest. -
Changed code to correctly reference this new location, including
cutcommands. -
Created a new dataset for referencing the default values for new guests.
-
The ZFS properties contained in
$pool/chyves/guests/.defaultsreplace the old hardcoded values. -
Use
chyves set .defaultsto change from the initial values. -
Created the dataset
$pool/chyves/.configwith two ZFS user properties,chyves:pool_versionandchyves:dataset_roleas explained below. -
The
chyves:dataset_versionZFS property within$pool/chyves/.configcontains the chyves dataset version the dataset is compatible with. This will be set upon dataset creation and then updated via chyves dataset upgrade, non-contiguous updates are possible. This will be the automated process of ensuring the dataset contains the necessary properties to run correctly. This will also make future dataset changes easier to implement. This feature will make the fileUPGRADING.md` a matter of reference. There is also a check ran before anything else to ensure the dataset is upgraded, even if the only change made to the dataset structure is an increment in the version. Setup is still able to run if multiple datasets exist. This setup use-case is if you want to migrate guests from one pool to another pool that is not currently setup, limited but possible. -
The
chyves:dataset_roleZFS property within$pool/chyves/.configcontains which role the dataset is used for. The valid values areprimary,secondary, andoffline. The primary pool will always host the ISO and Firmware resources. The primary pool will also own themountpoint"/chyves". All pool that are active and not the primary are consideredsecondary. -
Using
chyves list .configwill display the current properties for all the pools and usingchyves list .config [pool]will list the properties for a single pool. -
Rewrote
chyves infoto use flags for verbosity. Seeman chyvesfor available flags orchyves info -h. -
Guests now use a specified UUID.
-
This is helpful for Windows guests to maintain licensing activation when moving guests from one host to another. However other use-cases exist.
-
A UUID is generated at guest creation by
/bin/uuidgenand stored in the ZFS property chyves:uuid -
Imported
iohyveguests will have this number generated upon import withchyves-import iohyve $guestinsysutils/chyves-utils. -
Additional kernel modules are loaded with
chyves setup kmod=1for networking taps and bridges. -
Creation of bridges and taps would fail without these modules.
-
Consolidated
list,isolist,fwlist,snaplist,taplist,activetaps, andconlistinto one function/command:chyves listwith the use of arguments. For examplechyves isolistis replaced bychyves list isoand so forth. Not to worry,chyves liststill displays the traditional output. -
Expanded
chyves list <property name>to display that property value for each guest. -
This is dynamically determined so if a user manually sets a properties with
zfsusing achyves:prefix this will display that property. -
This can be helpful in installations where custom properties are set when more information is necessary.
-
Expanded
chyves list poolsto display pool and their roles. -
Expanded
chyves list processesto display all *hyve processes or just for one guest. -
Deprecated the distinction of using
fetchandcpfor ISO and Firmware resources.- Both are handled by the same function of
import. - A regular expression is used to determine if the source starts with
httporftpand usesfetchto download the file. Otherwisecpis used.
- Both are handled by the same function of
-
Consolidated
fetchiso,cpiso,renameiso, andrmisointo one function/command:chyves isowith the use of arguments. For examplechyves fetchisois replaced bychyves iso fetchand so forth. -
Added hash check function for remotely imported ISOs.
- Before the ISO is downloaded, the user is prompted for a hash. The following hashes are supported md5, sha1, sha256, and sha512.
- After the file is downloaded the file is hashed, if the hashes match then "Hashes matched" is displayed. If the hashes do not match, the user is prompted to delete the file.
- If no hash checksum is entered, the user is heckled into feeling bad about their life choices of supporting evil.
-
Added support to for
.gzand.xzcompressed iso images for both local and remote imports.- These formats are commonly used for pfSense and FreeBSD releases respectively. Now saving bandwidth costs for the projects is even easier.
-
Consolidated
fetchfw,cpfw,renamefw, andrmfwinto one function/command:chyves firmwarewith the use of arguments. For examplechyves fetchfwis replaced bychyves firmware importand so forth. -
Changed
getcommand syntax tochyves get [property] [name]. This follows the syntax ofiocage. -
Deprecated
chyves getall [name]in favor ofchyves get all [name]. -
Added version information to
helpoutput. -
Added
make deinstalldirective toMakefilefor source installations. This removes all the installed files from the system. -
Added
make rcremovedirective toMakefilefor source installations. This removes the configuration contained in the/etc/rc.conffile using thesysrccommand. -
Added
make installrcdirective toMakefilefor source installations. This enables booting chyves guests which have a possible integer set for thercbootparameter. This adds the 'chyves_enable=YES' configuration in the/etc/rc.conffile using thesysrccommand. -
Added checks to verify pool name and guest name when supplied from command line.
-
An error message is displayed and exits when an invalid name is used.
-
Added dependencies section to
USAGE.mdto clarify the components being used inchyves. -
Added check that the necessary kernel modules are loaded or built-in before starting a guest.
-
Deprecated properties
chyves:nameandchyves:size -
Added check when starting guest to see if
grub2-bhyveis installed for guests using thegrub-bhyveloader property value. -
Added prompt when using the
chyves forcekill $guestcommand and also displays processes that will be killed. -
Added check to see if CPU has the necessary features to run
bhyve. This includesPOPCNTfor AMD and Intel CPUs. Intel CPUs also require the unrestricted guestUGfeature for allocating more than one virtual CPU to a guest and alsoUGis required for UEFI support. These restrictions are enforced bychyvesso that error messages do not spew across the screen. -
Boot priority can now be set for guests. Guests with the highest boot priority are booted first. This is set by assigning a positive integer to the "boot" property. Zero still indicates to not start the guest on host boot.
-
chyves listandchyves info -snow shows the boot priority of each guest and the bhyve PID if the guest is running. -
Changed syntax for
chyves set, the correct syntax is nowchyves set property1=value guest-name- The ability to set multiple properties is still available and the syntax is:
chyves set property1=value guest-name property2=value property3=value property4=value
- The ability to set multiple properties is still available and the syntax is:
-
Added the ability for multi-set guest support. This allows you set properties for multiple guests in one go.
- For example:
chyves set cpu=2 debian ram=4G windows cpu=4 ram=12G fw=BHYVE_UEFI_20151002.fd loader=uefi centos os=centos7- For guest:
debianthe CPU is set to "2" and RAM to "4G" - For guest:
windowsthe CPU is set to "4", RAM to "12G", firmware to "BHYVE_UEFI_20151002.fd", and loader toUEFI. - For guest:
centosthe OS is set to "centos7"
- For guest:
- For example:
-
Removed the ability to create additional guest disks on a different pool. This functionality was never implemented, impractical, is dangerous to leave. See commit 85274ad for removed code.
-
Created guest property
creationto contain the creation date and origin. This replaces the text that used to be populated indescriptionon guest. -
Added
chyves list .defaultsto display guest defaults for newly created guests. -
null.isois created and imported as an ISO resource withchyves setup <pool>on the primary pool.chyvesreferences this file when an ISO resource is not specified forchyves starton UEFI guests. -
Added multi-guest support for some sub-functions. Multi-guest support is the ability to specify multiple guests in one command. This includes
clone,get,set -
Deprecated
kmodandnetfromsetupcommand. These have been replaced by an auto loader/checker for kernel modules and there is now thechyves networkfor network related tasks. -
Deprecated
persistproperty. -
Guests now reboot properly and all other
bhyveexit codes reclaims the VMM resources. -
Deprecated
chyves scram, replaced bychyves all stop -
Rewrite of
clone. New syntax is:chyves <guest> clone <clonenames>|MG [-ce|-cu|-ie|-iu] [<pool>]. Four flags for cloning. True ZFS clone and independent clones with or without new properties. -
Renamed property
contoserial -
Rewrote disk functions now includes
chyves <guest> disk add [<size>]chyves <guest> disk disk{n} description <description>chyves <guest> disk disk{n} notes <note>chyves <guest> disk delete disk{n}chyves <guest> disk resize disk{n} <new-size>- and
chyves <guest> disk list.
-
A rewrite of the
listandinfocommands. -
No longer hard coded to use
disk0as the boot device, uses the numerically first device. -
Check ran while starting guest to see if related
grub-bhyveorbhyveloadprocess is running for guest and kills it if so. -
Renamed parameter from
fwtouefi_firmware.
-
Added function
__fault_detected_exitfunction to standardized the way to exit with a message and why the exit was necessary. -
Added functions
__verify_valid_pooland__verify_valid_guestfunctions to verify a pool and guest are valid and exit if not. -
Added function
__generate_generic_device_mapto create device map used in__load. -
Added function
__return_guest_dataset_mountpointto get the mount path of a guest. -
Added functions
__get_next_consoleand__get_next_tapto set the global variables_NEXT_tapand_NEXT_consolewith the respective next unused device. -
Added
__verify_kernel_module_loadedfunction to verify, load-l, or unload-ukernels modules. Exits when no argument is given and the module is not loaded. -
Added variable
_KERNEL_MODULESto keep track of modules to check for, load, or unload. -
Added
__verify_all_kernel_modulesfunction to check and load-lor unload-ukernel modules set in_KERNEL_MODULES. -
Added function
__resource_functionsto fetch, rename, delete, and list for Firmware and ISO resources. Also works compatiable with rename and delete for guests resources Potentially can be used for guest disk operations as well. -
This deprecates the following functions:
__fetchiso,__cpiso,__renameiso,__deleteiso,__fetchfw,__cpfw,__renamefw, and__deletefw. -
Added function
__verify_binary_availableto check if an executable is available on the system. -
Added function
__multi_chyves_zfs_propertyto get or setchyves:ZFS properties. Works with.config,.defaults, and guests.__multi_chyves_zfs_property getwill return the value of "1" for the CPU core count when theUGCPU feature is missing on Intel CPUs to be compliant.__multi_chyves_zfs_property setwill only set a value of "16" when a greater number is attempted to be set for the "cpu" guest property. This is to be compliant withbhyve's limits.
-
Names longer than 31 characters are truncated to be compliant with
bhyve's limits as the name is used as the unique identifier. -
Added function
__preflight_checkto run before any other code is to make sure the environment is safe for flight. -
Added CPU feature check in this section.
- The variable
_CPU_MISSING_UGis set to "1" when the running on an Intel CPU that lacks the unrestricted guestUGfeature is unavailable. - chyves exits if the host does not have
POPCNTfeature which is known as Extended Page Table (EPT) on Intel CPUs or Rapid Virtualization Indexing (RVI) on AMD CPUs. chyveswill only start guests with theloaderset asbhyveloadas further restriction when the CPU lacksUG.
- The variable
-
Added function
__return_cpu_section_from_dmesgto print out the CPU section from thedmesg. This is used in the__preflight_checkto determine the CPU features. -
Added variable
_GUEST_NAMES_FORBIDDEN_GREP_STRINGto prevent guests with these names from being created. -
Added function
__return_one_if_freenasto return nothing or "1" if on FreeNAS system. -
Added function
__return_guest_rcboot_priorityto display a human friendly "NO" or "YES ($boot-priority-number)" when called. -
Added function
__return_guest_bhyve_pidto display a human friendly "NO" or "YES ($bhyve-PID)" when called using the-hflag. If no flag is used then the bhyve PID is returned. -
Added function
__return_guest_vmm_allocatedto display a human friendly "NO" or "YES" when called using the-hflag. If no flag is used then a "1" is returned. -
Added function
__verify_number_of_argumentsto check the number of parameters and exits if not met or if exceeded. -
Changed parameters to be function indexed rather than script indexed.
- This limits the number of addressable parameters to nine due to the Bourne shell, which does not matter.
chyves setis the one exception, it is still script indexed.
-
Added variable
_PRIMARY_POOLto global variables instead of polling__gvset_primary_poolmore than once. -
Deprecated commands
chyves bootandchyves loadfrom users. These functions can still be called from developer mode. -
Added variable
_RESTRICT_NEW_PROPERTY_NAMESto control whether__multi_chyves_zfs_propertycan create new property names. -
Added variable
_NUMBER_OF_ALL_GUESTSto count number of guests. All guests are in the count and this is specifically used to set the properties for the first guest when_RESTRICT_NEW_PROPERTY_NAMESis set to "on". -
Added function
__load_guest_parametersto load a guest's parameters into global variables. -
Added function
__load_guest_default_parametersto load guest defaults into global variables. -
Deprecated the of using underscores for storing
bargs. -
Added variableDeprecated._NUMBER_OF_ACTIVE_POOLS. Currently used in__setwhen setting properties for.config. When only one active pool is on the system, then the multiple.configproperty can be set, otherwise the [pool] field must be used and only property can be set at a time. -
Added variables
_VERSION_BRANCH,_PROJECT_URL, and_PROJECT_URL_GITto keep track of aspect for use in__check_for_chyves_update. -
Added variables
_OS,_OS_VERSION_DATE,_OS_VERSION_FREENAS,_OS_VERSION_REL, and_OS_VERSION_REVto keep track of aspects of the host system OS. -
Added variable
_DATE_YMDto store date information for general reference in YYYYMMDD format. -
Added function
__check_for_chyves_updateto check GitHub for latest version. -
Added properties and variables
_CHECK_FOR_UPDATES,_CHECK_FOR_UPDATES_TIMEOUT_SECONDS,_CHECK_FOR_UPDATES_LAST_CHECK,_CHECK_FOR_UPDATES_LAST_CHECK_STATUS,_CHECK_FOR_UPDATES_UNIQUE_ID, and_CHECK_FOR_UPDATES_URLfor use by__check_for_chyves_update. -
Added function
__convert_list_to_grep_stringto have a raw list of anything be converted to agrep-able string. $2 is used to append an existinggrep-able list to what is converted. -
Added variable
_FREEBSD_NET_DRIVERS_GREP_STRINGto keep a string of valid FreeBSD network drivers (names of interfaces effectively) for use in the networking methods. -
Added variable
_VLAN_IFACE_BASE_NAMEto keep track of the base name used on system for vlan interfaces. Typically vlan0, vlan1, vlan2 is the standard naming nomenclature but specifying “clone_interfaces” in /etc/rc.conf you can deviate from this standard. -
Added property and variable
_TAP_UP_BY_DEFAULTto keep track of whether or not to settapinterfaces to up using thesysctl. If set to "yes", then anifstatement in__preflight_checkloads theif_tapkernel module and then sets thesysctl. -
Added
.defaultspropertybridgeand variable_GDP_bridgeto keep track of the default bridge to assign tap interfaces to. -
Created
.defaultproperties and variables to contain ZFS specific parameters for new ZFS volumes aka (disks) for guests.- Assume you have some experience with ZFS and assumes you know what you are doing.
- Properties:
disk_volmode,disk_volblocksize,disk_dedup,disk_compression,disk_primarycache, anddisk_secondarycache
-
Added function
__generate_zvol_disk_options_stringto generate the ZFS string used create ZFS volumes (disks) for guests. -
Added function
__gvset_guest_name_by_pidand variable_GUEST_name_by_pidto get the name of a guest but the process ID. This is currently used when atapinterface is locked by a process and descriptive user output is needed including the guest name that is causing the issue. -
Added function
__generate_bhyve_net_stringto dynamically generate bhyve PCI string (Eg. -s 7,virtio-net,tap{n}) for each network device. VALE devices supported (Eg. -s 7,virtio-net,vale{n}). -
Added function
__gvset_guest_poolto verify and then set "_GUEST_pool" for supplied guest. -
Added function
__get_corrected_byte_nomenclatureto verify user input, pull the size denomination, use only the first letter, and captilize that letter. Then if the number is evenly divisible by 1024, it increaeses the size denomination. -
Added function
__get_next_vnc_portto generate next unused VNC port, then assigns variable_NEXT_vnc_port. -
Added guests properties
uefi_console_output,uefi_vnc_mouse_type,uefi_vnc_ip,uefi_vnc_port,uefi_vnc_res, anduefi_vnc_pause_until_client_connectfor use with UEFI guests using VNC consoles. -
Added global property
uefi_vnc_port_start_offsetto indicate when first starting port for VNC. The default is 5900. -
Added function
__verify_iommu_capableto check if IO MMU is enabled on the system. This is more commonly known as VT-d or AMD-Vi. -
Renamed property
taptonet_ifaces -
Deprecated function
__exportguestbecause this functionality will be part ofchyves-utils. Also it did not export proper UCL format. -
Added global property
auto_load_kernel_modsto determine whether or not to load the kernel modules when starting guests, otherwise there is a check and exiting error if not loaded. Default is "yes". -
Added global property
consolidate_bhyve_pci_devicesto determine whether or not to use PCI functions for similar devices in bhyve string generation. This is needed when more than 26 PCI devices are going to be connected to a guest. -
Started using library files to break up the code for managability and also for use by other chyves projects.
- chyves-start-guest
- chyves-properties
- chyves-updates
- chyves-informational
- chyves-basics
- chyves-network
-
Renamed function
__loadto__generate_grub_bhyve_commandand rewritten -
Now only handles grub-bhyve guests, no more bhyveload.
-
Assigns global variable $_LOADER_cmd for the grub-bhyve command to use. This allows for use in a small while loop later on to be use to make sure guests reboot correctly.
-
Deprecated
installproperty. If optical media is used from the command line, it is assumed to boot from that the optical media. -
Complete rewrite of
__start. See here for commit message 595bb84. -
Added function
__generate_bhyve_slot_stringsee commit af0d3b3. Sort of replace__get_bhyve_cmdbut not really. -
Added function
__generate_bhyve_custom_pci_stringsee commit 0beb1dd. This creates PCI devices for bhyve from thepcidevproperties and then feeds to information to__generate_bhyve_slot_string. There is special handling for pass through devices. -
Added function
__generate_bhyve_disk_stringsee commit 5acfa78. This creates PCI devices for bhyve for each disk and then feeds to information to__generate_bhyve_slot_string. -
Added function
__generate_bhyve_vnc_stringto generate a PCI string for the frame buffer used for the VNC connection for UEFI guests using VNC console output. -
Deprecated function
_get_bhyve_cmdreplaced by__generate_bhyve_slot_string. -
Deprecated function
__get_zfs_pcidev_confreplaced by__generate_bhyve_custom_pci_string. -
Deprecated function
__prepare_guestby several other functions. See commit 8da6b6d. -
Deprecated functions
__boot,__install, and__uefiby completely rewritten__start. -
Massive expansion of network handling. See
lib/chyves-networkfor functions. See initial commit 89d8bba. -
Renamed
destroytoreclaimbecause while the command for bhyvectl is destroy, it conflicts with the zfs use of the word destroy and causes confusion. -
Renamed
__parse_cmdto__parse_cmd_ingress. Now input is first ingested by __parse_cmd_ingress() and then either user input is verified or passed to another _parse_cmd*() function for further ingestion. -
On top of parameter verification, user input verification is now handled at the _parse_cmd*() level. This makes calls from other functions a little faster as if a function is calling another function it should have already verified the input from the user.
-
Inverted __readonly_cmd() to __root_credentials_required().
-
Moved _verify*() functions to a library file.
-
Renamed
__stopto__stop_guest_gracefullyand moved to library filelib/chyves-guests-stop -
Renamed
__destroyto__destroy_guest_vmm_resoucesand moved to library filelib/chyves-guests-stop -
Deprecated
__forcekilland moved functionality into__destroy_guest_vmm_resouces. -
Complete rewrite of
__cloneguest -
Added function
__parse_cmd_consoleto parse user input for console sub-commands and loads nmdm kernel module. -
Added library file
lib/chyves-guest-consolewith__console_reset,__console_run,__console_tmux,__get_guest_console_pid, and__verify_console_not_in_use. -
Added function
__verify_user_input_for_propertiesto verify user input for properties. Adjusted values get set to global variable “$_ADJUSTED_value” and then replace original value in the function that called it. -
Added function
__parse_cmd_snapshotto parse user input for snapshot commands. Real big and nasty. -
Changed to using
grep -cfor counting because it does a better job thanwc -lby not having leading spaces. -
Added function
__logwhich both logs andechos the messages to the screen. There are different output levels including '0' which is effectively off. Everything gets logged on the primary pool and guest related tasks are intended to be written on the guest but this is not always the case depending on the whether the_GP_mountpointvariable is loaded. The global parametersstdout_level,log_to_file, andlog_modeare used to control the output. -
Added library file
lib/chyves-returnwith:__return_cpu_section_from_dmesg__return_guest_bhyve_pid__return_guest_bhyveload_pid__return_guest_dataset_mountpoint__return_guest_disk_list__return_guest_grub_bhyve_pid__return_guest_list__return_guest_rcboot_priority__return_guest_snapshot_list_level1__return_guest_snapshot_list_level2__return_guest_snapshot_last__return_guest_vmm_allocated__return_new_line_delimit_as_comma_string__return_new_line_delimit_as_grep_string__return_new_line_delimit_as_space_string__return_one_if_freenas__return_pools_active__return_pools_all__return_pools_offline
-
Renamed
__setupto__dataset_installas this only sets up the dataset. -
Added library file
lib/chyves-resources__guest_delete__guest_delete_backend__resource_delete__guest_rename__resource_import__resource_rename
-
Added function
__fault_detected_warning_continueto warn and 'continue'. -
Added function
__fault_detected_warning_breakto warn and 'break'.
-
Created the DEVELOPMENT.md document to give code examples, guidance, terminology, and general best practice when submitting PRs. This is to maintain a certain
-
Added
make docsdirective toMakefilein order to build man page filechyves.8and 'chyves.8.htmlfile using the Ruby toolronnfrom thechyves.8.ronn` file. -
Added
make cleandirective toMakefilein order to remove man page.gzfile. Useful before usinggit commitwhen using the directory to install and develop from. -
Standardized whitespace
-
Using spaces for code examples in Markdown documents and the
manpage. -
Using tabs is now the standard for scripts, this makes it easier to edit from a command line text editor. This is to prevent the internal conversation: "Is it two or three spaces after an
ifstatement?". The answer is it is a tab every time. -
Added "DEVELOPER MODE" changing the value of property "dev_mode" from "off" to either [on|-xvn] actives these features:
- Display the full
bhyvecommand used to start the guests just before executing the same command. This is done in__boot,__start_and__uefi. - Allow functions and commands to be called straight from the command line with
chyves dev. Examples of how this would be used:chyves dev __versionexecutes the__version()function.chyves dev __list tap activechyves dev "echo $That_tricksy_hobbit_variable"
- Using the [
-xvn] flag(s) instead of the word "on" use the Bourne shell special operation flags. The-xshows each ling before it executes. The-vflag shows each line as it executes. The-nflag reads and populates the variables but does not execute the commands.
- Display the full
< Last commit documented on this page: https://github.com/chyves/chyves/commit/7b3d2a44ada0ceb8786d6b6ddc735c7f3ccf29b7 >