BHYVELOAD(8) | MidnightBSD System Manager's Manual | BHYVELOAD(8) |
bhyveload
— load a
FreeBSD guest inside a bhyve virtual
machine
bhyveload |
[-C ] [-S ]
[-c cons-dev]
[-d disk-path]
[-e name=value]
[-h host-path]
[-l os-loader]
[-m
memsize[K|k|M|m|G|g|T|t]]
vmname |
bhyveload
is used to load a
FreeBSD guest inside a
bhyve(4) virtual
machine.
bhyveload
is based on
loader(8) and will
present an interface identical to the FreeBSD loader
on the user's terminal. This behavior can be changed by specifying a
different OS loader.
The virtual machine is identified as vmname and will be created if it does not already exist.
The following options are available:
-c
cons-devbhyveload
terminal I/O.
The text string "stdio" is also accepted and selects the use of unbuffered standard I/O. This is the default value.
-d
disk-path-e
name=valueThe option may be used more than once to set more than one environment variable.
-h
host-path-l
os-loaderbhyveload
will use
/boot/userboot.so, which presents a standard
FreeBSD loader.-m
memsize[K|k|M|m|G|g|T|t]The memsize argument may be suffixed
with one of K
, M
,
G
or T
(either upper or
lower case) to indicate a multiple of Kilobytes, Megabytes, Gigabytes or
Terabytes respectively.
memsize defaults to 256M.
-C
bhyveload
dumps core. This is intended for
debugging an OS loader as it allows inspection of the guest memory.-S
To create a virtual machine named freebsd-vm that boots off the ISO image /freebsd/release.iso and has 1GB memory allocated to it:
bhyveload -m 1G -d
/freebsd/release.iso freebsd-vm
To create a virtual machine named test-vm with 256MB of memory allocated, the guest root filesystem under the host directory /user/images/test and terminal I/O sent to the nmdm(4) device /dev/nmdm1B
bhyveload -m 256MB -h
/usr/images/test -c /dev/nmdm1B test-vm
bhyveload
first appeared in
FreeBSD 10.0, and was developed at NetApp Inc.
bhyveload
was developed by
Neel Natu
<neel@FreeBSD.org> at
NetApp Inc with a lot of help from Doug Rabson
<dfr@FreeBSD.org>.
bhyveload
can only load
FreeBSD as a guest.
June 24, 2016 | midnightbsd-3.1 |