3.3 Oracle VM Agent for SPARCの構成

3.3.1 ネットワークの構成
3.3.2 Oracle VM Agentの構成
3.3.3 LDoms Managerの構成
3.3.4 LDomsの構成

Oracle VM Agent for SPARCは、Oracle VM Agent for SPARCのセットアップ・コマンド、ovs-agent-setupを使用して構成できます。このコマンドでは、正しく実行できるようOracle VM Agentが正しく構成されているかが確認されます。システムが正しく構成されていない場合、コマンドによって構成に対する修正が試行されます。ovs-agent-setupコマンドは、Oracle VM Agentのインストール時に自動的に実行されます。

このコマンドを実行し、Oracle VM Agent for SPARCの構成を手動で制御するには、制御ドメインから、ovs-agent-setupコマンドを実行します。

# ovs-agent-setup

3.3.1 ネットワークの構成

  1. サーバーがDefaultFixedネットワーク構成プロファイルで構成されていない場合、ネットワーク・プロファイル構成メニューが表示されます。

    Network Configuration
    *** ERROR: The DefaultFixed network profile is not enabled.
     
    ----------------------------------------------------------------------
     
    Network Profile Configuration
     
    The system must be configured with the DefaultFixed network
    profile. You can manually configured the DefaultFixed network
    or you can use this tool to do the configuration. This tool
    will configure a single network interface, all other network
    interfaces will be unconfigured.
     
    Do you want to use this tool to configure the network?
     
      1) Yes, use this tool to configure the network
      2) No, I will configure the network manually
     
    Choice (1-2) [1]:

    DefaultFixedネットワーク構成プロファイルを有効にし、ネットワークを構成するツールを使用するには、1を選択します。

    ネットワークの構成を省略するには、2を選択します。この場合、手動でDefaultFixedネットワーク構成プロファイルを有効にしてネットワークを構成する必要があります。

  2. ネットワークを構成する際に、システム・コンソールに接続されていない場合、警告が表示されます。

    !!! WARNING !!!
     
    You are not connected to the system console. Reconfiguring
    the network can disrupt your remote connection to the server
    and you can lose the remote access to the server.
     
    !!! WARNING !!!
     
    Are you sure that you want to continue?
     
      1) Yes, continue and configure the network
      2) No, cancel the configuration of the network
     
    Choice (1-2):

    ネットワーク構成を続行するには、1を選択します。

    警告

    ネットワークを構成することにより、サーバーの現在のネットワーク接続が中断されてしまい、ネットワークから切断される場合があります。ネットワークはシステム・コンソールから構成した方が安全です。

    ネットワークの構成をキャンセルするには、2を選択します。その後、システム・コンソールに接続し、ovs-agent-setupを再度実行して構成を再開します。

  3. 「Oracle VM Management Interface」メニューが表示されます。

    Collecting information about network interfaces...
     
    ----------------------------------------------------------------------
     
    Oracle VM Management Interface
     
    Choose the network interface to use for the management of this
    machine.
     
      1) net0: 00:14:4f:e3:0f:12 (nxge0)
      2) net1: 00:14:4f:e3:0f:13 (nxge1)
      3) net2: 00:14:4f:e3:0f:14 (nxge2)
      4) net3: 00:14:4f:e3:0f:15 (nxge3)
     
    Interface (1-4) [1]:

    サーバーの管理に使用するネットワーク・インタフェースを選択します。

  4. 「Network Interface Configuration」メニューが表示されます。

    IPv4 Configuration for net0
     
      1) Dynamic IP configuration (DHCP)
      2) Manual address configuration
     
    IPv4 Configuration (1-2) [1]:

    DHCPを使用してネットワーク・インタフェースを構成するには、1を選択します。静的なIPアドレスを使用してネットワーク・インタフェースを構成するには、2を選択します。

    DHCPを使用したネットワークの構成

    1. DHCPを使用してネットワーク・インタフェースを構成する場合、「Hostname Configuration」メニューが表示されます。

      Hostname Configuration
       
      If your system is part of a larger network where hostnames
      are assigned by DHCP, select automatically via DHCP.
      Otherwise, select manually and enter a hostname for your
      system.
       
        1) automatically via DHCP
        2) manually
       
      Hostname Configuration (1-2) [1]:

      ホスト名の割当てにサーバーがDHCPを使用する場合は1を選択します。サーバーに独自のホスト名がある場合は2を選択します。その後、ホスト名を求められたら、使用するホスト名を入力します。

    2. 「Oracle VM Management Interface」構成が表示されます。

      Oracle VM Management Interface
       
        Interface: net0
        IP Address: DHCP
        Hostname: DHCP
       
      Are these parameters correct?
       
        1) Yes, configure the network with these parameters
        2) No, enter new parameters for the network configuration
       
      Choice (1-2):

      1を選択しパラメータが正しいことを確認します。ツールによってネットワークが構成されます。新しいパラメータを入力する場合に2を入力すると、ネットワークを構成する手順が最初から開始されます。

    静的IPを使用したネットワークの構成

    1. ネットワーク・インタフェースに静的なIPを構成する場合、ツールによってIPの構成情報の入力が求められます。

      IP Address [192.168.1.10]:
        Prefix (Netmask) [255.255.255.0]:
        Gateway [192.168.1.1]:
        Primary DNS [192.168.168.168]:
        Secondary DNS [192.168.169.169]:
        Hostname [foo.example.com]:
    2. 「Oracle VM Management Interface」構成が表示されます。

      Oracle VM Management Interface
       
        Interface: net0
        IP Address: 192.168.1.10
        Prefix (Netmask): 255.255.255.0
        Gateway: 192.168.1.1
        Primary DNS: 192.168.168.168
        Secondary DNS: 192.168.169.169
        Hostname: foo.example.com
       
      Are these parameters correct?
       
        1) Yes, configure the network with these parameters
        2) No, enter new parameters for the network configuration
       
      Choice (1-2):

      1を選択しパラメータが正しいことを確認します。ツールによってネットワークが構成されます。新しいパラメータを入力する場合に2を入力すると、ネットワークを構成する手順が最初から開始されます。

    ホスト名の構成

    セットアップ・ツールでは、ホスト名がlocalhostとは異なり、127.0.0.1とは別のIPアドレスに解決されるか、サーバーのホスト名の構成が正しいかが確認されます。

    1. サーバーのホスト名がlocalhostに設定されている場合、エラーが表示されます。

      *** ERROR: The server has an invalid hostname (localhost).
       
      ----------------------------------------------------------------------
       
      Server Hostname
       
      The server has no hostname or an invalid hostname. Use
      the "hostname" command to check and configure the hostname
      of the server. You might also want to check the network
      configuration of the server.
       
      Press <return> to continue...
      *** ERROR: The server has an invalid hostname (localhost).

      セットアップ・ツールが終了したら、hostnameコマンドを使用してサーバーのホスト名を構成します。

    2. ホスト名が127.0.0.1に解決されるとエラーが表示され、ホスト名が127.0.0.1に解決されるよう/etc/hostsファイルが更新されます。

      *** ERROR: The server hostname (foo) should not resolve to 127.0.0.1.
      Configuring /etc/hosts to not resolve foo to 127.0.0.1
      Updating /etc/inet/hosts, the previous file is backed up as /etc/inet/hosts.20121128190648

      セットアップ・ツールによって/etc/hostsファイルが更新されると、元の/etc/hostsファイルは、/etc/inet/hosts.<date-and-time>としてバックアップされます。

    3. ホスト名がIPアドレスに解決されない場合、エラーが表示されます。

      *** ERROR: The server hostname (foo) does not resolve to an IP address.
       
      ----------------------------------------------------------------------
       
      Server IP Address
       
      The server hostname does not resolve to an IP address.
       
        hostname: foo
       
      Update the /etc/hosts file or the name service so that the
      hostname of the server is resolved to a valid IP address.
      You might also want to check the network configuration of
      the server.
       
      Press <return> to continue...
      *** ERROR: The server hostname (fooxxx) does not resolve to an IP address.

      セットアップ・ツールが終了したら、/etc/hostsファイルまたはネーム・サービスを更新してホスト名が有効なIPアドレスに解決されるようにします。ネーム・サービスの詳細は、次のOracle Solaris 11.1でのネーム・サービスおよびディレクトリ・サービスの作業に関するドキュメントを参照してください。

      http://docs.oracle.com/cd/E26502_01/html/E29002/index.html

