FreeBSD6上でgnome2環境を用意し、vmware3へWindowsXP HomeEditionを導入する。ネットワーク設定などの初期設定などで手間取る。ちなみに、元の端末はホストPCと言い、端末上に作る仮想的な端末は仮想マシンと言う。ゲストOSというような表現の仕方もある。
ライセンス
FreeBSDのportsには、長らくvmware2のみが整備されていた。FreeBSD5時代にvmware3が整備されて現在に至る。すでにvmware3は製品として古い。ライセンス発行もされていない。
インストール
portsからのインストールだと、インターフェースの設定だけを行っておき、ゲストOSのインストールが終わってから、他の設定を行っても良い。
# cd /usr/ports/emulators/vmware3
# make install
VMware network setupでは、下記のような質問をされるので適切に設定する。太字は回答例。
Do you want to configure vmnet interface?
yes
Do you want to use netgraph bridging?
no
Waht will be the IP address of your host on your private network?
192.168.254.1
What will be the netmask of your private network?
255.255.255.0
Are the following options correct?
Configuration: host only
IP address: 192.168.254.1
netmask: 255.255.255.0
yes
ネットワークを設定するため、vmnetというものを使い、vmnetはifconfig上でvmnet1などの名称で確認できるようになる。host onlyという形式で接続できるようになる。
rc.confの修正。gatewayとpfを有効にする。pflogはログが必要な場合。
# ee /etc/rc.conf
gateway_enable="YES"
pf_enable="yes"
pf_rules="/etc/pf.conf"
pflog_enable="YES"
# /etc/rc.d/routing restart
pf.confの設定。FreeBSD6ではpfの他、ipfwなど、natdやfirewallの仕組みが実装されている。
# ee /etc/pf.conf
ext_if="fxp0"
nat on $ext_if inet from !(ext_if) to any -> ($ext_if)
# /etc/rc.d/pf restart
Windowsのインストールは通常通り行えるが、終了して再起動した際、最低限の環境となってしまう。ドライバの導入を促されるので、追加すれば、広い画面などが扱えるようになる。



