Update to r50094:
Add UEFI section to the Virtualization chapter Reviewed by: bcr Differential Revision: https://reviews.freebsd.org/D10622
This commit is contained in:
parent
9fca07f563
commit
010e6378ce
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=50235
1 changed files with 82 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
$FreeBSD$
|
||||
$FreeBSDde: de-docproj/books/handbook/virtualization/chapter.xml,v 1.14 2010/07/03 14:29:30 jkois Exp $
|
||||
basiert auf: r49983
|
||||
basiert auf: r50094
|
||||
-->
|
||||
<chapter xmlns="http://docbook.org/ns/docbook"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
|
||||
|
@ -1078,9 +1078,9 @@ perm pass* 0660</programlisting>
|
|||
<acronym>BSD</acronym>-lizensierter Hypervisor, Teil des
|
||||
Basissystems. Dieser Hypervisor unterstützt eine Reihe von
|
||||
Gastbetriebssystemen, darunter &os;, OpenBSD und viele &linux;
|
||||
Distributionen. Derzeit unterstützt
|
||||
<application>bhyve</application> nur eine serielle Konsole und
|
||||
kann keine graphische Konsole emulieren.
|
||||
Distributionen. In der Voreinstellung unterstützt
|
||||
<application>bhyve</application> eine serielle Konsole,
|
||||
graphische Konsolen werden nicht emuliert.
|
||||
<application>bhyve</application> verwendet Offload-Funktionen
|
||||
von neueren <acronym>CPU</acronym>s, um manuelle
|
||||
Speicherzuordnungen und Anweisungen zu vermeiden.</para>
|
||||
|
@ -1292,6 +1292,84 @@ grub> <userinput>boot</userinput></screen>
|
|||
<screen>&prompt.root; <userinput>bhyvectl --destroy --vm=<replaceable>linuxguest</replaceable></userinput></screen>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="virtualization-bhyve-uefi">
|
||||
<title><application>bhyve</application> virtuelle Maschinen mit
|
||||
<acronym>UEFI</acronym> Firmware booten</title>
|
||||
|
||||
<para>Neben <application>bhyveload</application> und
|
||||
<application>grub-bhyve</application> kann der
|
||||
<application>bhyve</application> Hypervisor virtuelle
|
||||
Maschinen auch über die
|
||||
<acronym>UEFI</acronym>-Userspace-Firmware booten. Mit dieser
|
||||
Option werden Gastsysteme unterstützt, die von anderen
|
||||
Bootloadern nicht unterstützt werden.</para>
|
||||
|
||||
<para>Um die <acronym>UEFI</acronym>-Unterstützung in
|
||||
<application>bhyve</application> nutzen zu können, benötigen
|
||||
Sie zuerst die Abbilder der <acronym>UEFI</acronym>-Firmware.
|
||||
Dazu können Sie den Port oder das Paket
|
||||
<package>sysutils/bhyve-firmware</package>
|
||||
installieren.</para>
|
||||
|
||||
<para>Mit der Firmware an Ort und Stelle, fügen Sie die Option
|
||||
<option>-l bootrom,<replaceable>/pfad/zur/firmware</replaceable></option>
|
||||
zur <application>bhyve</application>-Befehlszeile hinzu. Der
|
||||
eigentliche <application>bhyve</application>-Befehl könnte wie
|
||||
folgt lauten:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
|
||||
-s 2:0,virtio-net,<replaceable>tap1</replaceable> -s 3:0,virtio-blk,<replaceable>./disk.img</replaceable> \
|
||||
-s 4:0,ahci-cd,<replaceable>./install.iso</replaceable> -c <replaceable>4</replaceable> -m <replaceable>1024M</replaceable> \
|
||||
-l bootrom,<replaceable>/usr/local/share/uefi-firmware/BHYVE_UEFI.fd</replaceable> \
|
||||
<replaceable>guest</replaceable></userinput></screen>
|
||||
|
||||
<para><package>sysutils/bhyve-firmware</package> enthält auch
|
||||
eine <acronym>CSM</acronym>-fähige Firmware, um Gastsysteme
|
||||
ohne <acronym>UEFI</acronym>-Unterstützung im alten
|
||||
<acronym>BIOS</acronym>-Modus zu booten:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
|
||||
-s 2:0,virtio-net,<replaceable>tap1</replaceable> -s 3:0,virtio-blk,<replaceable>./disk.img</replaceable> \
|
||||
-s 4:0,ahci-cd,<replaceable>./install.iso</replaceable> -c <replaceable>4</replaceable> -m <replaceable>1024M</replaceable> \
|
||||
-l bootrom,<replaceable>/usr/local/share/uefi-firmware/BHYVE_UEFI_CSM.fd</replaceable> \
|
||||
<replaceable>guest</replaceable></userinput></screen>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="virtualization-bhyve-framebuffer">
|
||||
<title>Graphische Framebuffer für
|
||||
<application>bhyve</application>-Gastsysteme</title>
|
||||
|
||||
<para>Die Unterstützung von <acronym>UEFI</acronym>-Firmware
|
||||
ist bei graphischen Betriebssystemen, wie Microsoft &windows;,
|
||||
besonders nützlich.</para>
|
||||
|
||||
<para>Unterstützung für den UEFI-GOP Framebuffer kann auch über
|
||||
die Option
|
||||
<option>-s 29,fbuf,tcp=<replaceable>0.0.0.0:5900</replaceable></option>
|
||||
aktiviert werden. Die Framebuffer-Auflösung kann mit
|
||||
<option>w=<replaceable>800</replaceable></option> und
|
||||
<option>h=<replaceable>600</replaceable></option> konfiguriert
|
||||
werden. Mit der Option <option>wait</option> können Sie
|
||||
<application>bhyve</application> anweisen, auf eine
|
||||
<acronym>VNC</acronym>-Verbindung zu warten, bevor das
|
||||
Gastsystem gebootet wird. Vom Host oder aus dem Netzwerk kann
|
||||
über das <acronym>VNC</acronym>-Protokoll auf den Framebuffer
|
||||
zugegriffen werden.</para>
|
||||
|
||||
<para>Der daraus resultierende Befehl würde so aussehen:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>bhyve -AHP -s 0:0,hostbridge -s 31:0,lpc \
|
||||
-s 2:0,virtio-net,<replaceable>tap1</replaceable> -s 3:0,virtio-blk,<replaceable>./disk.img</replaceable> \
|
||||
-s 4:0,ahci-cd,<replaceable>./install.iso</replaceable> -c <replaceable>4</replaceable> -m <replaceable>1024M</replaceable> \
|
||||
-s 29,fbuf,tcp=<replaceable>0.0.0.0:5900</replaceable>,w=<replaceable>800</replaceable>,h=<replaceable>600</replaceable>,wait \
|
||||
-l bootrom,<replaceable>/usr/local/share/uefi-firmware/BHYVE_UEFI.fd</replaceable> \
|
||||
<replaceable>guest</replaceable></userinput></screen>
|
||||
|
||||
<para>Beachten Sie, dass der Framebuffer im BIOS-Modus keine
|
||||
Befehle mehr empfängt, sobald die Steuerung von der Firmware
|
||||
an das Gastsystem übergeben wird.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="virtualization-bhyve-zfs">
|
||||
<title>Verwendung von <acronym>ZFS</acronym> mit
|
||||
<application>bhyve</application>-Gastsystemen</title>
|
||||
|
|
Loading…
Reference in a new issue