Start a bhyve role.

This commit is contained in:
Tom Alexander
2022-11-01 18:53:03 -04:00
parent 7bfc817894
commit fbfadadffc
10 changed files with 101 additions and 25 deletions

View File

@@ -0,0 +1,22 @@
#
# Create a new VM:
# vm iso 'http://mirror.clarkson.edu/archlinux/iso/2022.01.01/archlinux-2022.01.01-x86_64.iso'
# vm create -t arch -s 50G testvm
# vm install testvm 'archlinux-2022.01.01-x86_64.iso'
#
#
- name: Install packages
package:
name:
- vm-bhyve
- tmux # for interactive consoles
- bhyve-firmware # For UEFI
# - uefi-edk2-bhyve # Other UEFI firmware?
state: present
- name: Create zfs dataset
zfs:
name: "{{ bhyve_dataset }}"
state: present
extra_zfs_properties:
mountpoint: "{{ bhyve_mountpoint }}"