Changeset View
Changeset View
Standalone View
Standalone View
en_US.ISO8859-1/books/handbook/virtualization/chapter.xml
Show First 20 Lines • Show All 1,308 Lines • ▼ Show 20 Lines | <para>Starting with &os; 10.0-RELEASE, the | ||||
<application>bhyve</application> <acronym>BSD</acronym>-licensed | <application>bhyve</application> <acronym>BSD</acronym>-licensed | ||||
hypervisor is part of the base system. This hypervisor supports | hypervisor is part of the base system. This hypervisor supports | ||||
a number of guests, including &os;, OpenBSD, and many &linux; | a number of guests, including &os;, OpenBSD, and many &linux; | ||||
distributions. Currently, <application>bhyve</application> only | distributions. Currently, <application>bhyve</application> only | ||||
supports a serial console and does not emulate a graphical | supports a serial console and does not emulate a graphical | ||||
console. As a legacy-free hypervisor, it relies on the | console. As a legacy-free hypervisor, it relies on the | ||||
virtualization offload features of newer | virtualization offload features of newer | ||||
<acronym>CPU</acronym>s, instead of translating instructions and | <acronym>CPU</acronym>s, instead of translating instructions and | ||||
manually managing memory mappings. It also avoids emulating | manually managing memory mappings.</para> | ||||
compatible hardware for the guest and instead relies on | |||||
para-virtualization drivers. In &os;, these are provided by the | |||||
&man.virtio.4; driver.</para> | |||||
<para>Due to the design of <application>bhyve</application>, it | <para>Due to the design of <application>bhyve</application>, it | ||||
requires a computer with a newer processor that supports &intel; | requires a computer with a newer processor that supports &intel; | ||||
Extended Page Tables (<acronym>EPT</acronym>) or &amd; Rapid | Extended Page Tables (<acronym>EPT</acronym>) or &amd; Rapid | ||||
Virtualization Indexing (<acronym>RVI</acronym>), also known as | Virtualization Indexing (<acronym>RVI</acronym>), also known as | ||||
Nested Page Tables (<acronym>NPT</acronym>). Most newer | Nested Page Tables (<acronym>NPT</acronym>). Most newer | ||||
processors, specifically the &intel; &core; i3/i5/i7 and | processors, specifically the &intel; &core; i3/i5/i7 and | ||||
&intel; &xeon; E3/E5/E7, support this feature. For a | &intel; &xeon; E3/E5/E7, support this feature. For a | ||||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | starts the virtual machine in installation mode:</para> | ||||
<screen>&prompt.root; <userinput>sh /usr/share/examples/bhyve/vmrun.sh -c <replaceable>4</replaceable> -m <replaceable>1024M</replaceable> -t tap0 -d <replaceable>guest.img</replaceable> -i -I <replaceable>FreeBSD-10.0-RELEASE-amd64-bootonly.iso</replaceable> <replaceable>guestname</replaceable></userinput></screen> | <screen>&prompt.root; <userinput>sh /usr/share/examples/bhyve/vmrun.sh -c <replaceable>4</replaceable> -m <replaceable>1024M</replaceable> -t tap0 -d <replaceable>guest.img</replaceable> -i -I <replaceable>FreeBSD-10.0-RELEASE-amd64-bootonly.iso</replaceable> <replaceable>guestname</replaceable></userinput></screen> | ||||
<para>The virtual machine will boot and start the installer. | <para>The virtual machine will boot and start the installer. | ||||
After installing a system in the virtual machine, when the | After installing a system in the virtual machine, when the | ||||
system asks about dropping in to a shell at the end of the | system asks about dropping in to a shell at the end of the | ||||
installation, choose <guibutton>Yes</guibutton>. A small | installation, choose <guibutton>Yes</guibutton>. A small | ||||
change needs to be made to make the system start with a serial | change needs to be made to make the system start with a serial | ||||
console. Edit <filename>/etc/ttys</filename> and replace the | console. Edit <filename>/etc/ttys</filename> and replace the | ||||
existing <literal>console</literal> line with:</para> | existing <literal>ttyu0</literal> line with:</para> | ||||
<programlisting>console "/usr/libexec/getty std.9600" xterm on secure</programlisting> | <programlisting>ttyu0 "/usr/libexec/getty 3wire" xterm on secure</programlisting> | ||||
<note><para>Beginning with &os; 9.3-RELEASE and | |||||
bcr: I'd use "beginning with &os; 9.3-RELEASE and ... " to make it clear that this applies not… | |||||
10.1-RELEASE the console is configured | |||||
automatically.</para></note> | |||||
<para>Reboot the virtual machine. While rebooting the virtual | <para>Reboot the virtual machine. While rebooting the virtual | ||||
machine causes <application>bhyve</application> to exit, the | machine causes <application>bhyve</application> to exit, the | ||||
<filename>vmrun.sh</filename> script runs | <filename>vmrun.sh</filename> script runs | ||||
<command>bhyve</command> in a loop and will automatically | <command>bhyve</command> in a loop and will automatically | ||||
restart it. When this happens, choose the reboot option from | restart it. When this happens, choose the reboot option from | ||||
the boot loader menu in order to escape the loop. Now the | the boot loader menu in order to escape the loop. Now the | ||||
guest can be started from the virtual disk:</para> | guest can be started from the virtual disk:</para> | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |
I'd use "beginning with &os; 9.3-RELEASE and ... " to make it clear that this applies not only to those versions alone, but starting from them and includes future versions.