Difference between revisions of "Set up vm-bhyve in FreeBSD"
(Created page with "Category:FreeBSD == Introduction == [https://github.com/churchers/vm-bhyve vm-bhyve] is a bhyve manager for FreeBSD. == Prerequisites == Recent enough FreeBSD with ZFS...") |
(→References) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
== Install == | == Install == | ||
− | pkg install vm-bhyve | + | pkg install vm-bhyve qemu-utils cdrkit-genisoimage |
pkg install grub2-bhyve bhyve-firmware # For non-FreeBSD guests | pkg install grub2-bhyve bhyve-firmware # For non-FreeBSD guests | ||
== Configure == | == Configure == | ||
− | zfs create tank1/vm | + | === Configure Install === |
+ | |||
+ | zfs create -o mountpoint=/vm tank1/vm | ||
+ | cp /usr/local/share/examples/vm-bhyve/* /vm/.templates/ | ||
Add to rc.conf: | Add to rc.conf: | ||
Line 22: | Line 25: | ||
vm_enable="YES" | vm_enable="YES" | ||
vm_dir="zfs:tank1/vm"0" | vm_dir="zfs:tank1/vm"0" | ||
+ | |||
+ | Then run: | ||
+ | |||
+ | vm init | ||
+ | |||
+ | === Configure networking === | ||
+ | |||
+ | vm switch create public | ||
+ | vm switch add public bge0 | ||
+ | |||
+ | == See also == | ||
+ | |||
+ | * [[Set up iohyve in FreeBSD]] | ||
== References == | == References == |
Latest revision as of 16:03, 19 November 2019
Contents
Introduction
vm-bhyve is a bhyve manager for FreeBSD.
Prerequisites
Recent enough FreeBSD with ZFS. All commands below run as root.
Install
pkg install vm-bhyve qemu-utils cdrkit-genisoimage pkg install grub2-bhyve bhyve-firmware # For non-FreeBSD guests
Configure
Configure Install
zfs create -o mountpoint=/vm tank1/vm cp /usr/local/share/examples/vm-bhyve/* /vm/.templates/
Add to rc.conf:
vm_enable="YES" vm_dir="zfs:tank1/vm"0"
Then run:
vm init
Configure networking
vm switch create public vm switch add public bge0