Hard Disk 3 をフォーマット。
# fdisk /dev/sdc # mkfs.ext3 /dev/sdc1
/etc/fstab に以下の設定を追加。
/dev/sdc1 /home ext3 defaults 0 2
現在の /home の内容を退避。
# cp -pr /home /dev/shm/home
増設したハードディスクをマウント。
# mount /home
元の /home の内容を復元。
# cp -pr /dev/shm/home /
Web ページの置き場所として /home/www を作成。
# mkdir -p /home/www # chown www-data:users /home/www # chmod 775 /home/www
/etc/network/interfaces の eth0 の設定を以下のように変更。
auto eth0 iface eth0 inet static address 192.168.0.128 network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1
/etc/hostname を以下のように変更。
nas
/etc/hosts を以下のように変更。
127.0.0.1 localhost.localdomain localhost
/etc/resolv.conf を以下のように変更。
domain local nameserver 192.168.0.2
DNS サーバに以下の IP アドレスとホスト名を登録。
以下のコマンドを実行。
# aptitude update # aptitude upgrade
NFS サーバのパッケージをインストール。
# aptitude install nfs-kernel-server
/etc/exports に以下の設定を追加。
/home 192.168.0.0/24(rw,sync)
以下のコマンドを実行し、NFS サーバを起動。
# /etc/init.d/nfs-kernel-server start
Samba のパッケージをインストール。
# aptitude install samba
インストール時の質問には、以下のように答える。
/etc/samba/smb.conf の設定を、以下のように追加・変更。
[global] unix charset = EUCJP-MS dos charset = CP932 display charset = EUCJP-MS [homes] comment = Home Directory browseable = no writable = yes create mask = 0700 directory mask = 0700 map archive = no [www] comment = Web Directory path = /home/www valid users = +users public = no read only = no create mask = 0644 directory mask = 0755 map archive = no
以下のコマンドを実行し、SMB パスワードを設定。
# smbpasswd -a revulo
nmbd, smbd デーモンを再起動。
# /etc/init.d/samba restart
テスト環境への SSH のインストール の手順を参照。
モジュールのコンパイルに必要なパッケージをインストール *1。
# aptitude install make # aptitude install gcc # aptitude install kernel-headers-2.4.27-3-386
メニューの VM → Install VMware Tools... を実行し、 以下のコマンドを実行。
# mount /cdrom # cd /dev/shm # tar xvfz /cdrom/VMwareTools-5.5.3-34685.tar.gz # umount /cdrom
VMware Tools のインストーラを起動。
# cd vmware-tools-distrib # ./vmware-install.pl
インストール時の質問には、以下のように答える。
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] What is the directory that contains the init directories (rc0.d/ to rc6.d/)? [/etc] What is the directory that contains the init scripts? [/etc/init.d] In which directory do you want to install the daemon files? [/usr/sbin] In which directory do you want to install the library files? [/usr/lib/vmware-tools] The path "/usr/lib/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes] In which directory do you want to install the documentation files? [/usr/share/doc/vmware-tools] The path "/usr/share/doc/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes] The installation of VMware Tools 5.5.3 build-34685 for Linux completed successfully. You can decide to remove this software from your system at any time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl". Before running VMware Tools for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want this program to invoke the command for you now? [yes] Stopping VMware Tools services in the virtual machine: Guest operating system daemon: done Trying to find a suitable vmhgfs module for your running kernel. None of the pre-built vmhgfs modules for VMware Tools is suitable for your running kernel. Do you want this program to try to build the vmhgfs module for your system (you need to have a C compiler installed on your system)? [yes] no The filesystem driver (vmhgfs module) is used only for the shared folder feature. The rest of the software provided by VMware Tools is designed to work independently of this feature. If you wish to have the shared folders feature, you can install the driver by running vmware-config-tools.pl again after making sure that gcc, binutils, make and the kernel sources for your running kernel are installed on your machine. These packages are available on your distribution's installation CD. [ Press Enter key to continue ] pcnet32 14660 1 Unloading pcnet32 module Trying to find a suitable vmxnet module for your running kernel. None of the pre-built vmxnet modules for VMware Tools is suitable for your running kernel. Do you want this program to try to build the vmxnet module for your system (you need to have a C compiler installed on your system)? [yes] Using compiler "/usr/bin/gcc". Use environment variable CC to override. What is the location of the directory of C header files that match your running kernel? [/lib/modules/2.4.27-3-386/build/include] Extracting the sources of the vmxnet module. Building the vmxnet module. Using standalone build system. make: Entering directory `/tmp/vmware-config0/vmxnet-only' make: Leaving directory `/tmp/vmware-config0/vmxnet-only' The module loads perfectly in the running kernel. No X install found. Starting VMware Tools services in the virtual machine: Switching to guest configuration: done DMA setup: done Guest operating system daemon: done The configuration of VMware Tools 5.5.3 build-34685 for Linux for this running kernel completed successfully. You must restart your X session before any mouse or graphics changes take effect. You can now run VMware Tools by invoking the following command: "/usr/bin/vmware-toolbox" during an XFree86 session. To use the vmxnet driver, restart networking using the following commands: /etc/init.d/networking stop rmmod pcnet32 rmmod vmxnet depmod -a modprobe vmxnet /etc/init.d/networking start Enjoy, --the VMware team
以下のコマンドを実行し、ネットワークを再起動。
# /etc/init.d/networking stop # depmod -a # modprobe vmxnet # /etc/init.d/networking start
/etc/discover.conf に以下の設定を追加。
skip pcnet32
/etc/hotplug/blacklist に以下の設定を追加。
pcnet32
以下のパッケージを追加でインストール。
# aptitude install lv # aptitude install unzip
仮想マシンをシャットダウン。
メニューの VM → Settings... を実行し、ハードウェア構成の以下の部分を変更。
Device | Summary |
Memory | 64 MB |
vmx ファイルの設定を以下のように変更。
tools.syncTime = "TRUE"