|
Lines 605-1137
Link Here
|
| 605 |
</sect3> |
605 |
</sect3> |
| 606 |
</sect2> |
606 |
</sect2> |
| 607 |
--> |
607 |
--> |
| 608 |
<sect2 xml:id="virtualization-guest-virtualpc"> |
608 |
<sect2 xml:id="virtualization-guest-virtualpc"> |
| 609 |
<title><application>Virtual PC</application> on |
609 |
<title><application>Virtual PC</application> on |
| 610 |
&windows;</title> |
610 |
&windows;</title> |
| 611 |
|
611 |
|
| 612 |
<para><application>Virtual PC</application> for &windows; is a |
612 |
<para><application>Virtual PC</application> for &windows; is a |
| 613 |
µsoft; software product available for free download. See |
613 |
µsoft; software product available for free download. |
| 614 |
this website for the <link |
614 |
See this website for the <link |
| 615 |
xlink:href="http://www.microsoft.com/windows/downloads/virtualpc/sysreq.mspx">system |
615 |
xlink:href="http://www.microsoft.com/windows/downloads/virtualpc/sysreq.mspx">system |
| 616 |
requirements</link>. Once <application>Virtual |
616 |
requirements</link>. Once <application>Virtual |
| 617 |
PC</application> has been installed on µsoft.windows;, |
617 |
PC</application> has been installed on |
| 618 |
the user can configure a virtual machine and then install the |
618 |
µsoft.windows;, the user can configure a virtual |
| 619 |
desired guest operating system.</para> |
619 |
machine and then install the desired guest operating |
|
|
620 |
system.</para> |
| 620 |
|
621 |
|
| 621 |
<sect3 xml:id="virtualization-guest-virtualpc-install"> |
622 |
<sect3 xml:id="virtualization-guest-virtualpc-install"> |
| 622 |
<title>Installing &os; on <application>Virtual |
623 |
<title>Installing &os; on <application>Virtual |
| 623 |
PC</application></title> |
624 |
PC</application></title> |
| 624 |
|
625 |
|
| 625 |
<para>The first step in installing &os; on |
626 |
<para>The first step in installing &os; on |
| 626 |
<application>Virtual PC </application> is to create a new |
627 |
<application>Virtual PC </application> is to create a |
| 627 |
virtual machine for installing &os;. Select |
628 |
new virtual machine for installing &os;. Select |
| 628 |
<guimenuitem>Create a virtual machine</guimenuitem> when |
629 |
<guimenuitem>Create a virtual machine</guimenuitem> when |
| 629 |
prompted:</para> |
630 |
prompted:</para> |
| 630 |
|
631 |
|
| 631 |
<mediaobject> |
632 |
<mediaobject> |
| 632 |
<imageobject> |
633 |
<imageobject> |
| 633 |
<imagedata fileref="virtualization/virtualpc-freebsd1"/> |
634 |
<imagedata |
| 634 |
</imageobject> |
635 |
fileref="virtualization/virtualpc-freebsd1"/> |
| 635 |
</mediaobject> |
636 |
</imageobject> |
|
|
637 |
</mediaobject> |
| 636 |
|
638 |
|
| 637 |
<mediaobject> |
639 |
<mediaobject> |
| 638 |
<imageobject> |
640 |
<imageobject> |
| 639 |
<imagedata fileref="virtualization/virtualpc-freebsd2"/> |
641 |
<imagedata |
| 640 |
</imageobject> |
642 |
fileref="virtualization/virtualpc-freebsd2"/> |
| 641 |
</mediaobject> |
643 |
</imageobject> |
|
|
644 |
</mediaobject> |
| 642 |
|
645 |
|
| 643 |
<para>Select <guimenuitem>Other</guimenuitem> as the |
646 |
<para>Select <guimenuitem>Other</guimenuitem> as the |
| 644 |
<guimenuitem>Operating system</guimenuitem> when |
647 |
<guimenuitem>Operating system</guimenuitem> when |
| 645 |
prompted:</para> |
648 |
prompted:</para> |
| 646 |
|
649 |
|
| 647 |
<mediaobject> |
650 |
<mediaobject> |
| 648 |
<imageobject> |
651 |
<imageobject> |
| 649 |
<imagedata fileref="virtualization/virtualpc-freebsd3"/> |
652 |
<imagedata |
| 650 |
</imageobject> |
653 |
fileref="virtualization/virtualpc-freebsd3"/> |
| 651 |
</mediaobject> |
654 |
</imageobject> |
|
|
655 |
</mediaobject> |
| 652 |
|
656 |
|
| 653 |
<para>Then, choose a reasonable amount of disk and memory |
657 |
<para>Then, choose a reasonable amount of disk and memory |
| 654 |
depending on the plans for this virtual &os; instance. |
658 |
depending on the plans for this virtual &os; instance. |
| 655 |
4GB of disk space and 512MB of RAM work well for most uses |
659 |
4GB of disk space and 512MB of RAM work well for most |
| 656 |
of &os; under <application>Virtual PC</application>:</para> |
660 |
uses of &os; under |
|
|
661 |
<application>Virtual PC</application>:</para> |
| 657 |
|
662 |
|
| 658 |
<mediaobject> |
663 |
<mediaobject> |
| 659 |
<imageobject> |
664 |
<imageobject> |
| 660 |
<imagedata fileref="virtualization/virtualpc-freebsd4"/> |
665 |
<imagedata |
| 661 |
</imageobject> |
666 |
fileref="virtualization/virtualpc-freebsd4"/> |
| 662 |
</mediaobject> |
667 |
</imageobject> |
|
|
668 |
</mediaobject> |
| 663 |
|
669 |
|
| 664 |
<mediaobject> |
670 |
<mediaobject> |
| 665 |
<imageobject> |
671 |
<imageobject> |
| 666 |
<imagedata fileref="virtualization/virtualpc-freebsd5"/> |
672 |
<imagedata |
| 667 |
</imageobject> |
673 |
fileref="virtualization/virtualpc-freebsd5"/> |
| 668 |
</mediaobject> |
674 |
</imageobject> |
|
|
675 |
</mediaobject> |
| 669 |
|
676 |
|
| 670 |
<para>Save and finish the configuration:</para> |
677 |
<para>Save and finish the configuration:</para> |
| 671 |
|
678 |
|
| 672 |
<mediaobject> |
679 |
<mediaobject> |
| 673 |
<imageobject> |
680 |
<imageobject> |
| 674 |
<imagedata fileref="virtualization/virtualpc-freebsd6"/> |
681 |
<imagedata |
| 675 |
</imageobject> |
682 |
fileref="virtualization/virtualpc-freebsd6"/> |
| 676 |
</mediaobject> |
683 |
</imageobject> |
|
|
684 |
</mediaobject> |
| 677 |
|
685 |
|
| 678 |
<para>Select the &os; virtual machine and click |
686 |
<para>Select the &os; virtual machine and click |
| 679 |
<guimenu>Settings</guimenu>, then set the type of networking |
687 |
<guimenu>Settings</guimenu>, then set the type of |
| 680 |
and a network interface:</para> |
688 |
networking and a network interface:</para> |
| 681 |
|
689 |
|
| 682 |
<mediaobject> |
690 |
<mediaobject> |
| 683 |
<imageobject> |
691 |
<imageobject> |
| 684 |
<imagedata fileref="virtualization/virtualpc-freebsd7"/> |
692 |
<imagedata |
| 685 |
</imageobject> |
693 |
fileref="virtualization/virtualpc-freebsd7"/> |
| 686 |
</mediaobject> |
694 |
</imageobject> |
|
|
695 |
</mediaobject> |
| 687 |
|
696 |
|
| 688 |
<mediaobject> |
697 |
<mediaobject> |
| 689 |
<imageobject> |
698 |
<imageobject> |
| 690 |
<imagedata fileref="virtualization/virtualpc-freebsd8"/> |
699 |
<imagedata |
| 691 |
</imageobject> |
700 |
fileref="virtualization/virtualpc-freebsd8"/> |
| 692 |
</mediaobject> |
701 |
</imageobject> |
|
|
702 |
</mediaobject> |
| 693 |
|
703 |
|
| 694 |
<para>After the &os; virtual machine has been created, &os; |
704 |
<para>After the &os; virtual machine has been created, |
| 695 |
can be installed on it. This is best done with an |
705 |
&os; can be installed on it. This is best done with an |
| 696 |
official &os; CD/DVD or with an ISO image downloaded from an |
706 |
official &os; CD/DVD or with an ISO image downloaded |
| 697 |
official FTP site. Copy the appropriate ISO image to the |
707 |
from an official FTP site. Copy the appropriate ISO |
| 698 |
local &windows; filesystem or insert a CD/DVD in the CD |
708 |
image to the local &windows; filesystem or insert a |
| 699 |
drive, then double click on the &os; virtual machine to |
709 |
CD/DVD in the CD |
| 700 |
boot. Then, click <guimenu>CD</guimenu> and choose |
710 |
drive, then double click on the &os; virtual machine to |
| 701 |
<guimenu>Capture ISO Image...</guimenu> on the |
711 |
boot. Then, click <guimenu>CD</guimenu> and choose |
| 702 |
<application>Virtual PC</application> window. This will |
712 |
<guimenu>Capture ISO Image...</guimenu> on the |
| 703 |
bring up a window where the CDROM drive in the virtual |
713 |
<application>Virtual PC</application> window. This will |
| 704 |
machine can be associated with an ISO file on disk or |
714 |
bring up a window where the CDROM drive in the virtual |
| 705 |
with the real CDROM drive.</para> |
715 |
machine can be associated with an ISO file on disk or |
|
|
716 |
with the real CDROM drive.</para> |
| 706 |
|
717 |
|
| 707 |
<mediaobject> |
718 |
<mediaobject> |
| 708 |
<imageobject> |
719 |
<imageobject> |
| 709 |
<imagedata fileref="virtualization/virtualpc-freebsd9"/> |
720 |
<imagedata |
| 710 |
</imageobject> |
721 |
fileref="virtualization/virtualpc-freebsd9"/> |
| 711 |
</mediaobject> |
722 |
</imageobject> |
|
|
723 |
</mediaobject> |
| 712 |
|
724 |
|
| 713 |
<mediaobject> |
725 |
<mediaobject> |
| 714 |
<imageobject> |
726 |
<imageobject> |
| 715 |
<imagedata fileref="virtualization/virtualpc-freebsd10"/> |
727 |
<imagedata |
| 716 |
</imageobject> |
728 |
fileref="virtualization/virtualpc-freebsd10"/> |
| 717 |
</mediaobject> |
729 |
</imageobject> |
|
|
730 |
</mediaobject> |
| 718 |
|
731 |
|
| 719 |
<para>Once this association with the CDROM source has been |
732 |
<para>Once this association with the CDROM source has been |
| 720 |
made, reboot the &os; virtual machine by clicking |
733 |
made, reboot the &os; virtual machine by clicking |
| 721 |
<guimenu>Action</guimenu> and <guimenu>Reset</guimenu>. |
734 |
<guimenu>Action</guimenu> and <guimenu>Reset</guimenu>. |
| 722 |
<application>Virtual PC</application> will reboot with a |
735 |
<application>Virtual PC</application> will reboot with a |
| 723 |
special BIOS that first checks for a CDROM.</para> |
736 |
special BIOS that first checks for a CDROM.</para> |
| 724 |
|
737 |
|
| 725 |
<mediaobject> |
738 |
<mediaobject> |
| 726 |
<imageobject> |
739 |
<imageobject> |
| 727 |
<imagedata fileref="virtualization/virtualpc-freebsd11"/> |
740 |
<imagedata |
| 728 |
</imageobject> |
741 |
fileref="virtualization/virtualpc-freebsd11"/> |
| 729 |
</mediaobject> |
742 |
</imageobject> |
|
|
743 |
</mediaobject> |
| 730 |
|
744 |
|
| 731 |
<para>In this case it will find the &os; installation media |
745 |
<para>In this case it will find the &os; installation |
| 732 |
and begin a normal &os; installation. Continue with the |
746 |
media and begin a normal &os; installation. Continue |
| 733 |
installation, but do not attempt to configure |
747 |
with the installation, but do not attempt to configure |
| 734 |
<application>&xorg;</application> at this time.</para> |
748 |
<application>&xorg;</application> at this time.</para> |
| 735 |
|
749 |
|
| 736 |
<mediaobject> |
750 |
<mediaobject> |
| 737 |
<imageobject> |
751 |
<imageobject> |
| 738 |
<imagedata fileref="virtualization/virtualpc-freebsd12"/> |
752 |
<imagedata |
| 739 |
</imageobject> |
753 |
fileref="virtualization/virtualpc-freebsd12"/> |
| 740 |
</mediaobject> |
754 |
</imageobject> |
|
|
755 |
</mediaobject> |
| 741 |
|
756 |
|
| 742 |
<para>When the installation is finished, remember to eject |
757 |
<para>When the installation is finished, remember to eject |
| 743 |
the CD/DVD or release the ISO image. Finally, reboot into |
758 |
the CD/DVD or release the ISO image. Finally, reboot |
| 744 |
the newly installed &os; virtual machine.</para> |
759 |
into the newly installed &os; virtual machine.</para> |
| 745 |
|
760 |
|
| 746 |
<mediaobject> |
761 |
<mediaobject> |
| 747 |
<imageobject> |
762 |
<imageobject> |
| 748 |
<imagedata fileref="virtualization/virtualpc-freebsd13"/> |
763 |
<imagedata |
| 749 |
</imageobject> |
764 |
fileref="virtualization/virtualpc-freebsd13"/> |
| 750 |
</mediaobject> |
765 |
</imageobject> |
| 751 |
</sect3> |
766 |
</mediaobject> |
|
|
767 |
</sect3> |
| 752 |
|
768 |
|
| 753 |
<sect3 xml:id="virtualization-guest-virtualpc-configure"> |
769 |
<sect3 xml:id="virtualization-guest-virtualpc-configure"> |
| 754 |
<title>Configuring &os; on <application>Virtual |
770 |
<title>Configuring &os; on <application>Virtual |
| 755 |
PC</application></title> |
771 |
PC</application></title> |
| 756 |
|
772 |
|
| 757 |
<para>After &os; has been successfully installed on |
773 |
<para>After &os; has been successfully installed on |
| 758 |
µsoft.windows; with <application>Virtual PC |
774 |
µsoft.windows; with <application>Virtual PC |
| 759 |
</application>, there are a number of configuration |
775 |
</application>, there are a number of configuration |
| 760 |
steps that can be taken to optimize the system for |
776 |
steps that can be taken to optimize the system for |
| 761 |
virtualized operation.</para> |
777 |
virtualized operation.</para> |
| 762 |
|
778 |
|
| 763 |
<procedure> |
779 |
<procedure> |
| 764 |
<step> |
780 |
<step> |
| 765 |
<title>Set Boot Loader Variables</title> |
781 |
<title>Set Boot Loader Variables</title> |
| 766 |
|
782 |
|
| 767 |
<para>The most important step is to reduce the |
783 |
<para>The most important step is to reduce the |
| 768 |
<option>kern.hz</option> tunable to reduce the CPU |
784 |
<option>kern.hz</option> tunable to reduce the CPU |
| 769 |
utilization of &os; under the <application>Virtual |
785 |
utilization of &os; under the <application>Virtual |
| 770 |
PC</application> environment. This is accomplished |
786 |
PC</application> environment. This is accomplished |
| 771 |
by adding the following line to |
787 |
by adding the following line to |
| 772 |
<filename> /boot/loader.conf</filename>:</para> |
788 |
<filename> /boot/loader.conf</filename>:</para> |
| 773 |
|
789 |
|
| 774 |
<programlisting>kern.hz=100</programlisting> |
790 |
<programlisting>kern.hz=100</programlisting> |
| 775 |
|
791 |
|
| 776 |
<para>Without this setting, an idle &os; |
792 |
<para>Without this setting, an idle &os; |
| 777 |
<application>Virtual PC</application> guest OS will |
793 |
<application>Virtual PC</application> guest OS will |
| 778 |
use roughly 40% of the CPU of a single processor |
794 |
use roughly 40% of the CPU of a single processor |
| 779 |
computer. After this change, the usage will be |
795 |
computer. After this change, the usage will be |
| 780 |
closer to 3%.</para> |
796 |
closer to 3%.</para> |
| 781 |
</step> |
797 |
</step> |
| 782 |
|
798 |
|
| 783 |
<step> |
799 |
<step> |
| 784 |
<title>Create a New Kernel Configuration File</title> |
800 |
<title>Create a New Kernel Configuration File</title> |
| 785 |
|
801 |
|
| 786 |
<para>All of the SCSI, FireWire, and USB device drivers |
802 |
<para>All of the SCSI, FireWire, and USB device |
| 787 |
can be removed from a custom kernel configuration file. |
803 |
drivers can be removed from a custom kernel |
| 788 |
<application>Virtual PC</application> provides a virtual |
804 |
configuration file. |
| 789 |
network adapter used by the &man.de.4; driver, so all |
805 |
<application>Virtual PC</application> provides |
| 790 |
network devices except for &man.de.4; and &man.miibus.4; |
806 |
a virtual network adapter used by the &man.de.4; |
| 791 |
can be removed from the kernel.</para> |
807 |
driver, so all network devices except |
| 792 |
</step> |
808 |
for &man.de.4; and &man.miibus.4; can be removed |
|
|
809 |
from the kernel.</para> |
| 810 |
</step> |
| 793 |
|
811 |
|
| 794 |
<step> |
812 |
<step> |
| 795 |
<title>Configure Networking</title> |
813 |
<title>Configure Networking</title> |
| 796 |
|
814 |
|
| 797 |
<para>The most basic networking setup uses DHCP to connect |
815 |
<para>The most basic networking setup uses DHCP to |
| 798 |
the virtual machine to the same local area network as |
816 |
connect the virtual machine to the same local area |
| 799 |
the µsoft.windows; host. This can be accomplished |
817 |
network as the µsoft.windows; host. This can |
| 800 |
by adding <literal>ifconfig_de0="DHCP"</literal> to |
818 |
be accomplished by adding |
| 801 |
<filename>/etc/rc.conf</filename>. More advanced |
819 |
<literal>ifconfig_de0="DHCP"</literal> to |
| 802 |
networking setups are described in |
820 |
<filename>/etc/rc.conf</filename>. More advanced |
| 803 |
<xref linkend="advanced-networking"/>.</para> |
821 |
networking setups are described in |
| 804 |
</step> |
822 |
<xref linkend="advanced-networking"/>.</para> |
| 805 |
</procedure> |
823 |
</step> |
| 806 |
</sect3> |
824 |
</procedure> |
| 807 |
</sect2> |
825 |
</sect3> |
|
|
826 |
</sect2> |
| 808 |
|
827 |
|
| 809 |
<sect2 xml:id="virtualization-guest-vmware"> |
828 |
<sect2 xml:id="virtualization-guest-vmware"> |
| 810 |
<title><application>VMware Fusion</application> on |
829 |
<title><application>VMware Fusion</application> on |
| 811 |
&macos;</title> |
830 |
&macos;</title> |
| 812 |
|
831 |
|
| 813 |
<para><application>VMware Fusion</application> for &mac; is a |
832 |
<para><application>VMware Fusion</application> for &mac; is |
| 814 |
commercial software product available for &intel; based |
833 |
a commercial software product available for &intel; based |
| 815 |
&apple; &mac; computers running &macos; 10.4.9 or higher. |
834 |
&apple; &mac; computers running &macos; 10.4.9 or higher. |
| 816 |
&os; is a fully supported guest operating system. Once |
835 |
&os; is a fully supported guest operating system. Once |
| 817 |
<application>VMware Fusion</application> has been |
836 |
<application>VMware Fusion</application> has been |
| 818 |
installed on &macos; X, the user can configure a virtual |
837 |
installed on &macos; X, the user can configure a virtual |
| 819 |
machine and then install the desired guest operating |
838 |
machine and then install the desired guest operating |
| 820 |
system.</para> |
839 |
system.</para> |
| 821 |
|
840 |
|
| 822 |
<sect3 xml:id="virtualization-guest-vmware-install"> |
841 |
<sect3 xml:id="virtualization-guest-vmware-install"> |
| 823 |
<title>Installing &os; on <application>VMware |
842 |
<title>Installing &os; on <application>VMware |
| 824 |
Fusion</application></title> |
843 |
Fusion</application></title> |
| 825 |
|
844 |
|
| 826 |
<para>The first step is to start <application>VMware |
845 |
<para>The first step is to start |
| 827 |
Fusion</application> which will load the Virtual |
846 |
<application>VMware Fusion</application> |
| 828 |
Machine Library. Click <guimenuitem>New</guimenuitem> to |
847 |
which will load the Virtual Machine Library. Click |
| 829 |
create the virtual machine:</para> |
848 |
<guimenuitem>New</guimenuitem> |
|
|
849 |
to create the virtual machine:</para> |
| 830 |
|
850 |
|
| 831 |
<mediaobject> |
851 |
<mediaobject> |
| 832 |
<imageobject> |
852 |
<imageobject> |
| 833 |
<imagedata fileref="virtualization/vmware-freebsd01"/> |
853 |
<imagedata fileref="virtualization/vmware-freebsd01"/> |
| 834 |
</imageobject> |
854 |
</imageobject> |
| 835 |
</mediaobject> |
855 |
</mediaobject> |
| 836 |
|
856 |
|
| 837 |
<para>This will load the New Virtual Machine Assistant. Click |
857 |
<para>This will load the New Virtual Machine Assistant. |
| 838 |
<guimenuitem>Continue</guimenuitem> to proceed:</para> |
858 |
Click <guimenuitem>Continue</guimenuitem> to |
|
|
859 |
proceed:</para> |
| 839 |
|
860 |
|
| 840 |
<mediaobject> |
861 |
<mediaobject> |
| 841 |
<imageobject> |
862 |
<imageobject> |
| 842 |
<imagedata fileref="virtualization/vmware-freebsd02"/> |
863 |
<imagedata fileref="virtualization/vmware-freebsd02"/> |
| 843 |
</imageobject> |
864 |
</imageobject> |
| 844 |
</mediaobject> |
865 |
</mediaobject> |
| 845 |
|
866 |
|
| 846 |
<para>Select <guimenuitem>Other</guimenuitem> as the |
867 |
<para>Select <guimenuitem>Other</guimenuitem> as the |
| 847 |
<guimenuitem>Operating System</guimenuitem> and either |
868 |
<guimenuitem>Operating System</guimenuitem> and either |
| 848 |
<guimenuitem>&os;</guimenuitem> or |
869 |
<guimenuitem>&os;</guimenuitem> or |
| 849 |
<guimenuitem>&os; 64-bit</guimenuitem>, as the |
870 |
<guimenuitem>&os; 64-bit</guimenuitem>, as the |
| 850 |
<guimenu>Version</guimenu> when prompted:</para> |
871 |
<guimenu>Version</guimenu> when prompted:</para> |
| 851 |
|
872 |
|
| 852 |
<mediaobject> |
873 |
<mediaobject> |
| 853 |
<imageobject> |
874 |
<imageobject> |
| 854 |
<imagedata fileref="virtualization/vmware-freebsd03"/> |
875 |
<imagedata fileref="virtualization/vmware-freebsd03"/> |
| 855 |
</imageobject> |
876 |
</imageobject> |
| 856 |
</mediaobject> |
877 |
</mediaobject> |
| 857 |
|
878 |
|
| 858 |
<para>Choose the name of the virtual machine and the directory |
879 |
<para>Choose the name of the virtual machine and the |
| 859 |
where it should be saved:</para> |
880 |
directory where it should be saved:</para> |
| 860 |
|
881 |
|
| 861 |
<mediaobject> |
882 |
<mediaobject> |
| 862 |
<imageobject> |
883 |
<imageobject> |
| 863 |
<imagedata fileref="virtualization/vmware-freebsd04"/> |
884 |
<imagedata fileref="virtualization/vmware-freebsd04"/> |
| 864 |
</imageobject> |
885 |
</imageobject> |
| 865 |
</mediaobject> |
886 |
</mediaobject> |
| 866 |
|
887 |
|
| 867 |
<para>Choose the size of the Virtual Hard Disk for the virtual |
888 |
<para>Choose the size of the Virtual Hard Disk for the |
| 868 |
machine:</para> |
889 |
virtual machine:</para> |
| 869 |
|
890 |
|
| 870 |
<mediaobject> |
891 |
<mediaobject> |
| 871 |
<imageobject> |
892 |
<imageobject> |
| 872 |
<imagedata fileref="virtualization/vmware-freebsd05"/> |
893 |
<imagedata fileref="virtualization/vmware-freebsd05"/> |
| 873 |
</imageobject> |
894 |
</imageobject> |
| 874 |
</mediaobject> |
895 |
</mediaobject> |
| 875 |
|
896 |
|
| 876 |
<para>Choose the method to install the virtual machine, |
897 |
<para>Choose the method to install the virtual machine, |
| 877 |
either from an ISO image or from a CD/DVD:</para> |
898 |
either from an ISO image or from a CD/DVD:</para> |
| 878 |
|
899 |
|
| 879 |
<mediaobject> |
900 |
<mediaobject> |
| 880 |
<imageobject> |
901 |
<imageobject> |
| 881 |
<imagedata fileref="virtualization/vmware-freebsd06"/> |
902 |
<imagedata fileref="virtualization/vmware-freebsd06"/> |
| 882 |
</imageobject> |
903 |
</imageobject> |
| 883 |
</mediaobject> |
904 |
</mediaobject> |
| 884 |
|
905 |
|
| 885 |
<para>Click <guimenuitem>Finish</guimenuitem> and the virtual |
906 |
<para>Click <guimenuitem>Finish</guimenuitem> and the |
| 886 |
machine will boot:</para> |
907 |
virtual machine will boot:</para> |
| 887 |
|
908 |
|
| 888 |
<mediaobject> |
909 |
<mediaobject> |
| 889 |
<imageobject> |
910 |
<imageobject> |
| 890 |
<imagedata fileref="virtualization/vmware-freebsd07"/> |
911 |
<imagedata fileref="virtualization/vmware-freebsd07"/> |
| 891 |
</imageobject> |
912 |
</imageobject> |
| 892 |
</mediaobject> |
913 |
</mediaobject> |
| 893 |
|
914 |
|
| 894 |
<para>Install &os; as usual:</para> |
915 |
<para>Install &os; as usual:</para> |
| 895 |
|
916 |
|
| 896 |
<mediaobject> |
917 |
<mediaobject> |
| 897 |
<imageobject> |
918 |
<imageobject> |
| 898 |
<imagedata fileref="virtualization/vmware-freebsd08"/> |
919 |
<imagedata fileref="virtualization/vmware-freebsd08"/> |
| 899 |
</imageobject> |
920 |
</imageobject> |
| 900 |
</mediaobject> |
921 |
</mediaobject> |
| 901 |
|
922 |
|
| 902 |
<para>Once the install is complete, the settings |
923 |
<para>Once the install is complete, the settings |
| 903 |
of the virtual machine can be modified, such as memory |
924 |
of the virtual machine can be modified, such as memory |
| 904 |
usage:</para> |
925 |
usage:</para> |
| 905 |
|
926 |
|
| 906 |
<note> |
927 |
<note> |
| 907 |
<para>The System Hardware settings of the virtual machine |
928 |
<para>The System Hardware settings of the virtual |
| 908 |
cannot be modified while the virtual machine is |
929 |
machine cannot be modified while the virtual machine |
| 909 |
running.</para> |
930 |
is running.</para> |
| 910 |
</note> |
931 |
</note> |
| 911 |
|
932 |
|
| 912 |
<mediaobject> |
933 |
<mediaobject> |
| 913 |
<imageobject> |
934 |
<imageobject> |
| 914 |
<imagedata fileref="virtualization/vmware-freebsd09"/> |
935 |
<imagedata fileref="virtualization/vmware-freebsd09"/> |
| 915 |
</imageobject> |
936 |
</imageobject> |
| 916 |
</mediaobject> |
937 |
</mediaobject> |
| 917 |
|
938 |
|
| 918 |
<para>The number of CPUs the virtual machine will have access |
939 |
<para>The number of CPUs the virtual machine will have |
| 919 |
to:</para> |
940 |
access to:</para> |
| 920 |
|
941 |
|
| 921 |
<mediaobject> |
942 |
<mediaobject> |
| 922 |
<imageobject> |
943 |
<imageobject> |
| 923 |
<imagedata fileref="virtualization/vmware-freebsd10"/> |
944 |
<imagedata fileref="virtualization/vmware-freebsd10"/> |
| 924 |
</imageobject> |
945 |
</imageobject> |
| 925 |
</mediaobject> |
946 |
</mediaobject> |
| 926 |
|
947 |
|
| 927 |
<para>The status of the CDROM device. Normally the |
948 |
<para>The status of the CDROM device. Normally the |
| 928 |
CD/DVD/ISO is disconnected from the virtual machine when it |
949 |
CD/DVD/ISO is disconnected from the virtual machine when |
| 929 |
is no longer needed.</para> |
950 |
it is no longer needed.</para> |
| 930 |
|
951 |
|
| 931 |
<mediaobject> |
952 |
<mediaobject> |
| 932 |
<imageobject> |
953 |
<imageobject> |
| 933 |
<imagedata fileref="virtualization/vmware-freebsd11"/> |
954 |
<imagedata fileref="virtualization/vmware-freebsd11"/> |
| 934 |
</imageobject> |
955 |
</imageobject> |
| 935 |
</mediaobject> |
956 |
</mediaobject> |
| 936 |
|
957 |
|
| 937 |
<para>The last thing to change is how the virtual machine will |
958 |
<para>The last thing to change is how the virtual machine |
| 938 |
connect to the network. To allow connections to the virtual |
959 |
will connect to the network. To allow connections to |
| 939 |
machine from other machines besides the host, choose |
960 |
the virtual machine from other machines besides the |
| 940 |
<guimenuitem>Connect directly to the physical network |
961 |
host, choose <guimenuitem>Connect directly to the |
| 941 |
(Bridged)</guimenuitem>. Otherwise, <guimenuitem>Share the |
962 |
physical network (Bridged)</guimenuitem>. Otherwise, |
| 942 |
host's internet connection (NAT)</guimenuitem> is |
963 |
<guimenuitem>Share the |
| 943 |
preferred so that the virtual machine can have access to the |
964 |
host's internet connection (NAT)</guimenuitem> is |
| 944 |
Internet, but the network cannot access the virtual |
965 |
preferred so that the virtual machine can have access |
| 945 |
machine.</para> |
966 |
to the Internet, but the network cannot access the |
|
|
967 |
virtual machine.</para> |
| 946 |
|
968 |
|
| 947 |
<mediaobject> |
969 |
<mediaobject> |
| 948 |
<imageobject> |
970 |
<imageobject> |
| 949 |
<imagedata fileref="virtualization/vmware-freebsd12"/> |
971 |
<imagedata fileref="virtualization/vmware-freebsd12"/> |
| 950 |
</imageobject> |
972 |
</imageobject> |
| 951 |
</mediaobject> |
973 |
</mediaobject> |
| 952 |
|
974 |
|
| 953 |
<para>After modifying the settings, boot the newly installed |
975 |
<para>After modifying the settings, boot the newly |
| 954 |
&os; virtual machine.</para> |
976 |
installed &os; virtual machine.</para> |
| 955 |
</sect3> |
977 |
</sect3> |
| 956 |
|
978 |
|
| 957 |
<sect3 xml:id="virtualization-guest-vmware-configure"> |
979 |
<sect3 xml:id="virtualization-guest-vmware-configure"> |
| 958 |
<title>Configuring &os; on <application>VMware |
980 |
<title>Configuring &os; on <application>VMware |
| 959 |
Fusion</application></title> |
981 |
Fusion</application></title> |
| 960 |
|
982 |
|
| 961 |
<para>After &os; has been successfully installed on &macos; X |
983 |
<para>After &os; has been successfully installed on |
| 962 |
with <application>VMware Fusion</application>, there are a |
984 |
&macos; X with <application>VMware Fusion</application>, |
| 963 |
number of configuration steps that can be taken to optimize |
985 |
there are a number of configuration steps that can be |
| 964 |
the system for virtualized operation.</para> |
986 |
taken to optimize the system for virtualized |
|
|
987 |
operation.</para> |
| 965 |
|
988 |
|
| 966 |
<procedure> |
989 |
<procedure> |
| 967 |
<step> |
990 |
<step> |
| 968 |
<title>Set Boot Loader Variables</title> |
991 |
<title>Set Boot Loader Variables</title> |
| 969 |
|
992 |
|
| 970 |
<para>The most important step is to reduce the |
993 |
<para>The most important step is to reduce the |
| 971 |
<option>kern.hz</option> tunable to reduce the CPU |
994 |
<option>kern.hz</option> tunable to reduce the CPU |
| 972 |
utilization of &os; under the |
995 |
utilization of &os; under the |
| 973 |
<application>VMware Fusion</application> environment. |
996 |
<application>VMware Fusion</application> |
| 974 |
This is accomplished by adding the following line to |
997 |
environment. This is accomplished by adding the |
| 975 |
<filename>/boot/loader.conf</filename>:</para> |
998 |
following line to |
|
|
999 |
<filename>/boot/loader.conf</filename>:</para> |
| 976 |
|
1000 |
|
| 977 |
<programlisting>kern.hz=100</programlisting> |
1001 |
<programlisting>kern.hz=100</programlisting> |
| 978 |
|
1002 |
|
| 979 |
<para>Without this setting, an idle &os; |
1003 |
<para>Without this setting, an idle &os; |
| 980 |
<application>VMware Fusion</application> guest will use |
1004 |
<application>VMware Fusion</application> guest will |
| 981 |
roughly 15% of the CPU of a single processor &imac;. |
1005 |
use roughly 15% of the CPU of a single processor |
| 982 |
After this change, the usage will be closer to |
1006 |
&imac;. After this change, the usage will be closer |
| 983 |
5%.</para> |
1007 |
to 5%.</para> |
| 984 |
</step> |
1008 |
</step> |
| 985 |
|
1009 |
|
| 986 |
<step> |
1010 |
<step> |
| 987 |
<title>Create a New Kernel Configuration File</title> |
1011 |
<title>Create a New Kernel Configuration File</title> |
| 988 |
|
1012 |
|
| 989 |
<para>All of the FireWire, and USB device drivers can be |
1013 |
<para>All of the FireWire, and USB device drivers can |
| 990 |
removed from a custom kernel configuration file. |
1014 |
be removed from a custom kernel configuration file. |
| 991 |
<application>VMware Fusion</application> provides a |
1015 |
<application>VMware Fusion</application> provides a |
| 992 |
virtual network adapter used by the &man.em.4; driver, |
1016 |
virtual network adapter used by the &man.em.4; |
| 993 |
so all network devices except for &man.em.4; can be |
1017 |
driver, so all network devices except for |
| 994 |
removed from the kernel.</para> |
1018 |
&man.em.4; can be removed from the kernel.</para> |
| 995 |
</step> |
1019 |
</step> |
| 996 |
|
1020 |
|
| 997 |
<step> |
1021 |
<step> |
| 998 |
<title>Configure Networking</title> |
1022 |
<title>Configure Networking</title> |
| 999 |
|
1023 |
|
| 1000 |
<para>The most basic networking setup uses DHCP to connect |
1024 |
<para>The most basic networking setup uses DHCP to |
| 1001 |
the virtual machine to the same local area network as |
1025 |
connect the virtual machine to the same local area |
| 1002 |
the host &mac;. This can be accomplished by adding |
1026 |
network as the host &mac;. This can be accomplished |
| 1003 |
<literal>ifconfig_em0="DHCP"</literal> to |
1027 |
by adding <literal>ifconfig_em0="DHCP"</literal> to |
| 1004 |
<filename>/etc/rc.conf</filename>. More advanced |
1028 |
<filename>/etc/rc.conf</filename>. More advanced |
| 1005 |
networking setups are described in |
1029 |
networking setups are described in |
| 1006 |
<xref linkend="advanced-networking"/>.</para> |
1030 |
<xref linkend="advanced-networking"/>.</para> |
| 1007 |
</step> |
1031 |
</step> |
| 1008 |
</procedure> |
1032 |
</procedure> |
| 1009 |
</sect3> |
1033 |
</sect3> |
| 1010 |
</sect2> |
1034 |
</sect2> |
| 1011 |
|
1035 |
|
| 1012 |
<sect2 xml:id="virtualization-guest-virtualbox-guest-additions"> |
1036 |
<sect2 |
| 1013 |
<title>&virtualbox; Guest Additions on a &os; Guest</title> |
1037 |
xml:id="virtualization-guest-virtualbox-guest-additions"> |
|
|
1038 |
<title>&virtualbox; Guest Additions on a &os; Guest</title> |
| 1014 |
|
1039 |
|
| 1015 |
<para>The <application>&virtualbox;</application> guest |
1040 |
<para>The <application>&virtualbox;</application> guest |
| 1016 |
additions provide support for:</para> |
1041 |
additions provide support for:</para> |
| 1017 |
|
1042 |
|
| 1018 |
<itemizedlist> |
1043 |
<itemizedlist> |
| 1019 |
<listitem> |
1044 |
<listitem> |
| 1020 |
<para>Clipboard sharing.</para> |
1045 |
<para>Clipboard sharing.</para> |
| 1021 |
</listitem> |
1046 |
</listitem> |
| 1022 |
|
1047 |
|
| 1023 |
<listitem> |
1048 |
<listitem> |
| 1024 |
<para>Mouse pointer integration.</para> |
1049 |
<para>Mouse pointer integration.</para> |
| 1025 |
</listitem> |
1050 |
</listitem> |
| 1026 |
|
1051 |
|
| 1027 |
<listitem> |
1052 |
<listitem> |
| 1028 |
<para>Host time synchronization.</para> |
1053 |
<para>Host time synchronization.</para> |
| 1029 |
</listitem> |
1054 |
</listitem> |
| 1030 |
|
1055 |
|
| 1031 |
<listitem> |
1056 |
<listitem> |
| 1032 |
<para>Window scaling.</para> |
1057 |
<para>Window scaling.</para> |
| 1033 |
</listitem> |
1058 |
</listitem> |
| 1034 |
|
1059 |
|
| 1035 |
<listitem> |
1060 |
<listitem> |
| 1036 |
<para>Seamless mode.</para> |
1061 |
<para>Seamless mode.</para> |
| 1037 |
</listitem> |
1062 |
</listitem> |
| 1038 |
</itemizedlist> |
1063 |
</itemizedlist> |
| 1039 |
|
1064 |
|
| 1040 |
<note> |
1065 |
<note> |
| 1041 |
<para>The following commands are run in the &os; guest.</para> |
1066 |
<para>The following commands are run in the &os; |
| 1042 |
</note> |
1067 |
guest.</para> |
|
|
1068 |
</note> |
| 1043 |
|
1069 |
|
| 1044 |
<para>First, install the |
1070 |
<para>First, install the |
| 1045 |
<package>emulators/virtualbox-ose-additions</package> package |
1071 |
<package>emulators/virtualbox-ose-additions</package> |
| 1046 |
or port in the &os; guest. This will install the port:</para> |
1072 |
package or port in the &os; guest. This will install the |
|
|
1073 |
port:</para> |
| 1047 |
|
1074 |
|
| 1048 |
<screen>&prompt.root; <userinput>cd /usr/ports/emulators/virtualbox-ose-additions && make install clean</userinput></screen> |
1075 |
<screen>&prompt.root; <userinput>cd /usr/ports/emulators/virtualbox-ose-additions && make install clean</userinput></screen> |
| 1049 |
|
1076 |
|
| 1050 |
<para>Add these lines to |
1077 |
<para>Add these lines to |
| 1051 |
<filename>/etc/rc.conf</filename>:</para> |
1078 |
<filename>/etc/rc.conf</filename>:</para> |
| 1052 |
|
1079 |
|
| 1053 |
<programlisting>vboxguest_enable="YES" |
1080 |
<programlisting>vboxguest_enable="YES" |
| 1054 |
vboxservice_enable="YES"</programlisting> |
1081 |
vboxservice_enable="YES"</programlisting> |
| 1055 |
|
1082 |
|
| 1056 |
<para>When <application>Xorg</application> will be used in the |
1083 |
<para>When <application>Xorg</application> will be used in |
| 1057 |
guest, any required supporting services must also be enabled |
1084 |
the guest, any required supporting services must also be |
| 1058 |
just as if the guest was a physical machine. Typically, these |
1085 |
enabled just as if the guest was a physical machine. |
| 1059 |
lines would also be added to |
1086 |
Typically, these lines would also be added to |
| 1060 |
<filename>/etc/rc.conf</filename>:</para> |
1087 |
<filename>/etc/rc.conf</filename>:</para> |
| 1061 |
|
1088 |
|
| 1062 |
<programlisting>hald_enable="YES" |
1089 |
<programlisting>hald_enable="YES" |
| 1063 |
dbus_enable="YES"</programlisting> |
1090 |
dbus_enable="YES"</programlisting> |
| 1064 |
|
1091 |
|
| 1065 |
<para>See <xref linkend="x-config"/> for details.</para> |
1092 |
<para>See <xref linkend="x-config"/> for details.</para> |
| 1066 |
|
1093 |
|
| 1067 |
<para>If &man.ntpd.8; or &man.ntpdate.8; is used, disable host |
1094 |
<para>If &man.ntpd.8; or &man.ntpdate.8; is used, disable |
| 1068 |
time synchronization:</para> |
1095 |
host time synchronization:</para> |
| 1069 |
|
1096 |
|
| 1070 |
<programlisting>vboxservice_flags="--disable-timesync"</programlisting> |
1097 |
<programlisting>vboxservice_flags="--disable-timesync"</programlisting> |
| 1071 |
|
1098 |
|
| 1072 |
<para><application>Xorg</application> will automatically |
1099 |
<para><application>Xorg</application> will automatically |
| 1073 |
recognize the <literal>vboxvideo</literal> driver. |
1100 |
recognize the <literal>vboxvideo</literal> driver. |
| 1074 |
It can also be manually entered in |
1101 |
It can also be manually entered in |
| 1075 |
<filename>/etc/X11/xorg.conf</filename>:</para> |
1102 |
<filename>/etc/X11/xorg.conf</filename>:</para> |
| 1076 |
|
1103 |
|
| 1077 |
<programlisting>Section "Device" |
1104 |
<programlisting>Section "Device" |
| 1078 |
### Available Driver options are:- |
1105 |
### Available Driver options are:- |
| 1079 |
### Values: <i>: integer, <f>: float, <bool>: "True"/"False", |
1106 |
### Values: <i>: integer, <f>: float, <bool>: "True"/"False", |
| 1080 |
### <string>: "String", <freq>: "<f> Hz/kHz/MHz" |
1107 |
### <string>: "String", <freq>: "<f> Hz/kHz/MHz" |
| 1081 |
### [arg]: arg optional |
1108 |
### [arg]: arg optional |
| 1082 |
Identifier "Card0" |
1109 |
Identifier "Card0" |
| 1083 |
Driver "vboxvideo" |
1110 |
Driver "vboxvideo" |
| 1084 |
VendorName "InnoTek Systemberatung GmbH" |
1111 |
VendorName "InnoTek Systemberatung GmbH" |
| 1085 |
BoardName "VirtualBox Graphics Adapter" |
1112 |
BoardName "VirtualBox Graphics Adapter" |
| 1086 |
BusID "PCI:0:2:0" |
1113 |
BusID "PCI:0:2:0" |
| 1087 |
EndSection</programlisting> |
1114 |
EndSection</programlisting> |
| 1088 |
|
1115 |
|
| 1089 |
<para>To use the <literal>vboxmouse</literal> driver, adjust the |
1116 |
<para>To use the <literal>vboxmouse</literal> driver, adjust |
| 1090 |
mouse section in |
1117 |
the mouse section in |
| 1091 |
<filename>/etc/X11/xorg.conf</filename>:</para> |
1118 |
<filename>/etc/X11/xorg.conf</filename>:</para> |
| 1092 |
|
1119 |
|
| 1093 |
<programlisting>Section "InputDevice" |
1120 |
<programlisting>Section "InputDevice" |
| 1094 |
Identifier "Mouse0" |
1121 |
Identifier "Mouse0" |
| 1095 |
Driver "vboxmouse" |
1122 |
Driver "vboxmouse" |
| 1096 |
EndSection</programlisting> |
1123 |
EndSection</programlisting> |
| 1097 |
|
1124 |
|
| 1098 |
<para><acronym>HAL</acronym> users should create the following |
1125 |
<para><acronym>HAL</acronym> users should create the |
| 1099 |
<filename>/usr/local/etc/hal/fdi/policy/90-vboxguest.fdi</filename> |
1126 |
following |
| 1100 |
or copy it from |
1127 |
<filename>/usr/local/etc/hal/fdi/policy/90-vboxguest.fdi</filename> |
| 1101 |
<filename>/usr/local/share/hal/fdi/policy/10osvendor/90-vboxguest.fdi</filename>:</para> |
1128 |
or copy it from |
|
|
1129 |
<filename>/usr/local/share/hal/fdi/policy/10osvendor/90-vboxguest.fdi</filename>:</para> |
| 1102 |
|
1130 |
|
| 1103 |
<programlisting><?xml version="1.0" encoding="utf-8"?> |
1131 |
<programlisting><?xml version="1.0" encoding="utf-8"?> |
| 1104 |
<!-- |
1132 |
<!-- |
| 1105 |
# Sun VirtualBox |
1133 |
# Sun VirtualBox |
| 1106 |
# Hal driver description for the vboxmouse driver |
1134 |
# Hal driver description for the vboxmouse driver |
| 1107 |
# $Id: chapter.xml,v 1.33 2012-03-17 04:53:52 eadler Exp $ |
1135 |
# $Id: chapter.xml,v 1.33 2012-03-17 04:53:52 eadler Exp $ |
| 1108 |
|
1136 |
|
| 1109 |
Copyright (C) 2008-2009 Sun Microsystems, Inc. |
1137 |
Copyright (C) 2008-2009 Sun Microsystems, Inc. |
| 1110 |
|
1138 |
|
| 1111 |
This file is part of VirtualBox Open Source Edition (OSE, as |
1139 |
This file is part of VirtualBox Open Source Edition (OSE, as |
| 1112 |
available from http://www.virtualbox.org. This file is free software; |
1140 |
available from http://www.virtualbox.org. This file is free software; |
| 1113 |
you can redistribute it and/or modify it under the terms of the GNU |
1141 |
you can redistribute it and/or modify it under the terms of the GNU |
| 1114 |
General Public License (GPL) as published by the Free Software |
1142 |
General Public License (GPL) as published by the Free Software |
| 1115 |
Foundation, in version 2 as it comes in the "COPYING" file of the |
1143 |
Foundation, in version 2 as it comes in the "COPYING" file of the |
| 1116 |
VirtualBox OSE distribution. VirtualBox OSE is distributed in the |
1144 |
VirtualBox OSE distribution. VirtualBox OSE is distributed in the |
| 1117 |
hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. |
1145 |
hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. |
| 1118 |
|
1146 |
|
| 1119 |
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa |
1147 |
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa |
| 1120 |
Clara, CA 95054 USA or visit http://www.sun.com if you need |
1148 |
Clara, CA 95054 USA or visit http://www.sun.com if you need |
| 1121 |
additional information or have any questions. |
1149 |
additional information or have any questions. |
| 1122 |
--> |
1150 |
--> |
| 1123 |
<deviceinfo version="0.2"> |
1151 |
<deviceinfo version="0.2"> |
| 1124 |
<device> |
1152 |
<device> |
| 1125 |
<match key="info.subsystem" string="pci"> |
1153 |
<match key="info.subsystem" string="pci"> |
| 1126 |
<match key="info.product" string="VirtualBox guest Service"> |
1154 |
<match key="info.product" string="VirtualBox guest Service"> |
| 1127 |
<append key="info.capabilities" type="strlist">input</append> |
1155 |
<append key="info.capabilities" type="strlist">input</append> |
| 1128 |
<append key="info.capabilities" type="strlist">input.mouse</append> |
1156 |
<append key="info.capabilities" type="strlist">input.mouse</append> |
| 1129 |
<merge key="input.x11_driver" type="string">vboxmouse</merge> |
1157 |
<merge key="input.x11_driver" type="string">vboxmouse</merge> |
| 1130 |
<merge key="input.device" type="string">/dev/vboxguest</merge> |
1158 |
<merge key="input.device" type="string">/dev/vboxguest</merge> |
| 1131 |
</match> |
1159 |
</match> |
| 1132 |
</match> |
1160 |
</match> |
| 1133 |
</device> |
1161 |
</device> |
| 1134 |
</deviceinfo></programlisting> |
1162 |
</deviceinfo></programlisting> |
| 1135 |
</sect2> |
1163 |
</sect2> |
| 1136 |
</sect1> |
1164 |
</sect1> |
| 1137 |
|
1165 |
|
|
Lines 1320-1337
Link Here
|
| 1320 |
requires a computer with a newer processor that supports &intel; |
1348 |
requires a computer with a newer processor that supports &intel; |
| 1321 |
Extended Page Tables (<acronym>EPT</acronym>) or &amd; Rapid |
1349 |
Extended Page Tables (<acronym>EPT</acronym>) or &amd; Rapid |
| 1322 |
Virtualization Indexing (<acronym>RVI</acronym>), also known as |
1350 |
Virtualization Indexing (<acronym>RVI</acronym>), also known as |
| 1323 |
Nested Page Tables (<acronym>NPT</acronym>). Most newer |
1351 |
Nested Page Tables (<acronym>NPT</acronym>). In addition, to |
| 1324 |
processors, specifically the &intel; &core; i3/i5/i7 and |
1352 |
host &linux; guests, or &os; guests with more than one vCPU, |
| 1325 |
&intel; &xeon; E3/E5/E7, support this feature. For a |
1353 |
VMX unrestricted mode support (<acronym>UG</acronym>) is also |
| 1326 |
complete list of &intel; processors that support |
1354 |
required. Most newer processors, specifically the &intel; |
| 1327 |
<acronym>EPT</acronym>, refer to <link |
1355 |
&core; i3/i5/i7 and &intel; &xeon; E3/E5/E7 support these |
|
|
1356 |
features. <acronym>UG</acronym> support was introduced with the |
| 1357 |
Westmere micro-architecture. For a complete list of &intel; |
| 1358 |
processors that support <acronym>EPT</acronym>, refer to <link |
| 1328 |
xlink:href="http://ark.intel.com/search/advanced?s=t&ExtendedPageTables=true">http://ark.intel.com/search/advanced?s=t&ExtendedPageTables=true</link>. |
1359 |
xlink:href="http://ark.intel.com/search/advanced?s=t&ExtendedPageTables=true">http://ark.intel.com/search/advanced?s=t&ExtendedPageTables=true</link>. |
| 1329 |
<acronym>RVI</acronym> is found on the 3rd generation and later |
1360 |
<acronym>RVI</acronym> is found on the third generation and |
| 1330 |
of the &amd.opteron; (Barcelona) processors. The easiest way to |
1361 |
later of the &amd.opteron; (Barcelona) processors. The easiest |
| 1331 |
check for support of <acronym>EPT</acronym> or |
1362 |
way to check for support of <acronym>EPT</acronym>, |
| 1332 |
<acronym>RVI</acronym> is to look for the |
1363 |
<acronym>RVI</acronym>, or <acronym>UG</acronym> is to look for |
| 1333 |
<literal>POPCNT</literal> processor feature flag on the |
1364 |
the <literal>POPCNT</literal> processor feature flag on the |
| 1334 |
<literal>Features2</literal> line in <command>dmesg</command> or |
1365 |
<literal>Features2</literal> line and <literal>EPT</literal> and |
|
|
1366 |
<literal>UG</literal> on the <literal>VT-x</literal> line in |
| 1367 |
command>dmesg</command> or |
| 1335 |
<filename>/var/run/dmesg.boot</filename>.</para> |
1368 |
<filename>/var/run/dmesg.boot</filename>.</para> |
| 1336 |
|
1369 |
|
| 1337 |
<sect2 xml:id="virtualization-bhyve-prep"> |
1370 |
<sect2 xml:id="virtualization-bhyve-prep"> |
|
Lines 1506-1511
Link Here
|
| 1506 |
<screen>&prompt.root; <userinput>bhyvectl --destroy --vm=<replaceable>linuxguest</replaceable></userinput></screen> |
1539 |
<screen>&prompt.root; <userinput>bhyvectl --destroy --vm=<replaceable>linuxguest</replaceable></userinput></screen> |
| 1507 |
</sect2> |
1540 |
</sect2> |
| 1508 |
|
1541 |
|
|
|
1542 |
|
| 1543 |
<sect2 xml:id="virtualization-bhyve-zfs"> |
| 1544 |
<title>Using ZFS with Bhyve Guests</title> |
| 1545 |
|
| 1546 |
<para>If the host machine is running on ZFS, using ZFS volumes |
| 1547 |
instead of disk image files may provide significant |
| 1548 |
performance benefits for the bhyve guest VMs. A ZFS volume |
| 1549 |
can be created by:</para> |
| 1550 |
|
| 1551 |
<screen>&prompt.root; <userinput>zfs create -V16G -o volmode=dev zroot/vdisk0 </screen></userinput> </screen> |
| 1552 |
|
| 1553 |
<para>Once created, the ZFS volume can be specified as the disk |
| 1554 |
drive when invoking bhyve to start the guest vm:</para> |
| 1555 |
|
| 1556 |
<screen>&prompt.root; <userinput>bhyve -AI -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap1 -s3:0,ahci-hd,/dev/zroot/vdisk0 \ |
| 1557 |
-l com1,stdio -c <replaceable>4</replaceable> -m <replaceable>1024M</replaceable> <replaceable>linuxguest</replaceable></userinput></screen> |
| 1558 |
</sect2> |
| 1559 |
|
| 1509 |
<sect2 xml:id="virtualization-bhyve-nmdm"> |
1560 |
<sect2 xml:id="virtualization-bhyve-nmdm"> |
| 1510 |
<title>Virtual Machine Consoles</title> |
1561 |
<title>Virtual Machine Consoles</title> |
| 1511 |
|
1562 |
|
|
Lines 1525-1530
Link Here
|
| 1525 |
(<filename>/dev/nmdm1A</filename> and |
1576 |
(<filename>/dev/nmdm1A</filename> and |
| 1526 |
<filename>/dev/nmdm1B</filename>). See &man.nmdm.4; for more |
1577 |
<filename>/dev/nmdm1B</filename>). See &man.nmdm.4; for more |
| 1527 |
information.</para> |
1578 |
information.</para> |
|
|
1579 |
<para>The example below shows how to boot the &linux; guest |
| 1580 |
created above with the console redirected to the null modem. |
| 1581 |
&os; guests can be configured similarly.</para> |
| 1528 |
|
1582 |
|
| 1529 |
<screen>&prompt.root; <userinput>kldload nmdm</userinput> |
1583 |
<screen>&prompt.root; <userinput>kldload nmdm</userinput> |
| 1530 |
&prompt.root; <userinput>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 \ |
1584 |
&prompt.root; <userinput>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 \ |