Lines 971-979
perm pass* 0660</programlisting>
Link Here
|
971 |
<acronym>BSD</acronym>-licensed hypervisor became part of the |
971 |
<acronym>BSD</acronym>-licensed hypervisor became part of the |
972 |
base system with &os; 10.0-RELEASE. This hypervisor supports a |
972 |
base system with &os; 10.0-RELEASE. This hypervisor supports a |
973 |
number of guests, including &os;, OpenBSD, and many &linux; |
973 |
number of guests, including &os;, OpenBSD, and many &linux; |
974 |
distributions. Currently, <application>bhyve</application> only |
974 |
distributions. By default, <application>bhyve</application> |
975 |
supports a serial console and does not emulate a graphical |
975 |
provides access to serial console and does not emulate a |
976 |
console. Virtualization offload features of newer |
976 |
graphical console. Virtualization offload features of newer |
977 |
<acronym>CPU</acronym>s are used to avoid the legacy methods of |
977 |
<acronym>CPU</acronym>s are used to avoid the legacy methods of |
978 |
translating instructions and manually managing memory |
978 |
translating instructions and manually managing memory |
979 |
mappings.</para> |
979 |
mappings.</para> |
Lines 1175-1180
grub> <userinput>boot</userinput></screen>
Link Here
|
1175 |
<screen>&prompt.root; <userinput>bhyvectl --destroy --vm=<replaceable>linuxguest</replaceable></userinput></screen> |
1175 |
<screen>&prompt.root; <userinput>bhyvectl --destroy --vm=<replaceable>linuxguest</replaceable></userinput></screen> |
1176 |
</sect2> |
1176 |
</sect2> |
1177 |
|
1177 |
|
|
|
1178 |
<sect2 xml:id="virtualization-bhyve-uefi"> |
1179 |
<title>Using <acronym>UEFI</acronym> with |
1180 |
<application>bhyve</application> Guests</title> |
1181 |
|
1182 |
<para><acronym>UEFI</acronym> support may come handy with |
1183 |
guest operating systems which are not directly supported |
1184 |
by FreeBSD bootloader or GRUB.</para> |
1185 |
|
1186 |
<para>In order to make use of <acronym>UEFI</acronym> support |
1187 |
in <application>bhyve</application>, first obtain the |
1188 |
<acronym>UEFI</acronym> firmware images. This can be done |
1189 |
by installing <package>sysutils/bhyve-firmware</package> |
1190 |
port.</para> |
1191 |
|
1192 |
<para>With firmware in place, add |
1193 |
<option>-l bootrom,<replaceable>/path/to/firmware</replaceable></option> |
1194 |
flags to your <application>bhyve</application> command line. |
1195 |
The actual <application>bhyve</application> command may look |
1196 |
like this:</para> |
1197 |
|
1198 |
<screen>&prompt.root; <userinput>bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \ |
1199 |
-s 2:0,virtio-net,<replaceable>tap1</replaceable> -s 3:0,virtio-blk,<replaceable>./disk.img</replaceable> \ |
1200 |
-s 4:0,ahci-cd,<replaceable>./install.iso</replaceable> -c <replaceable>4</replaceable> -m <replaceable>1024M</replaceable> \ |
1201 |
-l bootrom,<replaceable>/usr/local/share/uefi-firmware/BHYVE_UEFI.fd</replaceable> \ |
1202 |
<replaceable>guest</replaceable></userinput></screen> |
1203 |
|
1204 |
<para><package>sysutils/bhyve-firmware</package> also contains |
1205 |
a <acronym>CSM</acronym>-enabled firmware, so guests with no |
1206 |
<acronym>UEFI</acronym> support may be booted in legacy |
1207 |
<acronym>BIOS</acronym> mode:</para> |
1208 |
|
1209 |
<screen>&prompt.root; <userinput>bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \ |
1210 |
-s 2:0,virtio-net,<replaceable>tap1</replaceable> -s 3:0,virtio-blk,<replaceable>./disk.img</replaceable> \ |
1211 |
-s 4:0,ahci-cd,<replaceable>./install.iso</replaceable> -c <replaceable>4</replaceable> -m <replaceable>1024M</replaceable> \ |
1212 |
-l bootrom,<replaceable>/usr/local/share/uefi-firmware/BHYVE_UEFI_CSM.fd</replaceable> \ |
1213 |
<replaceable>guest</replaceable></userinput></screen> |
1214 |
</sect2> |
1215 |
|
1216 |
<sect2 xml:id="virtualization-bhyve-framebuffer"> |
1217 |
<title>Graphical framebuffer for |
1218 |
<application>bhyve</application> Guests</title> |
1219 |
|
1220 |
<para><acronym>UEFI</acronym> support may come particularly |
1221 |
handy with predominantly graphical guest operating systems |
1222 |
like &windows;.</para> |
1223 |
|
1224 |
<para> Support for framebuffer may also be enabled with |
1225 |
<option>-s 29,fbuf,tcp=<replaceable>0.0.0.0:5900</replaceable></option> |
1226 |
flags. Framebuffer size may be configured with |
1227 |
<option>w=<replaceable>800</replaceable></option> and |
1228 |
<option>h=<replaceable>600</replaceable></option>, and |
1229 |
<application>bhyve</application> may be instructed to wait |
1230 |
for <acronym>VNC</acronym> connection before running the |
1231 |
firmware by adding option <option>wait</option>. The |
1232 |
framebuffer may be accessed from host or over network via |
1233 |
<acronym>VNC</acronym> protocol.</para> |
1234 |
|
1235 |
<para>Thus, <application>bhyve</application> command may look |
1236 |
like this:</para> |
1237 |
|
1238 |
<screen>&prompt.root; <userinput>bhyve -AHP -s 0:0,hostbridge -s 31:0,lpc \ |
1239 |
-s 2:0,virtio-net,<replaceable>tap1</replaceable> -s 3:0,virtio-blk,<replaceable>./disk.img</replaceable> \ |
1240 |
-s 4:0,ahci-cd,<replaceable>./install.iso</replaceable> -c <replaceable>4</replaceable> -m <replaceable>1024M</replaceable> \ |
1241 |
-s 29,fbuf,tcp=<replaceable>0.0.0.0:5900</replaceable>,w=<replaceable>800</replaceable>,h=<replaceable>600</replaceable>,wait \ |
1242 |
-l bootrom,<replaceable>/usr/local/share/uefi-firmware/BHYVE_UEFI.fd</replaceable> \ |
1243 |
<replaceable>guest</replaceable></userinput></screen> |
1244 |
|
1245 |
<para>Note, in BIOS emulation mode the framebuffer will cease |
1246 |
recieving updates once control is passed from firmware to |
1247 |
guest operating system.</para> |
1248 |
</sect2> |
1249 |
|
1178 |
<sect2 xml:id="virtualization-bhyve-zfs"> |
1250 |
<sect2 xml:id="virtualization-bhyve-zfs"> |
1179 |
<title>Using <acronym>ZFS</acronym> with |
1251 |
<title>Using <acronym>ZFS</acronym> with |
1180 |
<application>bhyve</application> Guests</title> |
1252 |
<application>bhyve</application> Guests</title> |
1181 |
- |
|
|