1*200758f1SNeel Natu\" 283994ddcSNeel Natu.\" Copyright (c) 2012 NetApp Inc 383994ddcSNeel Natu.\" All rights reserved. 483994ddcSNeel Natu.\" 583994ddcSNeel Natu.\" Redistribution and use in source and binary forms, with or without 683994ddcSNeel Natu.\" modification, are permitted provided that the following conditions 783994ddcSNeel Natu.\" are met: 883994ddcSNeel Natu.\" 1. Redistributions of source code must retain the above copyright 983994ddcSNeel Natu.\" notice, this list of conditions and the following disclaimer. 1083994ddcSNeel Natu.\" 2. Redistributions in binary form must reproduce the above copyright 1183994ddcSNeel Natu.\" notice, this list of conditions and the following disclaimer in the 1283994ddcSNeel Natu.\" documentation and/or other materials provided with the distribution. 1383994ddcSNeel Natu.\" 1483994ddcSNeel Natu.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1583994ddcSNeel Natu.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1683994ddcSNeel Natu.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1783994ddcSNeel Natu.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1883994ddcSNeel Natu.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1983994ddcSNeel Natu.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2083994ddcSNeel Natu.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2183994ddcSNeel Natu.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2283994ddcSNeel Natu.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2383994ddcSNeel Natu.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2483994ddcSNeel Natu.\" SUCH DAMAGE. 2583994ddcSNeel Natu.\" 2683994ddcSNeel Natu.\" $FreeBSD$ 2783994ddcSNeel Natu.\" 2883994ddcSNeel Natu.Dd January 7, 2012 2983994ddcSNeel Natu.Dt BHYVELOAD 8 3083994ddcSNeel Natu.Os 3183994ddcSNeel Natu.Sh NAME 3283994ddcSNeel Natu.Nm bhyveload 3383994ddcSNeel Natu.Nd load a 3483994ddcSNeel Natu.Fx 3583994ddcSNeel Natuguest inside a bhyve virtual machine 3683994ddcSNeel Natu.Sh SYNOPSIS 3783994ddcSNeel Natu.Nm 38b060ba50SNeel Natu.Op Fl m Ar mem-size 3983994ddcSNeel Natu.Op Fl d Ar disk-path 4083994ddcSNeel Natu.Op Fl h Ar host-path 4183994ddcSNeel Natu.Ar vmname 4283994ddcSNeel Natu.Sh DESCRIPTION 4383994ddcSNeel Natu.Nm 4483994ddcSNeel Natuis used to load a 4583994ddcSNeel Natu.Fx 4683994ddcSNeel Natuguest inside a 4783994ddcSNeel Natu.Xr bhyve 4 4883994ddcSNeel Natuvirtual machine. 4983994ddcSNeel Natu.Pp 5083994ddcSNeel Natu.Nm 5183994ddcSNeel Natuis based on 5283994ddcSNeel Natu.Xr loader 8 53edccda4dSJoel Dahland will present an interface identical to the 5483994ddcSNeel Natu.Fx 5583994ddcSNeel Natuloader on the user's terminal. 5683994ddcSNeel Natu.Pp 5783994ddcSNeel NatuThe virtual machine is identified as 5883994ddcSNeel Natu.Ar vmname 5983994ddcSNeel Natuand will be created if it does not already exist. 6083994ddcSNeel Natu.Sh OPTIONS 6183994ddcSNeel NatuThe following options are available: 6283994ddcSNeel Natu.Bl -tag -width indent 63*200758f1SNeel Natu.It Fl m Ar mem-size Xo 64*200758f1SNeel Natu.Sm off 65*200758f1SNeel Natu.Op Cm K | k | M | m | G | g | T | t 66*200758f1SNeel Natu.Xc 67*200758f1SNeel Natu.Sm on 68b060ba50SNeel Natu.Ar mem-size 69*200758f1SNeel Natuis the amount of memory allocated to the guest. 70*200758f1SNeel Natu.Pp 71*200758f1SNeel NatuThe 72*200758f1SNeel Natu.Ar mem-size 73*200758f1SNeel Natuargument may be suffixed with one of 74*200758f1SNeel Natu.Cm K , 75*200758f1SNeel Natu.Cm M , 76*200758f1SNeel Natu.Cm G 77*200758f1SNeel Natuor 78*200758f1SNeel Natu.Cm T 79*200758f1SNeel Natu(either upper or lower case) to indicate a multiple of 80*200758f1SNeel NatuKilobytes, Megabytes, Gigabytes or Terabytes 81*200758f1SNeel Naturespectively. 8283994ddcSNeel Natu.Pp 8383994ddcSNeel NatuThe default value of 84b060ba50SNeel Natu.Ar mem-size 85*200758f1SNeel Natuis 256M. 8683994ddcSNeel Natu.It Fl d Ar disk-path 8783994ddcSNeel NatuThe 8883994ddcSNeel Natu.Ar disk-path 8983994ddcSNeel Natuis the pathname of the guest's boot disk image. 9083994ddcSNeel Natu.It Fl h Ar host-path 9183994ddcSNeel NatuThe 9283994ddcSNeel Natu.Ar host-path 9383994ddcSNeel Natuis the directory at the top of the guest's boot filesystem. 94edccda4dSJoel Dahl.El 9583994ddcSNeel Natu.Sh EXAMPLES 9683994ddcSNeel NatuTo create a virtual machine named 9783994ddcSNeel Natu.Ar freebsd-vm 9883994ddcSNeel Natuthat boots off the ISO image 9983994ddcSNeel Natu.Pa /freebsd/release.iso 10083994ddcSNeel Natuand has 1GB memory allocated to it: 101edccda4dSJoel Dahl.Pp 102*200758f1SNeel Natu.Dl "bhyveload -m 1G -d /freebsd/release.iso freebsd-vm" 10383994ddcSNeel Natu.Sh SEE ALSO 10483994ddcSNeel Natu.Xr bhyve 4 , 10583994ddcSNeel Natu.Xr bhyve 8 , 10683994ddcSNeel Natu.Xr loader 8 , 10783994ddcSNeel Natu.Xr vmm 4 10883994ddcSNeel Natu.Sh HISTORY 10983994ddcSNeel Natu.Nm 11083994ddcSNeel Natufirst appeared in 11183994ddcSNeel Natu.Fx 10.0 , 11283994ddcSNeel Natuand was developed at NetApp Inc. 11383994ddcSNeel Natu.Sh AUTHORS 11483994ddcSNeel Natu.Nm 11583994ddcSNeel Natuwas developed by 11683994ddcSNeel Natu.An -nosplit 11783994ddcSNeel Natu.An "Neel Natu" Aq neel@FreeBSD.org 11883994ddcSNeel Natuat NetApp Inc with a lot of help from 11983994ddcSNeel Natu.An Doug Rabson Aq dfr@FreeBSD.org 12083994ddcSNeel Natu.Sh BUGS 12183994ddcSNeel Natu.Nm 122edccda4dSJoel Dahlcan only load 12383994ddcSNeel Natu.Fx 12483994ddcSNeel Natuas a guest. 125