Index: en_US.ISO8859-1/books/handbook/virtualization/chapter.xml
===================================================================
--- en_US.ISO8859-1/books/handbook/virtualization/chapter.xml
+++ en_US.ISO8859-1/books/handbook/virtualization/chapter.xml
@@ -1320,19 +1320,25 @@
requires a computer with a newer processor that supports &intel;
Extended Page Tables (EPT) or &amd; Rapid
Virtualization Indexing (RVI), also known as
- Nested Page Tables (NPT). Most newer
- processors, specifically the &intel; &core; i3/i5/i7 and
- &intel; &xeon; E3/E5/E7, support this feature. For a
- complete list of &intel; processors that support
- EPT, refer to http://ark.intel.com/search/advanced?s=t&ExtendedPageTables=true.
- RVI is found on the 3rd generation and later
- of the &amd.opteron; (Barcelona) processors. The easiest way to
- check for support of EPT or
- RVI is to look for the
- POPCNT processor feature flag on the
- Features2 line in dmesg or
- /var/run/dmesg.boot.
+ Nested Page Tables (NPT). In addition, to
+ host &linux; guests, or &os; guests with more than one
+ vCPU, VMX unrestricted
+ mode support (UG) is also required. Most
+ newer processors, specifically the &intel; &core;
+ i3/i5/i7 and &intel; &xeon; E3/E5/E7, support these
+ features. UG support was introduced with
+ Intel's Westmere micro-architecture. For a complete list of
+ &intel; processors that support EPT, refer
+ to .
+ RVI is found on the third generation and
+ later of the &amd.opteron; (Barcelona) processors. The easiest
+ way to tell if a processor will support
+ bhyve is to run
+ dmesg or look in
+ /var/run/dmesg.boot for
+ the POPCNT processor feature flag on the
+ Features2 line and EPT and
+ UG on the VT-x line.
Preparing the Host
@@ -1391,7 +1397,7 @@
machine, used to track the running machines. This example
starts the virtual machine in installation mode:
- &prompt.root; sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d guest.img -i -I FreeBSD-10.0-RELEASE-amd64-bootonly.isoguestname
+ &prompt.root; sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d guest.img -i -I FreeBSD-10.0-RELEASE-amd64-bootonly.isoguestnameThe virtual machine will boot and start the installer.
After installing a system in the virtual machine, when the
@@ -1415,7 +1421,7 @@
the boot loader menu in order to escape the loop. Now the
guest can be started from the virtual disk:
- &prompt.root; sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d guest.imgguestname
+ &prompt.root; sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d guest.imgguestname
@@ -1466,8 +1472,8 @@
Now that the &linux; kernel is loaded, the guest can be
started:
- &prompt.root; bhyve -AI -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./linux.img \
--s 4:0,ahci-cd,./somelinux.iso -l com1,stdio -c 4 -m 1024Mlinuxguest
+ &prompt.root; bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./linux.img \
+-s 4:0,ahci-cd,./somelinux.iso -l com1,stdio -c 4 -m 1024MlinuxguestThe system will boot and start the installer. After
installing a system in the virtual machine, reboot the virtual
@@ -1494,8 +1500,8 @@
Boot the virtual machine:
- &prompt.root; bhyve -AI -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap1 \
--s 3:0,virtio-blk,./linux.img -l com1,stdio -c 4 -m 1024Mlinuxguest
+ &prompt.root; bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap1 \
+-s 3:0,virtio-blk,./linux.img -l com1,stdio -c 4 -m 1024Mlinuxguest&linux; will now boot in the virtual machine and
eventually present you with the login prompt. Login and use
@@ -1506,6 +1512,25 @@
&prompt.root; bhyvectl --destroy --vm=linuxguest
+
+ Using ZFS with
+ bhyve Guests
+
+ If ZFS is available on the host
+ machine, using ZFS volumes
+ instead of disk image files can provide significant
+ performance benefits for the guest VMs. A
+ ZFS volume can be created by:
+
+ &prompt.root; zfs create -V16G -o volmode=dev zroot/linuxdisk0
+
+ When starting the VM, specify the
+ ZFS volume as the disk drive:
+
+ &prompt.root; bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap1 -s3:0,virtio-blk,/dev/zvol/zroot/linuxdisk0 \
+ -l com1,stdio -c 4 -m 1024Mlinuxguest
+
+
Virtual Machine Consoles
@@ -1527,9 +1552,9 @@
information.
&prompt.root; kldload nmdm
-&prompt.root; bhyve -AI -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./linux.img \
--l com1,/dev/nmdm0A -c 4 -m 1024Mlinuxguest
-&prompt.root; cu -l /dev/nmdm0B -s 9600
+ &prompt.root; bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./linux.img \
+ -l com1,/dev/nmdm0A -c 4 -m 1024Mlinuxguest
+ &prompt.root; cu -l /dev/nmdm0B -s 9600
Connected
Ubuntu 13.10 handbook ttyS0