Skip to main content

Fujitsu

Japan

まっちーの仮想化講座
第1回:Oracle VM Server for SPARC Softwareのインストール

2011年8月9日


 

SPARC Enterprise の仮想化機能の一つに Oracle VM Server for SPARC(旧称:LDoms)があります。これは対応機種であれば、どなたでも無償で使うことができるお得な機能です(対応機種)。
本連載では、Oracle VM Server for SPARC の構築や便利な使い方を紹介します。

ここでは、Oracle VM Server for SPARCを構築するサーバとしてSPARC Enterprise T5120を用意しました。

それでは、サーバにログインしましょう。まずはシステム監視機構:ILOMにログインします。ILOMへのログインはSSHで行う必要があります。

$ ssh -l root
Password:

Waiting for daemons to initialize...

Daemons ready

Integrated Lights Out Manager

Version 3.0.12.4.e r61382

Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.

本連載では、Oracle VM Server for SPARC 2.0 を使用しています。動作環境はこちらをご覧ください。

では、用意したサーバが動作条件にあっているかどうか、確認していきましょう。
ファームウェア版数の確認はILOMで行います。

-> show /HOST

/HOST
Targets:
bootmode
console
diag
domain
tpm

Properties:
autorestart = reset
autorunonerror = false
bootfailrecovery = poweroff
bootrestart = none
boottimeout = 0
hypervisor_version = Hypervisor 1.9.2.e 2011/01/04 17:24
macaddress = 00:14:4f:d5:0d:36
maxbootfail = 3
obp_version = OpenBoot 4.32.2.b 2010/12/21 20:20
post_version = POST 4.32.2.b 2010/12/21 20:26
send_break_action = (Cannot show property)
status = Powered on
sysfw_version = Sun System Firmware 7.3.0.c2011/01/04 19:00

ファームウェア版数が古いようでしたら、こちらから最新ファームウェアをダウンロードしてインストールしてください。
(注)ファームウェアは、当社SupportDeskサービスをご契約いただくことで入手できます。

ファームウェアの版数確認ができたら、OSにログインします。

-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y

Serial console started. To stop, type #.

t5120 console login:

OSにログインできたら、OSのアップデートリリースや必須パッチ、ESFのバージョンを確認しましょう。

SPARC Enterprise T5120# cat /etc/release
Oracle Solaris 10 9/10s10s_u9wos_14a SPARC
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Assembled 11 August 2010
SPARC Enterprise T5120# showrev -p | grep 142909-17
Patch: 142909-17 Obsoletes:・・・・
SPARC Enterprise T5120# showrev -p | grep 141514-02
Patch: 141514-02 Obsoletes:・・・・
SPARC Enterprise T5120# /opt/FJSVbse/bin/esfver

esfver: 情報: インストール済みEnhanced Support Facilityの総合版数
VERSION=3.1  REVISION=2008.09.0200,

ESF PATCH_VERSION = 3.1A10_20100218

これで用意したサーバがOracle VM Server for SPARC 2.0に対応した環境であることが確認できました。
もし、何か足りないものがありましたら、こちらを参照して環境を準備してください。

サーバの準備はできましたが、Oracle VM Server for SPARCを構築するときにはもう一つ 「Oracle VM Server for SPARC Software」が必要になります。
以下のサイトからダウンロードできますので、ダウンロードして任意のディレクトリに配置してください。

ここでは、ダウンロードしたアーカイブを以下のディレクトリに配置しました。

SPARC Enterprise T5120# cd /opt/software/
SPARC Enterprise T5120# ls -l

合計 6921
-rw-r--r--   1 root   root   3429522 12月 1日 23:11 V22736-01.zip

では、解凍してインストールしてみましょう。

SPARC Enterprise T5120# unzip -q V22736-01.zip
SPARC Enterprise T5120# ls

OVM_Server_SPARC-2_0 V22736-01.zip
SPARC Enterprise T5120# cd OVM_Server_SPARC-2_0/
SPARC Enterprise T5120# ls

Install Product README
SPARC Enterprise T5120# ./Install/install-ldm

Welcome to the Oracle VM Server for SPARC installer.

You are about to install the Oracle VM Server for SPARC Manager package,SUNWldm, that will enable you to create, destroy and control other domains on your system. You will also be given the option of running the Oracle VM Server for SPARC Configuration Assistant (ldmconfig) to setup the control domain and create guest domains.

If the Solaris Security Toolkit (SST) is installed, you will be prompted to optionally harden your control domain.

Installing Oracle VM Server for SPARC packages.
pkgadd -n -d "/opt/software/OVM_Server_SPARC-2_0/Product" -a pkg_admin SUNWldm.v
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.

のインストールに成功しました。
pkgadd -n -d "/opt/software/OVM_Server_SPARC-2_0/Product" -a pkg_admin SUNWldmp2v
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.

のインストールに成功しました。

Oracle VM Server for SPARC Configuration

Once installed, you may configure your system for a basic Oracle VM Server for SPARC deployment. If you select "y" for the following question, the Oracle VM Server for SPARC Configuration Assistant (tty) will be launched following a successful installation of the packages.

(You may launch the Configuration Assistant at a later time with the command: /usr/sbin/ldmconfig, or use the GUI Configuration Assistant which is bundled in the Oracle VM Server for SPARC zip file - see README.GUI for more details)

Select an option for configuration:

y) Yes, launch the Configuration Assistant after install
n) No thanks, I will configure the system manually later

Enter y or n [y]: n

Verifying that all packages are fully installed. OK.
SPARC Enterprise T5120#

最後に何やらYes/Noの選択肢が出てきます。これは、Configuration Assistantという機能を使って、Oracle VM Server for SPARCの設定をするかどうかの選択です。
"y"だと自動で作ってくれるのですが、いろいろと自由が利かないなので、ここでは"n"を選択して、自分で設定をすることにします。

インストーラを実行すると、二つのパッケージがインストールされます。ちゃんとインストールされているか、念のため確認しておきましょう。

SPARC Enterprise T5120# pkginfo SUNWldm SUNWldmp2v
application SUNWldm    Oracle VM Server for SPARC Manager software
application SUNWldmp2v Oracle VM Server for SPARC P2V tool

さて、無事にインストールが完了したようですので、早速管理コマンド:ldm(1M)コマンドを使ってみましょう。Oracle VM Server for SPARCの設定や管理には、このldm(1M)コマンドを使用します。

SPARC Enterprise T5120# ldm list-domain
NAME             STATE      FLAGS   CONS  VCPU  MEMORY  UTIL  UPTIME
primary          active     -n-c--  SP    32    8064M   0.1%  1h 37m

ldm に list-domainというサブコマンドを付けて実行した結果です。list-domainはその名の通り、Oracle VM Server for SPARCの状態を表示するサブコマンドです。おそらくOracle VM Server for SPARCの構築や管理をする上で、一番多く実行するサブコマンドでしょう。
Oracle VM Server for SPARC Softwareをインストールしたら、その時点でそのOS環境が制御ドメインとなります。制御ドメインはXenでいう、Domain-0にあたるものです。ldm list-domain では常に"primary"と表示されます。

これでOracle VM Server for SPARC構築の準備ができました。次回は仮想サービスの作成など、制御ドメインの設定をしてみたいと思います。


応援メッセージはtwitterにて、ハッシュタグ #fjsparcOpen a new window までお願いします。