oracle cloud デザイン・パターン -how to access the compute instance using vnc-

15
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Copyright © 2016 Oracle and/or its affiliates. All rights reserved. | Oracle Cloud デデデデ デデデデ PaaS/IaaS デデデデデデデデデデデデデデデ2016 年 10 年 20 年 年年年年 年年年年年年年年年年 Cloud/Big Data/DIS 年年年年年年年 年年年年年年年年年

Post on 07-Jan-2017

143 views

Category:

Technology


0 download

TRANSCRIPT

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |Copyright © 2016 Oracle and/or its affiliates. All rights reserved. |

Oracle Cloud デザイン・パターン~ PaaS/IaaS アーキテクチャーの設計カタログ~

2016 年 10 月 20 日クラウド・テクノロジー事業統括 Cloud/Big Data/DIS プロダクト本部エンジニアリング部

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 2

Safe Harbor StatementThe following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 3

Document Control

• 本資料は、 Oracle Database 12cR1 ならびに Database Cloud Service 16.3.5 を前提に説明します–製品・サービスのアップデートに伴い、内容が変更される可能性があります–最新情報は、各製品・サービスのマニュアルやドキュメントをご確認下さい

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 4

Document Control

Date Version 変更箇所2016/09 1.0 Compute Cloud 16.3.5 で資料作成2016/10 1.1 スクリーンロックの無効化について追記

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 5

アーキテクチャー設計時に生じる典型的な課題

• Compute Service 上で GUI を表示するための方法は?

• VNC を利用できるのか?

Oracle Cloud を検討してくれているお客様の声

設計課題

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

• 解決したい課題:– アプリケーションの新規インストール時やメ

ンテナンス時に GUI を利用したい。

– オンプレミスのクライアント側にて X window サーバを利用し、 X 転送を試みたが画面描画に時間がかかってしまう。 (ネットワークレイテンシの問題)

• Oracle Cloud での解決方法:– Compute Cloud Service インスタンス上で

vncserver を起動し VNC でアクセスします。

How to access the compute instance using VNC

6

設計ガイド

オンプレミス

Compute Cloud Service

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 7

• メリット: • 補足事項:– VNC server をインストールするため、必要に

応じて Gnome 等、多くのパッケージを追加する必要があります。

– ストレージ領域の見積もりにご注意ください。YUM を利用する場合、パッケージリストの読み込みに約 1GB を要します。また GNOME を利用する場合、 300MB 程度の領域を利用します。(デフォルトだと /( ルート ) ディレクトリを消費)

– SSH ポートフォワーディングを利用し、 VNCの通信を暗号化、セキュリティを担保します。(セキュリティルールを設定し VNC が利用するポートを解放することも可能です)

How to access the compute instance using VNC設計ガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

[Step1] 初期セットアップ

8

[1-1] vncserver のインストール&初期設定

1. YUM を利用して必要パッケージをインストールします

2. VUI を利用したいユーザにて、 vncerver を起動し、パスワードを設定します。

3. 一旦、 vncserver を終了します。画面番号は適宜変更してください

4. GNOME を利用したい場合、 ~/.vnc/xstartup ファイルを編集します

#twm & <= コメントアウト

exec gnome-session & <= 追記

5. 再度、 vncserver を起動します( 必要に応じて解像度等を調整します )

構築ガイドVNC

[opc@test01 ~]$ sudo –s[root@test01 opc]#[root@test01 opc]# yum install vnc vnc-server tigervnc-server[root@test01 opc]#  yum groupinstall "X Window System" "Desktop" "Desktop Platform"

[opc@test01 ~]$ vncserver :1Password:Verify:[opc@test01 ~]$

[opc@test01 ~]$ vi ~/.vnc/xstartup

[opc@test01 ~]$ vncserver :1 -geometr 1280x800

[opc@test01 ~]$ vncserver -kill :1

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

[Step1] 初期セットアップ

9

[1-2] ポートフォワードの設定 (teraterm を利用する場合 )

1. Teraterm を起動し、 SSH 転送を選択します。

2. SSH ポート転送を設定し、 OK を選択します• ローカルポート:任意( ex.15001 )• リモート側ホスト: Compute Service

Instance のグローバル IP• ポート: vncserver の利用ポート

(画面番号 1 で起動した場合は 5901 がデフォルト)

3. 設定を保存します

構築ガイドVNC

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

[Step2] VNC クライアントからの接続

10

[2-1] 接続 (teraterm を利用する場合 )

1. Teraterm を起動し、ユーザ名・秘密鍵を指定し、対象のインスタンスに接続します

2. VNC viewer にて接続情報を入力し、 OKを選択します

3. パスワードを入力、接続します

構築ガイドVNC

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Gnome スクリーンロックの無効化

11

スクリーンセーバによるロックの無効化

課題デフォルトでは無操作状態が一定時間継続するとスクリーンロックがかかり、再度アクセスするにはパスワードが必要となります。

しかしながら Compute Instance は公開鍵認証方式が採用されており、例えば opc ユーザはパスワードを持たないためロックを解除できません。

対処方法スクリーンセーバによるロックを無効化します。(手順:次ページ)

補足作業端末から離れる際には、セキュリティ上、 VNC クライアントを終了することを推奨します。(セッションは切断されますが、サーバ上での処理、例えば実行したスクリプト等は継続します。)

運用 TipsVNC

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

スクリーンロックの無効化

12

スクリーンセーバによるロックの無効化

1. スクリーンサーバ設定を起動します。

2. スクリーンロックのチェックを外します

3. Close をクリックします。

VNC

②③

運用 Tips

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle Cloud Service 30日間無料トライアル 

13

トライアルのお申し込みサイト 

トライアルのお申し込みサイトはコチラ - 上記サイトより、ご利用したいクラウドサービスを選択し、お申し込み頂けます。- Oracle PaaS の各サービスは「プラットフォームとインフラ」項目をご参照ください。

https://cloud.oracle.com/ja_JP/tryit

Database Cloud トライアル申し込みご案内

お申し込みは数ステップでカンタン! 30日間お試し放題!!

- Database Cloud Service のトライアルを申し込むと、 Database Backup Service や Java Cloud Service などもトライアル可能です!- 上記 FAQ サイトにてチュートリアルも提供しております:

- Oracle Database Cloud Serviceを使ってみよう- Oracle Database Cloud Service 体験チュートリアル - トライアル環境を使用したAPEXアプリケーション作成

DBCS の詳細なお申込み方法は FAQ にてご案内しております。

https://faq.oracle.co.jp/app/answers/detail/a_id/2809 へアクセス

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 14