3.3.2 Oracle VM Agentの構成

Oracle VM Agentのパスワードが定義されていない場合、Oracle VM Agentのパスワード・メニューが表示されます。

*** ERROR: The Oracle VM agent password is not defined.
 
----------------------------------------------------------------------
 
Oracle VM Agent password
 
Enter a password for the Oracle VM agent (ovs-agent)
This password is used in Oracle VM manager to manage
and monitor this server and its guest VMs. You must
type it twice to ensure you know what it is and
didn't make a mistake in typing.
 
Password:
Password (confirm):

Oracle VM Agentに使用するパスワードを入力します。このパスワードは、Oracle VM Server for SPARCおよびそこで作成されて実行しているゲストを管理および監視するためにOracle VM Managerが使用します。これは、Oracle VM Manager内でOracle VM Serverを検出する場合に使用するパスワードです。

パスワードを再入力します。

パスワードの文字は、画面に表示されません。2つのパスワードが一致しないときは、ツールから再入力のプロンプトが表示されます。

3.3.3 LDoms Managerの構成

セットアップ・ツールは、LDoms Managerの構成が正しいか確認をします。

LDoms Managerの構成が不正な場合、その構成は自動的に更新されます。

LDoms Manager Configuration
*** WARNING: The LDoms Manager is not configured for outgoing migration.
Configuring the domain manager
LDoms Manager Configuration OK

3.3.4 LDomsの構成

セットアップ・ツールは、LDomsの構成が正しいか確認をします。

  1. LDomsの構成が不正な場合、自動的に更新されサービス・プロセッサに保存されます。

    LDoms Configuration
    *** ERROR: The vcc service is not configured on the primary domain.
    *** ERROR: The vds service is not configured on the primary domain.
    *** WARNING: The primary domain is configured with too many cpus for creating guest virtual 
      machines.
    *** WARNING: The primary domain is configured with too much memory for creating guest 
      virtual machines.
    *** WARNING: The primary domain is not configured with the recommended number of cpus (8).
    *** WARNING: The primary domain is not configured with the recommended amount of memory (8GB).
    *** WARNING: The system is not using the ovm-initial configuration.
    Configuring the vcc service
    Configuring the vds service
    Configuring the primary domain
    Saving the ovm-initial configuration on the service processor
    LDoms Configuration OK
  2. LDomsの構成が更新されると、「LDoms Configuration」メニューが表示されます。

    LDoms Configuration
     
    The LDoms configuration has been created and stored on the
    service processor. To activate this configuration, you need
    to reboot the system.
     
    Do you want to reboot the system now?
     
      1) Yes, reboot the system now
      2) No, I will reboot the system later
     
    Choice (1-2):

    システムを今すぐ再起動しLDoms構成をアクティブにするには、1を選択します。インストーラを終了して、手動でシステムを再起動しLDoms構成をアクティブにするには、2を選択します。