48
Community Meetup #2 Nutanix Community Edition 技術解説 ニュータニックス・ジャパン合同会社 シニアシステムズエンジニア 島崎 聡史(Tw:@smzksts)

Nutanix Community Edition 技術解説

Embed Size (px)

Citation preview

Page 1: Nutanix Community Edition 技術解説

Community Meetup #2

Nutanix Community Edition 技術解説

ニュータニックス・ジャパン合同会社

シニアシステムズエンジニア

島崎 聡史(Tw:@smzksts)

Page 2: Nutanix Community Edition 技術解説

4 Please tweet with #nutanix

Thank you for your registration!!

3200+

Page 3: Nutanix Community Edition 技術解説

5 Please tweet with #nutanix

ご注意

Community Meetup への参加(Connpassへの登録)

≠Community Edition Public Beta への登録

Page 4: Nutanix Community Edition 技術解説

7 Please tweet with #nutanix

Agenda

• システム要件

• 事前準備

• インストール

• Web UI へのログインと初期設定

• 仮想マシンの作成

• Tips

Page 5: Nutanix Community Edition 技術解説

システム要件

Page 6: Nutanix Community Edition 技術解説

9 Please tweet with #nutanix

構成イメージ

Nutanix Community Edition(KVM)の起動イメージをUSBメモリから読み込む

CVM CVM CVM

KVM KVM KVM

VM VM VM VM VM VM

Page 7: Nutanix Community Edition 技術解説

10 Please tweet with #nutanix

Community Edition 最小システム要件

Min

imum

Req

uire

men

ts

Servers 1, 3 & 4 servers

CPU Intel CPUs, 4-cores minimum, with VT-x support

Memory 16GB minimum

Storage Subsystem RAID0 (LSI HBAs) or AHCI storage sub-systems

Hot Tier (SSD) One SSD per node minimum, ≥ 200GB per node

Cold Tier (HDD) One HDD per node minimum, ≥ 500GB per node

Networking Intel NICs

Page 8: Nutanix Community Edition 技術解説

11 Please tweet with #nutanix

Example Systems

Cisco

Cisco UCS C220 M3

CPU: Intel Xeon E5-2609v2 2.5GHz, RAM: 24GB DDR3

SSD: Cisco Enterprise Value SSD - 240 GB, HDD: Cisco - 500 GB - 2.5" SFF - SATA 6Gb/s - 7200 rpm

NIC: Broadcom NetXtreme II 5709

Dell

Dell PowerEdge R220

CPU: Intel Xeon E3-1220v3 3.1GHz, RAM: 32GB DDR3

SSD: Kingston SSDNow E50 - 480GB, HDD: 7.2k RPM SATA 3Gbps 2.5in - 1TB

NIC: On-Board LOM 1GBE (LAN on Motherboard)

HP

HP ProLiant DL320e Gen8 v2

CPU: Intel Xeon E3-1220v3 3.1GHz, RAM: 32GB DDR3

SSD: Kingston SSDNow E50 - SSD - 240 GB, HDD: HP Midline HDD - 500 GB - SATA 6Gb/s - 7200 rpm

NIC: HP Ethernet 1Gb 2-port NC332i Adapter

SuperMicro

SuperMicro SuperServer 1018D-73MTF

CPU: Intel Xeon E3-1220v3 3.1GHz, RAM: 32GB DDR3

SSD: Seagate Pulsar.2 Enterprise SAS SSD - 200GB, HDD: Seagate Constellation.2 SATA 6Gb/s 7.2K

RPM 64M - 500GB

NIC: Intel I210AT - Dual Gigabit Ethernet LAN

Page 9: Nutanix Community Edition 技術解説

12 Please tweet with #nutanix

/ ̄ ̄\/ _ノ \| ( ●)(●)

. | (__人__)____| ` ⌒/ ─' 'ー\

. | /( ○) (○)\

. ヽ / ⌒(n_人__)⌒ \ ハードル高すgヽ |、 ( ヨ |/ `ー─- 厂 /| 、 _ __,,/ \

Page 10: Nutanix Community Edition 技術解説

13 Please tweet with #nutanix

自宅でやるなら(例)

物理4コア以上のベアボーン

• GIGABYTE BRIX Pro

Nested環境

• Intel VT-x Passthroughできるもの

• VMware Player, Workstation, Fusion, ESXi

• KVM?

• メモリ

• 16GB程度

• 少ない場合にはページングファイルのサイズを増やす

Page 11: Nutanix Community Edition 技術解説

事前準備

Page 12: Nutanix Community Edition 技術解説

15 Please tweet with #nutanix

ブートUSBの準備

