Remove vm-bhyve.
This commit is contained in:
parent
89b60c05e7
commit
740f2bdadd
@ -1,37 +0,0 @@
|
|||||||
# Use UEFI when booting from a disk
|
|
||||||
loader="uefi"
|
|
||||||
graphics="yes"
|
|
||||||
xhci_mouse="yes"
|
|
||||||
# graphics_listen="0.0.0.0"
|
|
||||||
graphics_listen="127.0.0.1"
|
|
||||||
# graphics_listen="10.216.1.1"
|
|
||||||
graphics_res="1920x1080"
|
|
||||||
# graphics_wait="yes"
|
|
||||||
# prestart=""
|
|
||||||
console="tmux"
|
|
||||||
|
|
||||||
cpu=1
|
|
||||||
memory=1024M
|
|
||||||
|
|
||||||
disk0_type="nvme"
|
|
||||||
disk0_name="disk0"
|
|
||||||
disk0_dev="sparse-zvol"
|
|
||||||
virt_random="yes" # virtio-rnd
|
|
||||||
|
|
||||||
# Creates a link to host_bridge1's link3 hook to the vmlink hook on a type socket
|
|
||||||
bhyve_options="-s 2:0,virtio-net,netgraph,path=bridge_jail_nat:,peerhook=link90"
|
|
||||||
|
|
||||||
# Share a host directory to the guest via 9pfs.
|
|
||||||
#
|
|
||||||
# Inside the VM run:
|
|
||||||
# mount -t virtfs -o trans=virtio sharename /some/vm/path
|
|
||||||
# mount -t 9p -o cache=mmap -o msize=512000 sharename /mnt/9p
|
|
||||||
# mount -t 9p -o trans=virtio,cache=mmap,msize=512000 sharename /path/to/mountpoint
|
|
||||||
# bhyve_options="-s 28,virtio-9p,sharename=/"
|
|
||||||
|
|
||||||
# Enable Sound
|
|
||||||
# bhyve_options="-s 16,hda,play=/dev/dsp,rec=/dev/dsp"
|
|
||||||
|
|
||||||
# Lower the priority of the VM [-20 highest, 20 only run when system idle] default: 0
|
|
||||||
#
|
|
||||||
# priority="20"
|
|
@ -4,6 +4,17 @@ set -euo pipefail
|
|||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
# Share a host directory to the guest via 9pfs.
|
||||||
|
#
|
||||||
|
# Inside the VM run:
|
||||||
|
# mount -t virtfs -o trans=virtio sharename /some/vm/path
|
||||||
|
# mount -t 9p -o cache=mmap -o msize=512000 sharename /mnt/9p
|
||||||
|
# mount -t 9p -o trans=virtio,cache=mmap,msize=512000 sharename /path/to/mountpoint
|
||||||
|
# bhyve_options="-s 28,virtio-9p,sharename=/"
|
||||||
|
|
||||||
|
# Enable Sound
|
||||||
|
# bhyve_options="-s 16,hda,play=/dev/dsp,rec=/dev/dsp"
|
||||||
|
|
||||||
function main {
|
function main {
|
||||||
if [ "$1" = "create-disk" ]; then
|
if [ "$1" = "create-disk" ]; then
|
||||||
shift 1
|
shift 1
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
- name: Install packages
|
- name: Install packages
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- vm-bhyve
|
|
||||||
- tmux # for interactive consoles
|
- tmux # for interactive consoles
|
||||||
- bhyve-firmware # For UEFI
|
- bhyve-firmware # For UEFI
|
||||||
state: present
|
state: present
|
||||||
@ -47,19 +46,3 @@
|
|||||||
value: "{{ bhyve_list|community.general.json_query('[?enabled==`true`].name')|join(' ') }}"
|
value: "{{ bhyve_list|community.general.json_query('[?enabled==`true`].name')|join(' ') }}"
|
||||||
- name: vm_delay
|
- name: vm_delay
|
||||||
value: "5"
|
value: "5"
|
||||||
|
|
||||||
- name: init vm-bhyve
|
|
||||||
command: vm init
|
|
||||||
args:
|
|
||||||
creates: "{{ bhyve_mountpoint }}/.templates"
|
|
||||||
|
|
||||||
- name: Install Configuration
|
|
||||||
copy:
|
|
||||||
src: "files/{{ item.src }}"
|
|
||||||
dest: "{{ item.dest }}"
|
|
||||||
mode: 0644
|
|
||||||
owner: root
|
|
||||||
group: wheel
|
|
||||||
loop:
|
|
||||||
- src: arch.conf
|
|
||||||
dest: "{{ bhyve_mountpoint }}/.templates/arch.conf"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user