ESX4.0のインストール

DL380G6に、ESX4.0をインストールした。
ESX4.0は、VMWare vSphereの体験版から入手できる。

G6には、300GのDiskが16本積んである。

15本でRAID5 + ホットスペア構成でインストールを進めたところ、Storage Device画面でインストール先のLogical Volumeを選択できなかった。

8本でRAID6もしくは、7本でRAID5+ホットスペアにしたところ、Logical Volumeの選択が可能となり、インストールできた。
どうやら2TBを超えたLogical Volumeを扱えないらしい。

distutils

simplejsonをインストールしようとしてはまった.
python ez_setup.py installを実行するとエラーが出る.

Traceback (most recent call last):
File "ez_setup.py", line 228, in ?
main(sys.argv[1:])
File "ez_setup.py", line 160, in main
egg = download_setuptools(version, delay=0)
File "ez_setup.py", line 123, in download_setuptools
from distutils import log
ImportError: No module named distutils

distutilsは,標準モジュールに組み込まれているとのこと.
SuSEが絡んでいた.
YaST2で,python-develをインストールすることでdistutilsがimportできるようになった

あとは,インターネットに繋げるようプロキシの設定を行う
export http_proxy="http://xxx.xxx.xxx.xxx:port"
export ftp_proxy="http://xxx.xxx.xxx.xxx:port"

# python ez_setup.py install
Downloading http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c7-py2.4.egg
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 2] No such file or directory: '/usr/local/lib/python2.4/site-packages/test-easy-install-23610.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/local/lib/python2.4/site-packages/

This directory does not currently exist. Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).

インストールするディレクトリを指定する
# python setup.py install --prefix=/usr

    • prefix=は,/lib/python2.4/site-packagesの下にパッケージをインストールする.

running install
running bdist_egg
running egg_info
writing simplejson.egg-info/PKG-INFO
writing top-level names to simplejson.egg-info/top_level.txt
writing dependency_links to simplejson.egg-info/dependency_links.txt
reading manifest file 'simplejson.egg-info/SOURCES.txt'
writing manifest file 'simplejson.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build
creating build/lib.linux-i686-2.4
creating build/lib.linux-i686-2.4/simplejson
copying simplejson/encoder.py -> build/lib.linux-i686-2.4/simplejson
copying simplejson/scanner.py -> build/lib.linux-i686-2.4/simplejson
copying simplejson/tool.py -> build/lib.linux-i686-2.4/simplejson
copying simplejson/decoder.py -> build/lib.linux-i686-2.4/simplejson
copying simplejson/__init__.py -> build/lib.linux-i686-2.4/simplejson
creating build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_unicode.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_dump.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_fail.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_separators.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_decode.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_encode_basestring_ascii.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_pass1.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_pass2.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_pass3.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_indent.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_recursion.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_check_circular.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_default.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_float.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/__init__.py -> build/lib.linux-i686-2.4/simplejson/tests
copying simplejson/tests/test_scanstring.py -> build/lib.linux-i686-2.4/simplejson/tests
running build_ext
building 'simplejson._speedups' extension
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/simplejson
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -I/usr/include/python2.4 -c simplejson/_speedups.c -o build/temp.linux-i686-2.4/simplejson/_speedups.o
gcc -pthread -shared build/temp.linux-i686-2.4/simplejson/_speedups.o -o build/lib.linux-i686-2.4/simplejson/_speedups.so
creating build/bdist.linux-i686
creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/simplejson
copying build/lib.linux-i686-2.4/simplejson/encoder.py -> build/bdist.linux-i686/egg/simplejson
copying build/lib.linux-i686-2.4/simplejson/scanner.py -> build/bdist.linux-i686/egg/simplejson
creating build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_unicode.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_dump.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_fail.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_separators.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_decode.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_encode_basestring_ascii.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_pass1.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_pass2.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_pass3.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_indent.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_recursion.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_check_circular.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_default.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_float.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/__init__.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/tests/test_scanstring.py -> build/bdist.linux-i686/egg/simplejson/tests
copying build/lib.linux-i686-2.4/simplejson/_speedups.so -> build/bdist.linux-i686/egg/simplejson
copying build/lib.linux-i686-2.4/simplejson/tool.py -> build/bdist.linux-i686/egg/simplejson
copying build/lib.linux-i686-2.4/simplejson/decoder.py -> build/bdist.linux-i686/egg/simplejson
copying build/lib.linux-i686-2.4/simplejson/__init__.py -> build/bdist.linux-i686/egg/simplejson
byte-compiling build/bdist.linux-i686/egg/simplejson/encoder.py to encoder.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/scanner.py to scanner.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_unicode.py to test_unicode.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_dump.py to test_dump.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_fail.py to test_fail.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_separators.py to test_separators.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_decode.py to test_decode.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_encode_basestring_ascii.py to test_encode_basestring_ascii.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_pass1.py to test_pass1.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_pass2.py to test_pass2.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_pass3.py to test_pass3.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_indent.py to test_indent.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_recursion.py to test_recursion.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_check_circular.py to test_check_circular.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_default.py to test_default.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_float.py to test_float.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tests/test_scanstring.py to test_scanstring.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/tool.py to tool.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/decoder.py to decoder.pyc
byte-compiling build/bdist.linux-i686/egg/simplejson/__init__.py to __init__.pyc
creating stub loader for simplejson/_speedups.so
byte-compiling build/bdist.linux-i686/egg/simplejson/_speedups.py to _speedups.pyc
creating build/bdist.linux-i686/egg/EGG-INFO
writing simplejson.egg-info/native_libs.txt
copying simplejson.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying simplejson.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying simplejson.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying simplejson.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying simplejson.egg-info/zip-safe -> build/bdist.linux-i686/egg/EGG-INFO
creating dist
creating 'dist/simplejson-2.0.9-py2.4-linux-i686.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing setuptools-0.6c7-py2.4.egg
creating /usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg
Extracting setuptools-0.6c7-py2.4.egg to /usr/lib/python2.4/site-packages
Adding setuptools 0.6c7 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.4 script to /usr/bin

