2007-10-12 19:41:09 +02:00
<!--
The FreeBSD Documentation Project
The FreeBSD Traditional Chinese Documentation Project
$FreeBSD$
2007-10-15 05:47:36 +02:00
Original revision: 1.12
2007-10-12 19:41:09 +02:00
-->
<chapter id="virtualization">
<chapterinfo>
<authorgroup>
<author>
<firstname>Murray</firstname>
<surname>Stokely</surname>
<contrib>Contributed by </contrib>
</author>
</authorgroup>
<!-- Mar 2007 -->
</chapterinfo>
<title>Virtualization(<28> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> )</title>
<sect1 id="virtualization-synopsis">
<title>Synopsis</title>
<para><3E> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> n<EFBFBD> <6E> <EFBFBD> i<EFBFBD> H<EFBFBD> <48> <EFBFBD> P<EFBFBD> @<40> x<EFBFBD> <78> <EFBFBD> <EFBFBD> <EFBFBD> o<EFBFBD> H<EFBFBD> P<EFBFBD> ɰ<EFBFBD> <C9B0> <EFBFBD> <EFBFBD> h<EFBFBD> ا @<40> ~<7E> t<EFBFBD> Ρ C <20> b PC <20> W<EFBFBD> A
<20> q<EFBFBD> `<60> o<EFBFBD> <6F> <EFBFBD> t<EFBFBD> γ <EFBFBD> <CEB3> O<EFBFBD> b<EFBFBD> J<EFBFBD> D(host)<29> <> <EFBFBD> <EFBFBD> <EFBFBD> W<EFBFBD> ˵<EFBFBD> <CBB5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> n<EFBFBD> <6E> <EFBFBD> A<EFBFBD> Ӷ]<5D> @<40> <> guest OS
<20> C</para>
<para>Ū<> <C5AA> <EFBFBD> o<EFBFBD> <6F> <EFBFBD> A<EFBFBD> z<EFBFBD> N<EFBFBD> F<EFBFBD> ѡ J</para>
<itemizedlist>
<listitem>
<para>host OS <20> H<EFBFBD> <48> guest OS <20> <> <EFBFBD> ϧO<CFA7> C</para>
</listitem>
2007-10-15 05:47:36 +02:00
<listitem>
<para><3E> p<EFBFBD> <70> <EFBFBD> b<EFBFBD> f<EFBFBD> <66> &intel; CPU <20> <> &apple; &macintosh; <20> q<EFBFBD> <71> <EFBFBD> W<EFBFBD> w<EFBFBD> <77> FreeBSD
<20> C</para>
</listitem>
2007-10-12 19:41:09 +02:00
<listitem>
<para><3E> p<EFBFBD> <70> <EFBFBD> b Linux <20> W<EFBFBD> H <application>&xen;</application> <20> Ӧw<D3A6> <77>
FreeBSD<53> C</para>
</listitem>
<listitem>
2007-10-15 05:47:36 +02:00
<para><3E> p<EFBFBD> <70> <EFBFBD> b µsoft.windows; <20> W<EFBFBD> H <application>Virtual PC</application>
<20> w<EFBFBD> <77> FreeBSD<53> C</para>
2007-10-12 19:41:09 +02:00
</listitem>
<listitem>
<para><3E> p<EFBFBD> <70> <EFBFBD> b<EFBFBD> <62> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> FreeBSD <20> t<EFBFBD> Χ @<40> ʯ<EFBFBD> <CAAF> ծա A<D5A1> H<EFBFBD> <48> <EFBFBD> o<EFBFBD> ̨ήį<CEAE> <C4AF> C</para>
</listitem>
</itemizedlist>
<para><3E> b<EFBFBD> }<7D> l<EFBFBD> \Ū<> o<EFBFBD> <6F> <EFBFBD> <EFBFBD> <EFBFBD> e<EFBFBD> A<EFBFBD> z<EFBFBD> ݭn<DDAD> J</para>
<itemizedlist>
<listitem>
<para><3E> A<EFBFBD> <41> &unix; <20> <> FreeBSD <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <F2A5BBB7> <EFBFBD>
(<xref linkend="basics">)<29> C</para>
</listitem>
<listitem><para><3E> <> <EFBFBD> D<EFBFBD> p<EFBFBD> <70> <EFBFBD> w<EFBFBD> <77> FreeBSD(<xref
linkend="install">)<29> C</para></listitem>
<listitem><para><3E> <> <EFBFBD> D<EFBFBD> p<EFBFBD> <70> <EFBFBD> ]<5D> w<EFBFBD> <77> <EFBFBD> <EFBFBD> (<xref
linkend="advanced-networking">)<29> C</para></listitem>
<listitem><para><3E> <> <EFBFBD> D<EFBFBD> p<EFBFBD> <70> <EFBFBD> H ports/packages <20> Ӧw<D3A6> <77> <EFBFBD> <EFBFBD> <EFBFBD> ε{<7B> <>
(<xref linkend="ports">)<29> C</para></listitem>
</itemizedlist>
</sect1>
<sect1 id="virtualization-guest">
<title><3E> w<EFBFBD> <77> FreeBSD <20> <> Guest OS</title>
<sect2 id="virtualization-guest-parallels">
<title>MacOS <20> W<EFBFBD> <57> Parallels</title>
<para>&mac; <20> <> <EFBFBD> <EFBFBD> <application>Parallels Desktop</application>
<09> D<EFBFBD> O<EFBFBD> i<EFBFBD> Ω<EFBFBD> <CEA9> f<EFBFBD> t &intel; CPU <20> H<EFBFBD> <48> &macos; 10.4.6 <20> H<EFBFBD> W<EFBFBD> <57> &apple; &mac;
<09> q<EFBFBD> <71> <EFBFBD> <EFBFBD> <EFBFBD> ӷ~<7E> n<EFBFBD> <6E> <EFBFBD> C FreeBSD <20> O<EFBFBD> 䦳<EFBFBD> <E4A6B3> <EFBFBD> <EFBFBD> <EFBFBD> 䴩<EFBFBD> <E4B4A9> guest OS <20> <> <EFBFBD> @<40> C <20> b
&macos; X <20> ˦n <application>Parallels</application> <20> <> <EFBFBD> A
<09> <> <EFBFBD> <EFBFBD> <EFBFBD> w<EFBFBD> <77> <EFBFBD> ұ<EFBFBD> <D2B1> w<EFBFBD> ˪<EFBFBD> guest OS <20> ӧ@<40> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ]<5D> w<EFBFBD> C</para>
<sect3 id="virtualization-guest-parallels-install">
<title><3E> b Parallels/&macos; X <20> W<EFBFBD> w<EFBFBD> <77> FreeBSD</title>
<para><3E> b &macos; X/<application>Parallels</application> <20> W<EFBFBD> w<EFBFBD> <77> FreeBSD
<20> <> <EFBFBD> Ĥ@<40> B<EFBFBD> O<EFBFBD> s<EFBFBD> W<EFBFBD> <57> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> C <20> p<EFBFBD> U<EFBFBD> ҥܡA<DCA1> b<EFBFBD> <62> <EFBFBD> ܵ<EFBFBD> <DCB5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> б N
<guimenu>Guest OS Type</guimenu> <20> Ŀאּ
<guimenuitem>FreeBSD</guimenuitem><3E> G</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd1">
</imageobject>
</mediaobject>
<para><3E> è̾ڦۨ<DAA6> <DBA8> ݨD<DDA8> ӳW<D3B3> <57> <EFBFBD> w<EFBFBD> Юe<D0AE> q<EFBFBD> <71> <EFBFBD> O<EFBFBD> <4F> <EFBFBD> 骺<EFBFBD> <E9AABA> <EFBFBD> t<EFBFBD> C <20> <> <EFBFBD> j<EFBFBD> h<EFBFBD> Ʀ b
<application>Parallels</application> <20> ϥΪ<CFA5> <CEAA> <EFBFBD> <EFBFBD> p<EFBFBD> Ө<EFBFBD> <D3A8> A<EFBFBD> j<EFBFBD> <6A> 4GB
<20> w<EFBFBD> Х H<D0A5> <48> 512MB RAM <20> N<EFBFBD> <4E> <EFBFBD> Τ F<CEA4> G</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd2">
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd3">
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd4">
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd5">
</imageobject>
</mediaobject>
<para><3E> <> <EFBFBD> U<EFBFBD> ӡA<D3A1> <41> <EFBFBD> ܺ<EFBFBD> <DCBA> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> H<EFBFBD> κ<EFBFBD> <CEBA> <EFBFBD> <EFBFBD> d<EFBFBD> G</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd6">
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd7">
</imageobject>
</mediaobject>
<para><3E> ̫<EFBFBD> <CCAB> A<EFBFBD> x<EFBFBD> s<EFBFBD> ]<5D> w<EFBFBD> ɴN<C9B4> <4E> <EFBFBD> <EFBFBD> <EFBFBD> ]<5D> w<EFBFBD> F<EFBFBD> G</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd8">
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd9">
</imageobject>
</mediaobject>
<para><3E> b FreeBSD <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> s<EFBFBD> W<EFBFBD> <57> <EFBFBD> A<EFBFBD> N<EFBFBD> i<EFBFBD> H<EFBFBD> ~<7E> <> <EFBFBD> H<EFBFBD> <48> <EFBFBD> w<EFBFBD> <77> FreeBSD<53> C
<20> w<EFBFBD> ˤ譱<CBA4> A<EFBFBD> <41> <EFBFBD> <EFBFBD> <EFBFBD> n<EFBFBD> <6E> <EFBFBD> @<40> k<EFBFBD> O<EFBFBD> ϥΩx<CEA9> 誺 FreeBSD <20> <> <EFBFBD> ЩΪ̱q<CCB1> x<EFBFBD> <78> FTP
<20> <> <EFBFBD> U<EFBFBD> <55> ISO image <20> ɡ C <20> Y<EFBFBD> z<EFBFBD> <7A> &mac; <20> <> <EFBFBD> <EFBFBD> <EFBFBD> w<EFBFBD> g<EFBFBD> <67> <EFBFBD> <EFBFBD> ISO <20> ɡ A
<20> Ϊ<EFBFBD> &mac; <20> <> <EFBFBD> <EFBFBD> <EFBFBD> о <EFBFBD> <D0BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> w<EFBFBD> ˤ<EFBFBD> <CBA4> A<EFBFBD> <41> <EFBFBD> <EFBFBD> <EFBFBD> N<EFBFBD> i<EFBFBD> H<EFBFBD> b FreeBSD <20> <>
<application>Parallels</application> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> k<EFBFBD> U<EFBFBD> <55> <EFBFBD> <EFBFBD> <EFBFBD> U<EFBFBD> <55> <EFBFBD> Ф<EFBFBD> <D0A4> ϥܡC
<20> <> <EFBFBD> ۷ |<7C> X<EFBFBD> {<7B> @<40> ӵ<EFBFBD> <D3B5> <EFBFBD> <EFBFBD> A<EFBFBD> i<EFBFBD> H<EFBFBD> <48> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> о <EFBFBD> <D0BE> ]<5D> w<EFBFBD> <77> <EFBFBD> <EFBFBD> ISO <20> ɡ A
<20> Ϊ̬O<CCAC> <4F> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> о <EFBFBD> <D0BE> C</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd11">
</imageobject>
</mediaobject>
<para><3E> ]<5D> n<EFBFBD> <6E> <EFBFBD> Ф<EFBFBD> <D0A4> ӷ<EFBFBD> <D3B7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> A<EFBFBD> N<EFBFBD> i<EFBFBD> H<EFBFBD> <48> <EFBFBD> U<EFBFBD> <55> <EFBFBD> }<7D> <> <EFBFBD> ϥܥH<DCA5> <48> <EFBFBD> } FreeBSD
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> C <application>Parallels</application> <20> |<7C> H<EFBFBD> S<EFBFBD> <53> BIOS
<20> }<7D> <> <EFBFBD> A<EFBFBD> ûP<C3BB> <50> <EFBFBD> q<EFBFBD> <71> BIOS <20> @<40> ˷|<7C> <> <EFBFBD> ˬd<CBAC> O<EFBFBD> _<EFBFBD> <5F> <EFBFBD> <EFBFBD> <EFBFBD> о <EFBFBD> <D0BE> C</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd10">
</imageobject>
</mediaobject>
<para><3E> <> <EFBFBD> ɡ A<C9A1> <41> <EFBFBD> N<EFBFBD> |<7C> <> <EFBFBD> <EFBFBD> FreeBSD <20> w<EFBFBD> ˤ<EFBFBD> <CBA4> A<EFBFBD> ö}<7D> l<EFBFBD> b <xref
linkend="install"> <20> <> <EFBFBD> Ҥ<EFBFBD> <D2A4> Ш쪺
<application>sysinstall</application> <20> w<EFBFBD> ˹L<CBB9> {<7B> C <20> o<EFBFBD> ɭԤ]<5D> i<EFBFBD> <69> <EFBFBD> K<EFBFBD> <4B>
X11<31> A<EFBFBD> <41> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> n<EFBFBD> i<EFBFBD> <69> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ]<5D> w<EFBFBD> C</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd12">
</imageobject>
</mediaobject>
<para><3E> <> <EFBFBD> <EFBFBD> <EFBFBD> w<EFBFBD> ˹L<CBB9> {<7B> <> <EFBFBD> <EFBFBD> <EFBFBD> A<EFBFBD> N<EFBFBD> i<EFBFBD> H<EFBFBD> <48> <EFBFBD> }<7D> <> <EFBFBD> ˪<EFBFBD> FreeBSD <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> C</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/parallels-freebsd13">
</imageobject>
</mediaobject>
</sect3>
<sect3 id="virtualization-guest-parallels-configure">
<title><3E> b &macos; X/Parallels <20> W<EFBFBD> ]<5D> w FreeBSD</title>
<para><3E> <> FreeBSD <20> <> <EFBFBD> \<5C> ˨<EFBFBD> &macos; X <20> <>
<application>Parallels</application> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> A<EFBFBD> ٻݭn<DDAD> @<40> @<40> dz]<5D> w<EFBFBD> B<EFBFBD> J<EFBFBD> A
<20> H<EFBFBD> K<EFBFBD> N<EFBFBD> <4E> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> FreeBSD <20> ̨Τ ơC</para>
<procedure>
<step>
<title><3E> ]<5D> w boot loader <20> Ѽ<EFBFBD> </title>
<para><3E> ̭<EFBFBD> <CCAD> n<EFBFBD> <6E> <EFBFBD> B<EFBFBD> J<EFBFBD> D<EFBFBD> O<EFBFBD> ǥѽխ<D1BD> <option>kern.hz</option> <20> ӭ<EFBFBD> <D3AD> C
<application>Parallels</application> <20> <> <EFBFBD> Ҥ<EFBFBD> FreeBSD <20> <> CPU
<09> <> <EFBFBD> βv<CEB2> C <20> i<EFBFBD> H<EFBFBD> b <filename>/boot/loader.conf</filename>
<09> <> <EFBFBD> [<5B> W<EFBFBD> U<EFBFBD> C<EFBFBD> ]<5D> w<EFBFBD> Y<EFBFBD> i<EFBFBD> G</para>
<programlisting>kern.hz=100</programlisting>
<para><3E> Y<EFBFBD> <59> <EFBFBD> @<40> o<EFBFBD> ]<5D> w<EFBFBD> A<EFBFBD> <41> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> O idle <20> <> <EFBFBD> A<EFBFBD> <41> FreeBSD
<application>Parallels</application> guest OS
<09> N<EFBFBD> |<7C> b<EFBFBD> ȳ<EFBFBD> <C8B3> @<40> B<EFBFBD> z<EFBFBD> <7A> <EFBFBD> <EFBFBD> &imac; <20> W<EFBFBD> <57> <EFBFBD> F<EFBFBD> j<EFBFBD> <6A> 15% <20> <> CPU <20> <> <EFBFBD> βv<CEB2> C
<09> @<40> W<EFBFBD> z<EFBFBD> ק蠟<D7A7> <EFA4A7> <EFBFBD> A<EFBFBD> <41> <EFBFBD> βv<CEB2> N<EFBFBD> |<7C> <> <EFBFBD> ܤj<DCA4> <6A> 5%<25> C</para>
</step>
<step>
<title><3E> ]<5D> w<EFBFBD> s<EFBFBD> <73> kernel <20> ]<5D> w<EFBFBD> <77> </title>
<para><3E> i<EFBFBD> H<EFBFBD> <48> <EFBFBD> ߧ<EFBFBD> <DFA7> Ҧ<EFBFBD> SCSI<53> BFireWire<72> BUSB
<09> <> <EFBFBD> <EFBFBD> <EFBFBD> ]<5D> Ƴ<EFBFBD> <C6B3> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> C <application>Parallels</application>
<09> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> &man.ed.4; <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> d<EFBFBD> A<EFBFBD> ]<5D> <> <EFBFBD> A<EFBFBD> <41> <EFBFBD> F &man.ed.4; <20> H<EFBFBD> <48>
&man.miibus.4; <20> H<EFBFBD> ~<7E> <> <EFBFBD> <EFBFBD> <EFBFBD> L<EFBFBD> <4C> <EFBFBD> <EFBFBD> <EFBFBD> d<EFBFBD> ]<5D> <> <EFBFBD> i<EFBFBD> H<EFBFBD> q kernel <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> C</para>
</step>
<step>
<title><3E> ]<5D> w<EFBFBD> <77> <EFBFBD> <EFBFBD> </title>
<para><3E> i<EFBFBD> H<EFBFBD> <48> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ²<EFBFBD> <C2B2> <EFBFBD> <EFBFBD> DHCP <20> ӳ]<5D> w<EFBFBD> P &mac; <20> ۦP<DBA6> <50> LAN
<09> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ҡA<D2A1> u<EFBFBD> n<EFBFBD> b <filename>/etc/rc.conf</filename>
<09> <> <EFBFBD> [<5B> W <literal>ifconfig_ed0="DHCP"</literal> <20> Y<EFBFBD> i<EFBFBD> <69> <EFBFBD> <EFBFBD> <EFBFBD> C
<09> <> <EFBFBD> L<EFBFBD> i<EFBFBD> <69> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ]<5D> w<EFBFBD> 覡<EFBFBD> A<EFBFBD> а Ѧ<D0B0> <xref
linkend="advanced-networking"><3E> C</para>
</step>
</procedure>
</sect3>
</sect2>
<sect2 id="virtualization-guest-xen">
<sect2info>
<authorgroup>
<author>
<firstname>Fukang</firstname>
<surname>Chen (Loader)</surname>
<contrib>Contributed by </contrib>
</author>
</authorgroup>
<!-- Mar/Apr 2007 -->
</sect2info>
<title><3E> b Linux <20> z<EFBFBD> L &xen; <20> ] FreeBSD</title>
<para><application>&xen;</application> hypervisor <20> D<EFBFBD> O<EFBFBD> }<7D> X<F1B7BDBD> <58>
paravirtualization <20> <> <EFBFBD> ~<7E> A<EFBFBD> åѰӷ~<7E> <> <EFBFBD> q(XenSource)<29> <> <EFBFBD> Ѥ䴩<D1A4> C
Guest OS <20> q<EFBFBD> `<60> Q<EFBFBD> ٬<EFBFBD> domU domains<6E> A<EFBFBD> <41> host OS <20> h<EFBFBD> O<EFBFBD> Q<EFBFBD> ٬<EFBFBD> dom0<6D> C
<20> b Linux <20> W<EFBFBD> إ<EFBFBD> FreeBSD <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ĥ@<40> B<EFBFBD> A<EFBFBD> h<EFBFBD> O<EFBFBD> w<EFBFBD> <77> Linux dom0 <20> <>
<application>&xen;</application><3E> C <20> b<EFBFBD> <62> <EFBFBD> Ҥ<EFBFBD> <D2A4> A host OS <20> D<EFBFBD> O Slackware
Linux<75> C</para>
<sect3 id="xen-slackware-dom0">
<title><3E> b Linux dom0 <20> W<EFBFBD> ]<5D> w &xen; 3</title>
<procedure>
<step>
<title><3E> q XenSource <20> <> <EFBFBD> <EFBFBD> <EFBFBD> U<EFBFBD> <55> &xen; 3.0</title>
<para><3E> q <ulink url="http://www.xensource.com/"></ulink> <20> U<EFBFBD> <55>
<ulink
url="http://bits.xensource.com/oss-xen/release/3.0.4-1/src.tgz/xen-3.0.4_1-src.tgz">xen-3.0.4_1-src.tgz</ulink><3E> C</para>
</step>
<step>
<title><3E> <> <EFBFBD> <EFBFBD> <EFBFBD> Y</title>
<screen>&prompt.root; <userinput>cd xen-3.0.4_1-src</userinput>
&prompt.root; <userinput>KERNELS="linux-2.6-xen0 linux-2.6-xenU" make world</userinput>
&prompt.root; <userinput>make install</userinput></screen>
<note>
<para><3E> <> dom0 <20> <> <EFBFBD> s<EFBFBD> sĶ kernel<65> G</para>
<screen>&prompt.root; <userinput>cd xen-3.0.4_1-src/linux-2.6.16.33-xen0</userinput>
&prompt.root; <userinput>make menuconfig</userinput>
&prompt.root; <userinput>make</userinput>
&prompt.root; <userinput>make install</userinput></screen>
<para><3E> ª<EFBFBD> <C2AA> <EFBFBD> <application>&xen;</application> <20> i<EFBFBD> <69> <EFBFBD> ݭn<DDAD> <6E>
<command>make ARCH=xen menuconfig</command></para>
</note>
</step>
<step>
<title><3E> W<EFBFBD> [<5B> ﶵ<EFBFBD> <EFB6B5> Grub <20> <> menu.lst <20> <> <EFBFBD> <EFBFBD> </title>
<para><3E> ק<EFBFBD> <filename>/boot/grub/menu.lst</filename>
<09> [<5B> W<EFBFBD> U<EFBFBD> C<EFBFBD> ]<5D> w<EFBFBD> G</para>
<programlisting>title Xen-3.0.4
root (hd0,0)
kernel /boot/xen-3.0.4-1.gz dom0_mem=262144
module /boot/vmlinuz-2.6.16.33-xen0 root=/dev/hda1 ro</programlisting>
</step>
<step>
<title><3E> <> <EFBFBD> }<7D> <> <EFBFBD> öi<C3B6> J &xen;</title>
<para><3E> <> <EFBFBD> <EFBFBD> <EFBFBD> A<EFBFBD> ק<EFBFBD>
<filename>/etc/xen/xend-config.sxp</filename>
<09> [<5B> W<EFBFBD> U<EFBFBD> C<EFBFBD> ]<5D> w<EFBFBD> G</para>
<programlisting>(network-script 'network-bridge netdev=eth0')</programlisting>
<para><3E> <> <EFBFBD> U<EFBFBD> ӡA<D3A1> N<EFBFBD> i<EFBFBD> H<EFBFBD> Ұ<EFBFBD> <application>&xen;</application><3E> G</para>
<screen>&prompt.root; <userinput>/etc/init.d/xend start</userinput>
&prompt.root; <userinput>/etc/init.d/xendomains start</userinput></screen>
<para><3E> {<7B> b dom0 <20> w<EFBFBD> g<EFBFBD> }<7D> l<EFBFBD> B<EFBFBD> @<40> G</para>
<screen>&prompt.root; <userinput>xm list</userinput>
Name ID Mem VCPUs State Time(s)
Domain-0 0 256 1 r----- 54452.9</screen>
</step>
</procedure>
</sect3>
<sect3>
<title>FreeBSD 7-CURRENT domU</title>
<para><3E> q <ulink
url="http://www.fsmware.com/">http://www.fsmware.com/</ulink>
<20> U<EFBFBD> <55> <EFBFBD> f<EFBFBD> t <application>&xen; 3.0</application> <20> <> FreeBSD domU
kernel <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ɮ<EFBFBD> </para>
<itemizedlist>
<listitem>
<para><ulink url="http://www.fsmware.com/xenofreebsd/7.0/download/kernel-current">kernel-current</ulink></para>
</listitem>
<listitem>
<para><ulink url="http://www.fsmware.com/xenofreebsd/7.0/download/mdroot-7.0.bz2">mdroot-7.0.bz2</ulink></para>
</listitem>
<listitem>
<para><ulink url="http://www.fsmware.com/xenofreebsd/7.0/download/config/xmexample1.bsd">xmexample1.bsd</ulink></para>
</listitem>
</itemizedlist>
<para><3E> <> <filename>xmexample1.bsd</filename> <20> ]<5D> w<EFBFBD> ɩ <EFBFBD> <C9A9> <EFBFBD>
<filename>/etc/xen/</filename><3E> A<EFBFBD> íק<C3AD> kernel <20> <> disk image <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> m<EFBFBD> C
<09> H<EFBFBD> U<EFBFBD> O<EFBFBD> ܽd<DCBD> <64> <EFBFBD> Ҥl<D2A4> G</para>
<programlisting>kernel = "/opt/kernel-current"
memory = 256
name = "freebsd"
vif = [ '' ]
disk = [ 'file:/opt/mdroot-7.0,hda1,w' ]
#on_crash = 'preserve'
extra = "boot_verbose"
extra += ",boot_single"
extra += ",kern.hz=100"
extra += ",vfs.root.mountfrom=ufs:/dev/xbd769a"</programlisting>
<para><3E> 䤤 <filename>mdroot-7.0.bz2</filename> <20> ɭn<C9AD> O<EFBFBD> o<EFBFBD> <6F> <EFBFBD> <EFBFBD> <EFBFBD> Y<EFBFBD> <59> <EFBFBD> C</para>
<para><3E> <> <EFBFBD> U<EFBFBD> ӡA<D3A1> n<EFBFBD> ק<EFBFBD> <filename>kernel-current</filename> <20> ]<5D> w<EFBFBD> ɪ <EFBFBD>
__xen_guest <20> p<EFBFBD> `<60> A<EFBFBD> å[<5B> W <application>&xen; 3.0.3</application> <20> һ ݪ<D2BB>
VIRT_BASE<53> G</para>
<screen>&prompt.root; <userinput>objcopy kernel-current -R __xen_guest</userinput>
&prompt.root; <userinput>perl -e 'print "LOADER=generic,GUEST_OS=freebsd,GUEST_VER=7.0,XEN_VER=xen-3.0,BSD_SYMTAB,VIRT_BASE=0xC0000000\x00"' > tmp</userinput>
&prompt.root; <userinput>objcopy kernel-current --add-section __xen_guest=tmp</userinput></screen>
<screen>&prompt.root; <userinput>objdump -j __xen_guest -s kernel-current</userinput>
kernel-current: file format elf32-i386
Contents of section __xen_guest:
0000 4c4f4144 45523d67 656e6572 69632c47 LOADER=generic,G
0010 55455354 5f4f533d 66726565 6273642c UEST_OS=freebsd,
0020 47554553 545f5645 523d372e 302c5845 GUEST_VER=7.0,XE
0030 4e5f5645 523d7865 6e2d332e 302c4253 N_VER=xen-3.0,BS
0040 445f5359 4d544142 2c564952 545f4241 D_SYMTAB,VIRT_BA
0050 53453d30 78433030 30303030 3000 SE=0xC0000000. </screen>
<para><3E> {<7B> b<EFBFBD> i<EFBFBD> H<EFBFBD> s<EFBFBD> W<EFBFBD> ñҰ<C3B1> domU <20> o<EFBFBD> G</para>
<screen>&prompt.root; <userinput>xm create /etc/xen/xmexample1.bsd -c</userinput>
Using config file "/etc/xen/xmexample1.bsd".
Started domain freebsd
WARNING: loader(8) metadata is missing!
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 7.0-CURRENT #113: Wed Jan 4 06:25:43 UTC 2006
kmacy@freebsd7.gateway.2wire.net:/usr/home/kmacy/p4/freebsd7_xen3/src/sys/i386-xen/compile/XENCONF
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
Xen reported: 1796.927 MHz processor.
Timecounter "ixen" frequency 1796927000 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1796.93-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf29 Stepping = 9
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,
DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x4400<CNTX-ID,<b14>>
real memory = 265244672 (252 MB)
avail memory = 255963136 (244 MB)
xc0: <Xen Console> on motherboard
cpu0 on motherboard
Timecounters tick every 10.000 msec
[XEN] Initialising virtual ethernet driver.
xn0: Ethernet address: 00:16:3e:6b:de:3a
[XEN]
Trying to mount root from ufs:/dev/xbd769a
WARNING: / was not properly dismounted
Loading configuration files.
No suitable dump device was found.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
Starting file system checks:
/dev/xbd769a: 18859 files, 140370 used, 113473 free (10769 frags, 12838 blocks, 4.2% fragmentation)
Setting hostname: demo.freebsd.org.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
Additional routing options:.
Mounting NFS file systems:.
Starting syslogd.
/etc/rc: WARNING: Dump device does not exist. Savecore not run.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout
Starting usbd.
usb: Kernel module not available: No such file or directory
Starting local daemons:.
Updating motd.
Starting sshd.
Initial i386 initialization:.
Additional ABI support: linux.
Starting cron.
Local package initialization:.
Additional TCP options:.
Starting background file system checks in 60 seconds.
Sun Apr 1 02:11:43 UTC 2007
FreeBSD/i386 (demo.freebsd.org) (xc0)
login: </screen>
<para><3E> {<7B> b domU <20> <> <EFBFBD> ӥi<D3A5> H<EFBFBD> ] &os; 7.0-CURRENT kernel<65> G</para>
<screen>&prompt.root; <userinput>uname -a</userinput>
FreeBSD demo.freebsd.org 7.0-CURRENT FreeBSD 7.0-CURRENT #113: Wed Jan 4 06:25:43 UTC 2006
kmacy@freebsd7.gateway.2wire.net:/usr/home/kmacy/p4/freebsd7_xen3/src/sys/i386-xen/compile/XENCONF i386</screen>
<para><3E> <> <EFBFBD> U<EFBFBD> ӬO<D3AC> ]<5D> w domU <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> A&os; domU <20> |<7C> Υ N<CEA5> <4E> <EFBFBD> <EFBFBD>
<devicename>xn0</devicename> <20> <> <EFBFBD> S<EFBFBD> <53> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> d<EFBFBD> G</para>
<screen>&prompt.root; <userinput>ifconfig xn0 10.10.10.200 netmask 255.0.0.0</userinput>
&prompt.root; <userinput>ifconfig</userinput>
xn0: flags=843<UP,BROADCAST,RUNNING,SIMPLEX> mtu 1500
inet 10.10.10.200 netmask 0xff000000 broadcast 10.255.255.255
ether 00:16:3e:6b:de:3a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000 </screen>
<para><3E> b dom0 Slackware <20> W<EFBFBD> <57> <EFBFBD> ӷ|<7C> X<EFBFBD> {<7B> @<40> <> <application>&xen;</application>
<09> M<EFBFBD> Ϊ<EFBFBD> <CEAA> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> d<EFBFBD> G</para>
<screen>&prompt.root; <userinput>ifconfig</userinput>
eth0 Link encap:Ethernet HWaddr 00:07:E9:A0:02:C2
inet addr:10.10.10.130 Bcast:0.0.0.0 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:815 errors:0 dropped:0 overruns:0 frame:0
TX packets:1400 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:204857 (200.0 KiB) TX bytes:129915 (126.8 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:99 errors:0 dropped:0 overruns:0 frame:0
TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9744 (9.5 KiB) TX bytes:9744 (9.5 KiB)
peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:1853349 errors:0 dropped:0 overruns:0 frame:0
TX packets:952923 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2432115831 (2.2 GiB) TX bytes:86528526 (82.5 MiB)
Base address:0xc000 Memory:ef020000-ef040000
vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:1400 errors:0 dropped:0 overruns:0 frame:0
TX packets:815 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:129915 (126.8 KiB) TX bytes:204857 (200.0 KiB)
vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:157 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:140 (140.0 b) TX bytes:158 (158.0 b)
xenbr1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:112 (112.0 b) TX bytes:0 (0.0 b)</screen>
<screen>&prompt.root; <userinput>brctl show</userinput>
bridge name bridge id STP enabled interfaces
xenbr1 8000.feffffffffff no vif0.1
peth0
vif1.0</screen>
</sect3>
</sect2>
2007-10-15 05:47:36 +02:00
<sect2 id="virtualization-guest-virtualpc">
<title>&windows; <20> W<EFBFBD> <57> Virtual PC</title>
<para><application>Virtual PC</application> <20> O µsoft; <20> <>
&windows; <20> n<EFBFBD> 鲣<EFBFBD> ~<7E> A<EFBFBD> i<EFBFBD> H<EFBFBD> K<EFBFBD> O<EFBFBD> U<EFBFBD> <55> <EFBFBD> ϥΡ C <20> <> <EFBFBD> <EFBFBD> <EFBFBD> t<EFBFBD> λݨD<DDA8> A<EFBFBD> а Ѿ\ <ulink
url="http://www.microsoft.com/windows/downloads/virtualpc/sysreq.mspx">
system requirements</ulink> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> C <20> b µsoft.windows; <20> ˧<EFBFBD>
<application>Virtual PC</application> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> A
<09> <> <EFBFBD> <EFBFBD> <EFBFBD> w<EFBFBD> 沈<EFBFBD> <EFA5B2> <EFBFBD> w<EFBFBD> <77> <EFBFBD> ұ<EFBFBD> <D2B1> w<EFBFBD> ˪<EFBFBD> <CBAA> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ӧ@<40> <> <EFBFBD> <EFBFBD> <EFBFBD> ]<5D> w<EFBFBD> C</para>
<sect3 id="virtualization-guest-virtualpc-install">
<title><3E> b Virtual PC/µsoft.windows; <20> W<EFBFBD> w<EFBFBD> <77> FreeBSD</title>
<para><3E> b µsoft.windows;/<application>Virtual PC</application>
<20> W<EFBFBD> w<EFBFBD> <77> FreeBSD <20> <> <EFBFBD> Ĥ@<40> B<EFBFBD> O<EFBFBD> s<EFBFBD> W<EFBFBD> <57> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> C <20> p<EFBFBD> U<EFBFBD> ҥܡA
<20> b<EFBFBD> <62> <EFBFBD> ܵ<EFBFBD> <DCB5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> п<EFBFBD> <D0BF> <EFBFBD> <guimenuitem>Create a virtual
machine</guimenuitem><3E> G</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd1">
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd2">
</imageobject>
</mediaobject>
<para><3E> M<EFBFBD> <4D> <EFBFBD> b <guimenuitem>Operating system</guimenuitem> <20> B<EFBFBD> <42>
<guimenuitem>Other</guimenuitem><3E> G</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd3">
</imageobject>
</mediaobject>
<para><3E> è̾ڦۨ<DAA6> <DBA8> ݨD<DDA8> ӳW<D3B3> <57> <EFBFBD> w<EFBFBD> Юe<D0AE> q<EFBFBD> <71> <EFBFBD> O<EFBFBD> <4F> <EFBFBD> 骺<EFBFBD> <E9AABA> <EFBFBD> t<EFBFBD> C
<20> <> <EFBFBD> j<EFBFBD> h<EFBFBD> Ʀ b <application>Virtual PC</application> <20> ϥ<EFBFBD> FreeBSD
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> p<EFBFBD> Ө<EFBFBD> <D3A8> A<EFBFBD> j<EFBFBD> <6A> 4GB <20> w<EFBFBD> ЪŶ<D0AA> <C5B6> H<EFBFBD> <48> 512MB RAM <20> N<EFBFBD> <4E> <EFBFBD> Τ F<CEA4> G</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd4">
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd5">
</imageobject>
</mediaobject>
<para><3E> x<EFBFBD> s<EFBFBD> ]<5D> w<EFBFBD> ɡ G</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd6">
</imageobject>
</mediaobject>
<para><3E> <> <EFBFBD> U<EFBFBD> ӿ<EFBFBD> <D3BF> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ҷs<D2B7> W<EFBFBD> <57> FreeBSD <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> A<EFBFBD> ë<EFBFBD> <C3AB> U
<guimenu>Settings</guimenu><3E> A<EFBFBD> H<EFBFBD> ]<5D> w<EFBFBD> <77> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> H<EFBFBD> κ<EFBFBD> <CEBA> <EFBFBD> <EFBFBD> d<EFBFBD> G</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd7">
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd8">
</imageobject>
</mediaobject>
<para><3E> b FreeBSD <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> s<EFBFBD> W<EFBFBD> <57> <EFBFBD> A<EFBFBD> N<EFBFBD> i<EFBFBD> H<EFBFBD> ~<7E> <> <EFBFBD> H<EFBFBD> <48> <EFBFBD> w<EFBFBD> <77> FreeBSD<53> C
<20> w<EFBFBD> ˤ譱<CBA4> A<EFBFBD> <41> <EFBFBD> <EFBFBD> <EFBFBD> n<EFBFBD> <6E> <EFBFBD> @<40> k<EFBFBD> O<EFBFBD> ϥΩx<CEA9> 誺 FreeBSD <20> <> <EFBFBD> ЩΪ̱q<CCB1> x<EFBFBD> <78> FTP
<20> <> <EFBFBD> U<EFBFBD> <55> ISO image <20> ɡ C <20> Y<EFBFBD> z<EFBFBD> <7A> &windows; <20> ɮרt<D7A8> Τ <EFBFBD> <CEA4> w<EFBFBD> g<EFBFBD> <67> <EFBFBD> <EFBFBD> ISO
<20> ɡ A <20> Ϊ̥<CEAA> <CCA5> о <EFBFBD> <D0BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> w<EFBFBD> ˤ<EFBFBD> <CBA4> A<EFBFBD> <41> <EFBFBD> <EFBFBD> <EFBFBD> N<EFBFBD> i<EFBFBD> H<EFBFBD> b FreeBSD
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> W<EFBFBD> s<EFBFBD> <73> <EFBFBD> <EFBFBD> <EFBFBD> U<EFBFBD> A<EFBFBD> H<EFBFBD> }<7D> l<EFBFBD> ҰʡC <20> <> <EFBFBD> ۦb
<application>Virtual PC</application> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
<guimenu>CD</guimenu> <20> A<EFBFBD> <41> <guimenu>Capture ISO Image...</guimenu>
<20> C <20> <> <EFBFBD> ۷ |<7C> X<EFBFBD> {<7B> @<40> ӵ<EFBFBD> <D3B5> <EFBFBD> <EFBFBD> A<EFBFBD> i<EFBFBD> H<EFBFBD> <48> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> о <EFBFBD> <D0BE> ]<5D> w<EFBFBD> <77> <EFBFBD> <EFBFBD> ISO <20> ɡ A
<20> Ϊ̬O<CCAC> <4F> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> о <EFBFBD> <D0BE> C</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd9">
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd10">
</imageobject>
</mediaobject>
<para><3E> ]<5D> n<EFBFBD> <6E> <EFBFBD> Ф<EFBFBD> <D0A4> ӷ<EFBFBD> <D3B7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> A<EFBFBD> N<EFBFBD> i<EFBFBD> H<EFBFBD> <48> <EFBFBD> }<7D> <> <EFBFBD> A<EFBFBD> ]<5D> N<EFBFBD> O<EFBFBD> <4F> <EFBFBD> <EFBFBD>
<guimenu>Action</guimenu> <20> A<EFBFBD> <41> <guimenu>Reset</guimenu> <20> Y<EFBFBD> i<EFBFBD> C
<application>Virtual PC</application> <20> |<7C> H<EFBFBD> S<EFBFBD> <53> BIOS <20> }<7D> <> <EFBFBD> A<EFBFBD> ûP<C3BB> <50> <EFBFBD> q
BIOS <20> @<40> ˷|<7C> <> <EFBFBD> ˬd<CBAC> O<EFBFBD> _<EFBFBD> <5F> <EFBFBD> <EFBFBD> <EFBFBD> о <EFBFBD> <D0BE> C</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd11">
</imageobject>
</mediaobject>
<para><3E> <> <EFBFBD> ɡ A<C9A1> <41> <EFBFBD> N<EFBFBD> |<7C> <> <EFBFBD> <EFBFBD> FreeBSD <20> w<EFBFBD> ˤ<EFBFBD> <CBA4> A<EFBFBD> ö}<7D> l<EFBFBD> b <xref
linkend="install"> <20> <> <EFBFBD> Ҥ<EFBFBD> <D2A4> Ш쪺 <application>sysinstall</application>
<20> w<EFBFBD> ˹L<CBB9> {<7B> C <20> o<EFBFBD> ɭԤ]<5D> i<EFBFBD> <69> <EFBFBD> K<EFBFBD> <4B> X11<31> A<EFBFBD> <41> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> n<EFBFBD> i<EFBFBD> <69> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ]<5D> w<EFBFBD> C</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd12">
</imageobject>
</mediaobject>
<para><3E> <> <EFBFBD> <EFBFBD> <EFBFBD> w<EFBFBD> ˤ<EFBFBD> <CBA4> <EFBFBD> <EFBFBD> A<EFBFBD> O<EFBFBD> o<EFBFBD> <6F> <EFBFBD> <EFBFBD> <EFBFBD> Ф<EFBFBD> <D0A4> h<EFBFBD> X<EFBFBD> Ϊ<EFBFBD> ISO image <20> h<EFBFBD> <68> <EFBFBD> C <20> ̫<EFBFBD> <CCAB> A
<20> <> <EFBFBD> ˦n<CBA6> <6E> FreeBSD <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> }<7D> <> <EFBFBD> Y<EFBFBD> i<EFBFBD> C</para>
<mediaobject>
<imageobject>
<imagedata fileref="virtualization/virtualpc-freebsd13">
</imageobject>
</mediaobject>
</sect3>
<sect3 id="virtualization-guest-virtualpc-configure">
<title><3E> վ<EFBFBD> µsoft.windows;/Virtual PC <20> W<EFBFBD> <57> FreeBSD</title>
<para><3E> b µsoft.windows; <20> W<EFBFBD> H <application>Virtual
PC</application> <20> ˦n FreeBSD <20> <> <EFBFBD> A<EFBFBD> ٻݭn<DDAD> @<40> @<40> dz]<5D> w<EFBFBD> B<EFBFBD> J<EFBFBD> A
<20> H<EFBFBD> K<EFBFBD> N<EFBFBD> <4E> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> FreeBSD <20> ̨Τ ơC</para>
<procedure>
<step>
<title><3E> ]<5D> w boot loader <20> Ѽ<EFBFBD> </title>
<para><3E> ̭<EFBFBD> <CCAD> n<EFBFBD> <6E> <EFBFBD> B<EFBFBD> J<EFBFBD> D<EFBFBD> O<EFBFBD> ǥѽխ<D1BD> <option>kern.hz</option> <20> ӭ<EFBFBD> <D3AD> C
<application>Virtual PC</application> <20> <> <EFBFBD> Ҥ<EFBFBD> FreeBSD <20> <> CPU
<09> <> <EFBFBD> βv<CEB2> C <20> i<EFBFBD> H<EFBFBD> b <filename>/boot/loader.conf</filename>
<09> <> <EFBFBD> [<5B> W<EFBFBD> U<EFBFBD> C<EFBFBD> ]<5D> w<EFBFBD> Y<EFBFBD> i<EFBFBD> G</para>
<programlisting>kern.hz=100</programlisting>
<para><3E> Y<EFBFBD> <59> <EFBFBD> @<40> o<EFBFBD> ]<5D> w<EFBFBD> A<EFBFBD> <41> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> O idle <20> <> <EFBFBD> A<EFBFBD> <41> FreeBSD
<application>Virtual PC</application> guest OS
<09> N<EFBFBD> |<7C> b<EFBFBD> ȳ<EFBFBD> <C8B3> @<40> B<EFBFBD> z<EFBFBD> <7A> <EFBFBD> <EFBFBD> <EFBFBD> q<EFBFBD> <71> <EFBFBD> W<EFBFBD> <57> <EFBFBD> F<EFBFBD> j<EFBFBD> <6A> 40% <20> <> CPU <20> <> <EFBFBD> βv<CEB2> C
<09> @<40> W<EFBFBD> z<EFBFBD> ק蠟<D7A7> <EFA4A7> <EFBFBD> A<EFBFBD> <41> <EFBFBD> βv<CEB2> N<EFBFBD> |<7C> <> <EFBFBD> ܤj<DCA4> <6A> 3%<25> C</para>
</step>
<step>
<title><3E> ]<5D> w<EFBFBD> s<EFBFBD> <73> kernel <20> ]<5D> w<EFBFBD> <77> </title>
<para><3E> i<EFBFBD> H<EFBFBD> <48> <EFBFBD> ߧ<EFBFBD> <DFA7> Ҧ<EFBFBD> SCSI<53> BFireWire<72> BUSB <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ]<5D> Ƴ<EFBFBD> <C6B3> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> C
<application>Virtual PC</application> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> &man.de.4;
<09> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> d<EFBFBD> A<EFBFBD> ]<5D> <> <EFBFBD> <EFBFBD> <EFBFBD> F &man.de.4; <20> H<EFBFBD> <48> &man.miibus.4;
<09> H<EFBFBD> ~<7E> <> <EFBFBD> <EFBFBD> <EFBFBD> L<EFBFBD> <4C> <EFBFBD> <EFBFBD> <EFBFBD> d<EFBFBD> ]<5D> <> <EFBFBD> i<EFBFBD> H<EFBFBD> q kernel <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> C</para>
</step>
<step>
<title><3E> ]<5D> w<EFBFBD> <77> <EFBFBD> <EFBFBD> </title>
<para><3E> i<EFBFBD> H<EFBFBD> <48> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ²<EFBFBD> <C2B2> <EFBFBD> <EFBFBD> DHCP <20> ӳ]<5D> w<EFBFBD> P host(µsoft.windows;)
<09> ۦP<DBA6> <50> LAN <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ҡA<D2A1> u<EFBFBD> n<EFBFBD> b <filename>/etc/rc.conf</filename>
<09> [<5B> W <literal>ifconfig_de0="DHCP"</literal> <20> Y<EFBFBD> i<EFBFBD> <69> <EFBFBD> <EFBFBD> <EFBFBD> C
<09> <> <EFBFBD> L<EFBFBD> i<EFBFBD> <69> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ]<5D> w<EFBFBD> 覡<EFBFBD> A<EFBFBD> а Ѿ\ <xref
linkend="advanced-networking"><3E> C</para>
</step>
</procedure>
</sect3>
</sect2>
2007-10-12 19:41:09 +02:00
<sect2 id="virtualization-guest-vmware">
<title><3E> b &windows;/&mac;/&linux; <20> W<EFBFBD> <57> VMware</title>
<para><3E> <> <EFBFBD> `<60> |<7C> <> <EFBFBD> <EFBFBD> <EFBFBD> g<EFBFBD> C</para>
</sect2>
</sect1>
<sect1 id="virtualization-host">
<title><3E> H FreeBSD <20> <> Host OS</title>
<para><3E> ثe<D8AB> A<EFBFBD> |<7C> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> n<EFBFBD> 馳<EFBFBD> x<EFBFBD> <78> <EFBFBD> 䴩 FreeBSD <20> @<40> <> host OS<4F> A
<20> <> <EFBFBD> Z<EFBFBD> h<EFBFBD> H<EFBFBD> <48> <EFBFBD> <EFBFBD> <EFBFBD> b<EFBFBD> <62> <EFBFBD> ª<EFBFBD> <application>VMware</application> <20> Ҵ<EFBFBD> <D2B4> Ѫ<EFBFBD> <D1AA> o<EFBFBD> <6F> <EFBFBD> \<5C> <> <EFBFBD> C
<20> <> <EFBFBD> L<EFBFBD> A<EFBFBD> ثe<D8AB> w<EFBFBD> g<EFBFBD> <67> <EFBFBD> H<EFBFBD> <48> <EFBFBD> <EFBFBD> <application>&xen;</application> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> H FreeBSD
<20> <> host OS <20> <> <EFBFBD> ؼС A<D0A1> Ӷi<D3B6> <69> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> u<EFBFBD> @<40> C</para>
</sect1>
</chapter>
<!--
Local Variables:
mode: sgml
sgml-declaration: "../chapter.decl"
sgml-indent-data: t
sgml-omittag: nil
sgml-always-quote-attributes: t
sgml-parent-document: ("../book.sgml" "part" "chapter")
End:
-->