1. Community Edition Public Betaに登録

2. ご案内のメールが届く

3. ダウンロードしたバイナリを解凍

4. ~.img ファイルをUSBメモリに書き込み

• Windowsユーザー:USBWriter(フリーウェア)など

http://sourceforge.net/projects/usbwriter/

• MacOSユーザー:ddコマンド

Page 13: Nutanix Community Edition 技術解説

16 Please tweet with #nutanix

Nested環境の設定例 – OSタイプ

OSタイプの選択

• CentOS 64ビット

Page 14: Nutanix Community Edition 技術解説

17 Please tweet with #nutanix

Nested環境の設定例 – プロセッサ

プロセッサ

• コア数:4

• 仮想化エンジン

• Intel VT-x/EPT または AMD-V/RVI を仮想化

Page 15: Nutanix Community Edition 技術解説

18 Please tweet with #nutanix

Nested環境の設定例 – ディスク

• SATA

• ~.imgを “ce-flat.vmdk” にリネーム

• 同一フォルダに “ce.vmdk” を作成 http://www.virtuallifestyle.nl/2015/06/nextconf-running-nutanix-community-edition-nested-on-fusion/

• SCSI

• 0:0 - 200GB

• 0:1 - 500GB

# Disk DescriptorFileversion=4encoding="UTF-8"CID=a63adc2aparentCID=ffffffffisNativeSnapshot="no"createType="vmfs"

# Extent descriptionRW 14540800 VMFS "ce-flat.vmdk"

# The Disk Data Base#DDBddb.adapterType = "lsilogic"ddb.geometry.cylinders = "905"ddb.geometry.heads = "255"ddb.geometry.sectors = "63"ddb.longContentID = "2e046b033cecaa929776efb0a63adc2a"ddb.uuid = "60 00 C2 9b 69 2f c9 76-74 c4 07 9e 10 87 3b f9"ddb.virtualHWVersion = "10"

Page 16: Nutanix Community Edition 技術解説

19 Please tweet with #nutanix

Nested環境の設定例 - BIOS

SATAの起動順序を上に

Page 17: Nutanix Community Edition 技術解説

インストール

Page 18: Nutanix Community Edition 技術解説

21 Please tweet with #nutanix

起動開始

Page 19: Nutanix Community Edition 技術解説

22 Please tweet with #nutanix

ログインプロンプト

Page 20: Nutanix Community Edition 技術解説

23 Please tweet with #nutanix

【Nested環境のみ】HDDをSSDとして認識させる

1. ユーザー名:rootパスワード:nutanix/4u でログイン

2. デバイス名の確認

3. パラメータの変更

4. ログアウト

Page 21: Nutanix Community Edition 技術解説

24 Please tweet with #nutanix

インストーラーの開始 &キーボードレイアウトの設定

1. ユーザー名:installパスワード:なしでログイン

2. キーボードレイアウトを指定

Page 22: Nutanix Community Edition 技術解説

25 Please tweet with #nutanix

インストーラーの開始 &キーボードレイアウトの設定

1. Host(ハイパーバイザー)とCVMのIPアドレス、サブネットマスク、ゲートウェイを指定

2. Create single-node cluster?• 1ノード構成の場合はチェックを入れるとCluster作成とDNSの設定が自動で行われる

• HostとCVMが 192.168.X.Y のセグメントの場合は動作しないため、チェックは入れず、後で手動設定

3. EURAを最後まで読む(スクロール)

4. License Agreementに同意

Page 23: Nutanix Community Edition 技術解説

26 Please tweet with #nutanix

インストール完了 & CVMへのログイン

1. インストールが正常に完了し、Success! と表示されたのを確認

2. Enterキーを押してログインプロンプトに戻る

3. CVMのIPアドレスが表示されたのを確認し、SSHクライアントで接続する

• ユーザー名: nutanix

• パスワード: nutanix/4u

Page 24: Nutanix Community Edition 技術解説

27 Please tweet with #nutanix

Clusterの作成

DNSの設定

Clusterの作成 & DNSの設定(未作成の場合のみ)

$ ncli

ncli> cluster add-to-name-servers servers=“<DNS Server>"

$ cluster –s <CVM IP Address> -f create

Page 25: Nutanix Community Edition 技術解説

Web UI へのログインと初期設定

Page 26: Nutanix Community Edition 技術解説

29 Please tweet with #nutanix

初回接続 & adminパスワード初期化

1. https://<CVM IP>:9440/console/ にブラウザで接続

2. adminユーザーのパスワードを設定

3. adminユーザーでログイン

4. Next Community(Nutanixのポータル)のアカウント(メールアドレス、パスワード)で認証

