Index: chapter.xml =================================================================== --- chapter.xml +++ chapter.xml @@ -1320,18 +1320,23 @@ 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 + 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 + http://ark.intel.com/search/advanced?s=t&ExtendedPageTables=true. + RVI is found on the third generation and + later of the &amd.opteron; (Barcelona) processors. The easiest + way to check for support of EPT, + RVI, or UG is to look for + the POPCNT processor feature flag on the + Features2 line and EPT and + UG on the VT-x line in + dmesg or /var/run/dmesg.boot. @@ -1506,6 +1511,23 @@ &prompt.root; bhyvectl --destroy --vm=linuxguest + + Using ZFS with Bhyve Guests + + If the host machine is running on ZFS, using ZFS volumes + instead of disk image files may provide significant + performance benefits for the guest VMs. A ZFS volume + can be created by: + + &prompt.root; zfs create -V16G -o volmode=dev zroot/vdisk0 + + Once created, the ZFS volume can be specified as the disk + drive when starting the guest vm using bhyve: + +&prompt.root; bhyve -AI -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap1 -s3:0,ahci-hd,/dev/zvol/zroot/vdisk0 \ -l com1,stdio -c 4 -m 1024M linuxguest + + + Virtual Machine Consoles @@ -1526,6 +1548,10 @@ /dev/nmdm1B). See &man.nmdm.4; for more information. + The example below shows how to boot the &linux; guest + created above with the console redirected to the null modem. + &os; guests can be configured similarly. + &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 1024M linuxguest