# 表題 vmware のインストールと設定 # # 履歴 2004/06/24 小高正嗣 # ■ インストールメディア VMware Workstation 4.0 (for Linux Systems) - 最新版は http://www.networld.co.jp/products/vmware/download/ws40.htm よりダウンロードできる. ■ インストールハードウェアとホスト OS ハードウェア: HITACHI Prius 100F5TVP - 統合型チップセット - IDE Ali M1535 (ALi M5229 PCI Bus Master IDE Controller) - VIDEO ATI RADEON IGP340M - NIC Realtek RTL8139/810x Family Fast Ethernet - Sound - DVD Matsushita DVD-RAM UJ-815A - 1394 OHCI Compliant 1394 Host Controller ホスト OS: Debian GNU/Linux 3.1 (sarge) kernel 2.4.26 ■ 事前準備 カーネルが以下の機能をサポートしていること. - Enhanced Real Time Clock - パラレルポート - PC Style Hardware (モジュール) ■ vmware のインストール 1) CDROM から tar インストーラを展開. # cd /tmp # mv /cdrom/Linux/VMware-workstation-4.0.5-6030.tar.gz /tmp # tar xvzf VMware-workstation-4.0.5-6030.tar.gz 2) インストールスクリプトを実行 # cd ./vmware-distrib # ./vmware-install.pl 以下, インストーラの質問に答える. 3) インストール先ディレクトリ 1.実行ファイルは /usr/local/bin へインストールする. Creating a new installer database using the tar3 format. Installing the content of the package. In which directory do you want to install the binary files? [/usr/bin] /usr/local/bin 2.ライブラリは /usr/local/lib/vmware へ In which directory do you want to install the library files? [/usr/local/lib/vmware] 3.パスが通っていないので, 通すように言われる. The path "/usr/local/lib/vmware" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes] 4.マニュアルは /usr/local/man へ In which directory do you want to install the manual files? [/usr/local/man] 5.ドキュメントは /usr/local/doc/vmware へ In which directory do you want to install the documentation files? [/usr/local/doc/vmware] 6.ini.t スクリプトの置き場所は /etc/ What is the directory that contains the init directories (rc0.d/ to rc6.d/)? [/etc] 7.スクリプトは /etc/init.d へ What is the directory that contains the init scripts? [/etc/init.d] 8.最後に確認 The installation of VMware Workstation 4.0.5 build-6030 for Linux completed successfully. You can decide to remove this software from your system at any time by invoking the following command: "/usr/local/bin/vmware-uninstall.pl". Before running VMware Workstation for the first time, you need to configure it by invoking the following command: "/usr/local/bin/vmware-config.pl". Do you want this program to invoke the command for you now? [yes] 4) 利用条件の認証 You must read and accept the End User License Agreement to continue. Press enter to display it. Do you accept? (yes/no) yes 5) モジュールの作成 None of VMware Workstation's pre-built vmmon modules is suitable for your running kernel. Do you want this program to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? [yes] yes Using compiler "/usr/bin/gcc". Use environment variable CC to override. gcc ver.3 は正式サポートではないが, コンパイルするかと聞かれるので yes と答える. As of March 2003, gcc version 3 and later is not yet a supported compiler by the Linux kernel development team. Have a look at Documentation/Changes in your kernel source directory to get the correct compiler installed. Do you want to go with compiler "/usr/bin/gcc" version "3.3.4"? [no] yes インクルードファイルの置き場所を聞かれる. What is the location of the directory of C header files that match your running kernel? [/lib/modules/2.6.6/build/include] ゲスト OS とネットワーク接続を行うので yes と答える. Do you want networking for your virtual machines? (yes/no/help) [yes] ホスト OS とゲスト OS でファイル共有を行うため yes と答える. Do you want this program to probe for an unused private subnet? (yes/no/help) [yes] Host-only ネットワークを利用できるよう yes と答える. Do you want to be able to use host-only networking in your virtual machines? [no] yes Do you wish to configure another host-only network? (yes/no) [no] Samba を使ったゲスト-ホスト間のファイル共有を行うので yes. Do you want this program to automatically configure your system to allow your virtual machines to access the host's filesystem? (yes/no/help) [no] yes samba のパスワードを設定するかと聞かれる. 面倒なので no. You have successfully configured VMware Workstation to allow your virtual machines to access the host's filesystem. Would you like to add a username and password for accessing your host's filesystem via network interface vmnet1 at this time? (yes/no/help) [yes] ■ 仮想マシンの作成 (windows) $ vmware とすると, 仮想マシン作成ウィザードが立ち上がる. 1) [New Virtual machine] を選択. 2) 設定の選択 Custom configuration を選択する. 3) ゲスト OS の選択 Windows XP Professional を選択 4) 仮想マシンの名前とディレクトリ 名前 winXPPro ディレクトリ /home/odakker/winXPPro/ 5) メモリサイズの決定 512 MB にする. 6) ネットワークの設定 NAT を選択. 7) 利用ディスクの選択 仮想ディスクの新規作成を選ぶ 8) ディスク領域の作成 サイズは 20 GB とし, 2 GB 毎の分割は行わない. 9) ディスクファイル名の指定 デフォルトのまま ■ シリアル番号の入力 [help] - [Enter Serial Number] を選択し,シリアル番号を入力する. ■ 仮想マシンのインストール(WinXP) Windows XP セットアップ CDROMを入れて仮想マシンを起動する. ■ VMWare tools のインストール. 1) 仮想マシンを起動する 2) [File]--[Install VMWare Tools] をクリックする. あとはダイアログにしたがってインストールを行う. ■ 参考文献 Linux Kernel 2.6 で VMware, - turbolinux10 のためのメモ- http://www5.ocn.ne.jp/~ishii-k/Tips/vmware.html