5. 成功するとDashboardが表示される

Page 27: Nutanix Community Edition 技術解説

30 Please tweet with #nutanix

Page 28: Nutanix Community Edition 技術解説

インストール完了後、最初にすべきこと

Page 29: Nutanix Community Edition 技術解説

32 Please tweet with #nutanix

Page 30: Nutanix Community Edition 技術解説

33 Please tweet with #nutanix

Storage Pool & Container の作成

• Storage Pool – 物理ディスクを束ねたもの

• Container – 論理ストレージ(データストア)

Page 31: Nutanix Community Edition 技術解説

34 Please tweet with #nutanix

Page 32: Nutanix Community Edition 技術解説

35 Please tweet with #nutanix

Page 33: Nutanix Community Edition 技術解説

36 Please tweet with #nutanix

Page 34: Nutanix Community Edition 技術解説

37 Please tweet with #nutanix

Page 35: Nutanix Community Edition 技術解説

38 Please tweet with #nutanix

Page 36: Nutanix Community Edition 技術解説

39 Please tweet with #nutanix

Page 37: Nutanix Community Edition 技術解説

仮想マシンの作成

Page 38: Nutanix Community Edition 技術解説

41 Please tweet with #nutanix

仮想マシンの作成の流れ

1. ISOイメージのアップロード(必要に応じて)

2. 仮想ネットワークの作成(未作成の場合)

3. 仮想マシンの作成

4. ゲストOSのインストール

Page 39: Nutanix Community Edition 技術解説

42 Please tweet with #nutanix

ISOイメージのアップロード

• CIFS / NFS によるアップロード

• Filesystem Whitelists にアクセス元端末のIPアドレスを登録

• 接続時のパスはContainer名まで指定(例:¥¥<IPADDR>¥ISO)

• 認証なし

• SFTPによるアップロード

• SFTP で CVMの2222ポートにアクセス

• Web UI のユーザーで認証

Cluster Administrator 権限が必要

• Tips

• ISOイメージ専用のContainerを作ると整理しやすい

Page 40: Nutanix Community Edition 技術解説

43 Please tweet with #nutanix

Page 41: Nutanix Community Edition 技術解説

44 Please tweet with #nutanix

Page 42: Nutanix Community Edition 技術解説

Tips

Page 43: Nutanix Community Edition 技術解説

46 Please tweet with #nutanix

Windows Guest OSのインストール

• インストール時

• VirtIO SCSIドライバーを読み込ませる必要あり

• インストール後

• VirtIO BalloonとVirtIO NICドライバーを読み込ませる必要あり

• VirtIOドライバの入手元

• Fedora Project

https://fedoraproject.org/wiki/Windows_Virtio_Drivers

Page 44: Nutanix Community Edition 技術解説

47 Please tweet with #nutanix

正しいシャットダウンの手順

1. Guest VM をすべてシャットダウン

2. Clusterを停止

• CVM上で cluster stop を実行

3. CVM をシャットダウン

4. Hypervisorをシャットダウン

Page 45: Nutanix Community Edition 技術解説

48 Please tweet with #nutanix

KVM環境におけるストレージの使われ方

• virsh dumpxml <vm-id> の実行結果(抜粋)<disk type='network' device='lun'>

<driver name='qemu' type='raw' cache='none' error_policy='stop' io='native'/>

<source protocol='iscsi' name='iqn.2010-06.com.nutanix:vmdisk-c3588f8c-611a-46a5-9403-0aaf008fa955/0'>

<host name='127.0.0.1' port='3261'/>

</source>

<backingStore/>

<target dsev='sda' bus='scsi'/>

<alias name='scsi0-0-0-0'/>

<address type='drive' controller='0' bus='0' target='0' unit='0'/>

</disk>

• KVMに対しては、NutanixはiSCSIストレージとして動作• ただし、KVM Hypervisor自身はNutanixのiSCSI Targetにアクセスしてはいない

• QEMUのBuilt-in iSCSIイニシエータ機能で、CVMが生成した仮想ディスク(iSCSI-LUN)に対してVMが直接アクセス(1仮想ディスク=1 iSCSI LUN)

Page 46: Nutanix Community Edition 技術解説

49 Please tweet with #nutanix

Guest VMを起動した際に OS not found だと...

Page 47: Nutanix Community Edition 技術解説

51 Please tweet with #nutanix

今後のスケジュール

Nutanix Community Edition ブログコンテスト開催中!7/20(月) 23:59まで

Nutanix Community Meetup #32015年7月22日(水)

詳細は nutanix.connpass.com にて!

Page 48: Nutanix Community Edition 技術解説

Thank You