Installed /usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg
Processing dependencies for setuptools==0.6c7
Finished processing dependencies for setuptools==0.6c7
Processing simplejson-2.0.9-py2.4-linux-i686.egg
Copying simplejson-2.0.9-py2.4-linux-i686.egg to /usr/lib/python2.4/site-packages
Adding simplejson 2.0.9 to easy-install.pth file

Installed /usr/lib/python2.4/site-packages/simplejson-2.0.9-py2.4-linux-i686.egg
Processing dependencies for simplejson==2.0.9
Finished processing dependencies for simplejson==2.0.9

これで,simplejsonがimportできた!

openSoralis パッケージのインストール

pkgコマンドを利用する。

プロキシを利用している場合は、環境変数に設定しておく。
# export LANG=C
# export http_proxy="http://192.168.0.111:8080"
# export ftp_proxy="http://192.168.0.111:8080"
# pkg install gcc-dev

yarisのインストール ネットワークの設定

VAIO VGN-SZ92PSにopenSoralisをインストールした。
インストールは驚くほど簡単で、IPの設定画面すら聞かれない。
Linuxのような設定の方がいいな。

インストール後、最初に気づいたのはネットワークにつながらない。
スタート→管理→Device Driver Utilityを起動すると、ネットワークカードのDriverがないと出ている。
Marvell Technology Group Ltd. 88E8036 PCI-E Fast Ethernet Controllerが入っていた。

http://www.marvell.com/drivers/search.doよりドライバをダウンロードする。
tarファイルを展開して、展開したフォルダがあるディレクリへ移動して
pkgadd -d . YUKONXsolxを実行すると、設定スクリプトが走った。
複数回IPアドレスを聞いてくるが、1回だけ入力し、インストールを行った。

次に、IPアドレスサブネットマスクデフォルトゲートウェイを設定する。
ifconfig -aを実行すると、
yukonx0: flags=201000843 mtu 1500 index 2
が見えた。
ifconfig yukonx0 xxx.xxx.xxx.xxx netmask 255.255.255.0
ifconfig yukonx0 up
デフォルトゲートウェイの設定は、
route add default xxx.xxx.xxx.xxx
netstat -rnで確認できる。

これで、設定終了だが再起動をかけると消えてしまう。
START→管理→ネットワークを起動すると
Network Admin cannnot be used to configure the network when NetWork Auto-Magic(NWAM) is enabled.
とウィンドウが出る。
NWAMは、DHCPクライアントのようだ。
固定IPを利用したい場合は、NWAMを無効にする。

まず、現状の確認
# svcs svc:/network/physical
STATE STIME FMRI
disabled 10:04:38 svc:/network/physical:default
online 10:04:39 svc:/network/physical:nwam
固定を使う場合は、defaultをonlineにする。
# svcadm disable svc:/network/physical:nwam
# svcadm enable svc:/network/physical:default
# svcs svc:/network/physical
STATE STIME FMRI
disabled 11:16:39 svc:/network/physical:nwam
online 11:17:06 svc:/network/physical:default

再起動すると、IPが振られていた。
うまくいかなった場合は、/etc/inetの下の設定ファイルやら、/etc/defaultrouterやらを編集しないとダメかもしれない。