diff --git a/ansible/roles/bhyve/files/arch.conf b/ansible/roles/bhyve/files/arch.conf index 1eec7e2..ec63222 100644 --- a/ansible/roles/bhyve/files/arch.conf +++ b/ansible/roles/bhyve/files/arch.conf @@ -3,14 +3,23 @@ loader="uefi" graphics="yes" xhci_mouse="yes" graphics_listen="127.0.0.1" -#graphics_listen="10.216.1.1" +# graphics_listen="10.216.1.1" graphics_res="1920x1080" -#prestart="" +# graphics_wait="yes" +# prestart="" +console="tmux" cpu=1 memory=1024M + +# Automatic switch ifconfig networking +# network0_type="virtio-net" +# network0_switch="customswitch" + +# Manually specify network device network0_type="virtio-net" -network0_switch="customswitch" +network0_device="tap0" + disk0_type="virtio-blk" disk0_name="disk0" disk0_dev="sparse-zvol" diff --git a/ansible/roles/bhyve/tasks/freebsd.yaml b/ansible/roles/bhyve/tasks/freebsd.yaml index 8f73216..1daff27 100644 --- a/ansible/roles/bhyve/tasks/freebsd.yaml +++ b/ansible/roles/bhyve/tasks/freebsd.yaml @@ -11,7 +11,6 @@ - vm-bhyve - tmux # for interactive consoles - bhyve-firmware # For UEFI - # - uefi-edk2-bhyve # Other UEFI firmware? state: present - name: Create zfs dataset @@ -34,7 +33,7 @@ - name: vm_list value: "{{ bhyve_list|community.general.json_query('[?enabled==`true`].name')|join(' ') }}" - name: vm_delay - value: "5" + value: "5" - name: init vm-bhyve command: vm init diff --git a/ansible/roles/firewall/files/odofreebsd_pf.conf b/ansible/roles/firewall/files/odofreebsd_pf.conf index a672763..f82f37e 100644 --- a/ansible/roles/firewall/files/odofreebsd_pf.conf +++ b/ansible/roles/firewall/files/odofreebsd_pf.conf @@ -41,4 +41,5 @@ pass in on $ext_if proto udp to any port $udp_pass_in pass quick on $ext_if proto udp from any port $dhcp to any port $dhcp pass in on host_uplink0 proto udp from any to any port { 53 51820 } +pass out on host_uplink0 proto tcp from any to any port 8081 pass in on host_uplink1