8 Nexenta Core Platform を使ってみる

上川純 一

PIC
____________________________________________________________________

8.1 はじめに

Nexenta*7 とは Debian GNU/Linux の パッケージングシステムを OpenSolaris*8 に 移植したもののようです。 OpenSolaris とは Solaris のオープンソース版のようです。 Nexenta Core Platform が 2008 年 2 月 にリリースされました。 今回はそれを試してみます。

8.2 ダウンロード

http://www.nexenta.org/os/DownloadMirrors からリンクをたどりダウンロードします。 今回は http://mirror.stanford.edu/nexenta/isos/nexenta-core-platform_1.0-b82_x86.iso.zip を利用しま した。

unzip コマンドで展開すると iso イメージが作成されます。

[21:54:42]dancer64:nexenta> unzip nexenta-core-platform_1.0-b82_x86.iso.zip
Archive:  nexenta-core-platform_1.0-b82_x86.iso.zip
  inflating: nexenta-core-platform_1.0-b82_x86.iso

8.3 Qemu 環境でのインストール

まず、 qemu 用のディスクイメージを作成します。

$ qemu-img create -f qcow2 nexenta.cow 3GB
Formatting ’nexenta.cow’, fmt=qcow2, size=3145728 kB

qemu を起動します。 *9

$ qemu-system-x86_64 -hda nexenta.cow \
 -cdrom  nexenta-core-platform_1.0-b82_x86.iso \
 -boot d \
 -m 512

メニューを選択し順番にインストール作業を進めます。

PIC PIC PIC PIC PIC PIC PIC PIC

インストールが開始したらしばし待ちます。 *10

PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC

8.4 実行してみる

それでは、 インストールした OS を起動してみましょう。 メモリは 512MB 程度割り当てないと起動しないよう です。

$ qemu-system-x86_64 -hda nexenta.cow \
 -m 512 -kernel-kqemu \
 -redir tcp:2222::22

手元のシステムでは、 コマンドラインでログインができる状態まで 3 分程度かかりました。

PIC

通常のコンソールのログイン画面が立ち上がり、 ログイン可能になります。

デフォルトで sshd *11 などもインストールされているようです。 netstat で確認すると listen しているようですので、 ssh でログインして作業するこ とが可能なようです。 ここでは、 qemu で -redir オプションを使い、 SSH の 22 番ポートをホスト OS の 2222 ポートからア クセスできるようにしています。

-nographic -serial stdio オプションも追加してヘッドレスで稼働させることも可能です。 ただし、 デフォルトではシリアル コンソールには何も出力されないようです。

ネットワークデバイスは ni0 になっているようです。 IP アドレスは qemu の機能で DHCP で提供されているアドレス (10.0.2.15) になっています。

8.5 Debian との互換性

初期インストールのパッケージ数が非常に多いです。 OpenSolaris のデフォルトインストールに相当するものを そのままパッケージにしているのでしょうか? SUNW ではじまるパッケージ名などがそれっぽさを物語り ます。

dancer@vm1:~$ dpkg -l | wc -l
464
dancer@vm1:~$ dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  adduser        3.80nexenta3   Add and remove users and groups
ii  alien          8.73.4         install non-native packages with dpkg
ii  apt            0.6.46.4nexent Advanced front-end for dpkg
ii  apt-utils      0.6.46.4nexent APT utility programs
ii  aptitude       0.4.4-1nexenta terminal-based apt frontend
[中略]
ii  sunw1394       5.11.82-1      Sun IEEE1394 Framework
ii  sunwaac        5.11.82-1      Adaptec AdvanceRaid Controller SCSI HBA Driv
ii  sunwad810      5.11.82-1      SUNW W1100z & W2100z Audio Drivers
ii  sunwadixp      5.11.82-1      SUNW Audio Driver for ATI IXP
ii  sunwadpu320    5.11.82-1      Adaptec Ultra320 Driver
ii  sunwafe        5.11.82-1      ADMtek Ethernet Driver
ii  sunwagp        5.11.82-1      AGP GART Driver
ii  sunwahci       5.11.82-1      Advanced Host Controller Interface (AHCI) SA
ii  sunwamd8111s   5.11.82-1      AMD8111 FAST Ethernet Network Adapter Driver
ii  sunwamr        5.11.82-1      LSI MegaRAID SCSI HBA Driver
[中略]
ii  sunwsshcu      5.11.82-1      SSH Common, (Usr)
ii  sunwsshdr      5.11.82-1      SSH Server, (Root)
ii  sunwsshdu      5.11.82-1      SSH Server, (Usr)
ii  sunwsshr       5.11.82-1      SSH Client and utilities, (Root)
ii  sunwsshu       5.11.82-1      SSH Client and utilities, (Usr)
ii  sunwtavor      5.11.82-1      Sun Tavor HCA driver
[略]

8.6 ないパッケージをビルドしてみた

/etc/hosts をいじってみようとしたら、 シンボリックリンクになってました。 しかも root 権限でも書き込み不可になってい ます。

root@vm1:/export/home/dancer# ls -l /etc/hosts
lrwxrwxrwx 1 root root 12 Mar 19 08:15 /etc/hosts -> ./inet/hosts
root@vm1:/export/home/dancer# ls -l /etc/inet/hosts -l
-r--r--r-- 1 root sys 1078 Apr  6 10:28 /etc/inet/hosts

気をとりなおして、 /etc/apt/sources.list に適当にソースを追加します。

deb-src http://cdn.debian.or.jp/debian unstable main contrib non-free

apt-listbugs が存在しないみたいなので、 ビルドしてみようと思います。

まず、 なぜだか racc, rdtool が足りないのでビルドしてインストールします。 無事に apt-listbugs 自体もビルドできたので、 意気揚々とインストールしてみます。

root@vm1:/tmp/apt-listbugs-0.0.88# debi
Selecting previously deselected package apt-listbugs.
(Reading database ... 27441 files and directories currently installed.)
Unpacking apt-listbugs (from apt-listbugs_0.0.88_all.deb) ...
dpkg: dependency problems prevent configuration of apt-listbugs:
 apt-listbugs depends on ruby (>= 1.8); however:
  Package ruby is not installed.
 apt-listbugs depends on libruby1.8 (>= 1.8.5); however:
  Version of libruby1.8 on system is 1.8.4-1nexenta1.3.
 apt-listbugs depends on libdpkg-ruby1.8 (>= 0.3.2); however:
  Package libdpkg-ruby1.8 is not installed.
 apt-listbugs depends on libgettext-ruby1.8; however:
  Package libgettext-ruby1.8 is not installed.
 apt-listbugs depends on libxml-parser-ruby1.8; however:
  Package libxml-parser-ruby1.8 is not installed.
 apt-listbugs depends on libhttp-access2-ruby1.8 (>= 2.0.6); however:
  Package libhttp-access2-ruby1.8 is not installed.
dpkg: error processing apt-listbugs (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 apt-listbugs
debi: debpkg -i failed

残念、 いくつかエラーがあるようです。 ruby 自体が古いというエラーや、 いくつかのライブラリが足りないというエラーが でています。

解決できそうな問題も、 解決できなさそうな問題もあります。 先は長いか?

8.7 まとめ

今回は Nexenta Core Platform をとりあえず仮想マシンにインストールしてみました。 いろいろと Debian GNU/Linux と違 う部分があったので、 今後どのように開発がすすむのか、 気になります。 ____________________________________________________________________________________________

PIC Debian 勉強会資料

2008 年4 月19 日  初版第1 刷発行
東 京 エ リ ア Debian 勉強会 (編集・印刷・発行)
__________________________