#CLOUD_URL="https://us-sw.api.my.domain"
#CLOUD_KEY="ssh-ed25519 XXX your@comment"
# cloud CentOS 7
bhyve_vm1()
{
vm_ram="1g"
vm_cpus="1"
imgsize="6g"
vm_os_type="linux"
vm_os_profile="cloud-CentOS-7-x86_64"
interface="auto" # can be VALE, e.g: interface="vale1"
ci_fqdn="${jname}.example.com"
ci_ip4_addr=$( dhcpd ) # use CBSD 'dhcp' script to get free IP from CBSD pool
# or use static IP, e.g: ci_ip4_addr="192.168.0.50"
ci_gw4="192.168.0.50" # IPv4 gateway, can set globally via globals or ~cbsd/etc/bhyve-default-default.conf
# other bhyve-related settings:
# bhyve_vnc_tcp_bind="0.0.0.0"
# bhyve_generate_acpi="1"
# bhyve_wire_memory="1"
}
# CentOS 9
bhyve_vm2()
{
vm_ram="1g"
vm_cpus="1"
imgsize="6g"
vm_os_type="linux"
vm_os_profile="cloud-CentOS-stream-9-x86_64"
ci_fqdn="${jname}.example.com"
ci_ip4_addr=$( dhcpd ) # use CBSD 'dhcp' script to get free IP from CBSD pool
# or use static IP, e.g: ci_ip4_addr="192.168.0.50"
ci_gw4="192.168.0.50" # IPv4 gateway
}
# Debian 11
bhyve_vm3()
{
vm_ram="1g"
vm_cpus="1"
imgsize="6g"
vm_os_type="linux"
vm_os_profile="cloud-Debian-x86-11"
interface="auto" # can be VALE, e.g: interface="vale1"
ci_fqdn="${jname}.example.com"
ci_ip4_addr=$( dhcpd ) # use CBSD 'dhcp' script to get free IP from CBSD pool
# or use static IP, e.g: ci_ip4_addr="192.168.0.50"
ci_gw4="192.168.0.50" # IPv4 gateway
ci_interface_mtu="1500" # MTU
}
# Ubuntu 20
bhyve_vm4()
{
vm_ram="1g"
vm_cpus="1"
imgsize="6g"
vm_os_type="linux"
vm_os_profile="cloud-ubuntuserver-amd64-20.04"
interface="auto" # can be VALE, e.g: interface="vale1"
ci_fqdn="${jname}.example.com"
ci_ip4_addr=$( dhcpd ) # use CBSD 'dhcp' script to get free IP from CBSD pool
# or use static IP, e.g: ci_ip4_addr="192.168.0.50"
ci_gw4="192.168.0.50" # IPv4 gateway
}
# FreeBSD 13 UFS
bhyve_vm5()
{
vm_ram="1g"
vm_cpus="1"
imgsize="6g"
vm_os_type="freebsd"
vm_os_profile="cloud-FreeBSD-ufs-x64-13.1"
interface="auto" # can be VALE, e.g: interface="vale1"
ci_fqdn="${jname}.example.com"
ci_ip4_addr=$( dhcpd ) # use CBSD 'dhcp' script to get free IP from CBSD pool
# or use static IP, e.g: ci_ip4_addr="192.168.0.50"
ci_gw4="192.168.0.50" # IPv4 gateway
}