Set up bhyve for mrmanager.
This commit is contained in:
parent
e49d008d57
commit
354c6b84ab
@ -23,8 +23,7 @@ jail_list:
|
|||||||
enabled: true
|
enabled: true
|
||||||
conf:
|
conf:
|
||||||
src: nat_dhcp
|
src: nat_dhcp
|
||||||
# bhyve_dataset: zroot/freebsd/release/vm
|
bhyve_dataset: zdata/vm
|
||||||
# bhyve_list: []
|
bhyve_canmount: "on"
|
||||||
# bhyve_canmount: "on"
|
|
||||||
# efi_dev: /dev/gpt/EFI
|
# efi_dev: /dev/gpt/EFI
|
||||||
devfs_rules: "mrmanager_devfs.rules"
|
devfs_rules: "mrmanager_devfs.rules"
|
||||||
|
1
ansible/environments/jail/host_vars/mrmanager_nat_dhcp
Normal file
1
ansible/environments/jail/host_vars/mrmanager_nat_dhcp
Normal file
@ -0,0 +1 @@
|
|||||||
|
os_flavor: "freebsd"
|
@ -15,6 +15,12 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
# Enable Sound
|
# Enable Sound
|
||||||
# bhyve_options="-s 16,hda,play=/dev/dsp,rec=/dev/dsp"
|
# bhyve_options="-s 16,hda,play=/dev/dsp,rec=/dev/dsp"
|
||||||
|
|
||||||
|
# Example usage:
|
||||||
|
#
|
||||||
|
# doas bhyve_netgraph_bridge create-disk zdata/vm/poudriere /vm/poudriere 10
|
||||||
|
# doas bhyve_netgraph_bridge start poudriere zdata/vm/poudriere /vm/poudriere jail_nat 10.215.1.1/24 /vm/iso/FreeBSD-13.2-RELEASE-amd64-bootonly.iso
|
||||||
|
# doas bhyve_netgraph_bridge start poudriere zdata/vm/poudriere /vm/poudriere jail_nat 10.215.1.1/24
|
||||||
|
|
||||||
function main {
|
function main {
|
||||||
if [ "$1" = "create-disk" ]; then
|
if [ "$1" = "create-disk" ]; then
|
||||||
shift 1
|
shift 1
|
||||||
|
@ -31,18 +31,3 @@
|
|||||||
mountpoint: "{{ bhyve_mountpoint }}"
|
mountpoint: "{{ bhyve_mountpoint }}"
|
||||||
canmount: "{{ bhyve_canmount|default('noauto') }}"
|
canmount: "{{ bhyve_canmount|default('noauto') }}"
|
||||||
"ta:bemount": "{{ bhyve_bemount|default('on') }}"
|
"ta:bemount": "{{ bhyve_bemount|default('on') }}"
|
||||||
|
|
||||||
- name: Enable bhyve
|
|
||||||
community.general.sysrc:
|
|
||||||
name: "{{ item.name }}"
|
|
||||||
value: "{{ item.value }}"
|
|
||||||
path: /etc/rc.conf.d/vm
|
|
||||||
loop:
|
|
||||||
- name: vm_enable
|
|
||||||
value: "YES"
|
|
||||||
- name: vm_dir
|
|
||||||
value: "zfs:{{ bhyve_dataset }}"
|
|
||||||
- name: vm_list
|
|
||||||
value: "{{ bhyve_list|community.general.json_query('[?enabled==`true`].name')|join(' ') }}"
|
|
||||||
- name: vm_delay
|
|
||||||
value: "5"
|
|
||||||
|
@ -23,6 +23,11 @@
|
|||||||
// unifi controller
|
// unifi controller
|
||||||
"hw-address": "06:40:9f:d7:be:a6",
|
"hw-address": "06:40:9f:d7:be:a6",
|
||||||
"ip-address": "10.215.1.202"
|
"ip-address": "10.215.1.202"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// poudriere
|
||||||
|
"hw-address": "06:8f:24:d6:21:24",
|
||||||
|
"ip-address": "10.215.1.203"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user