2011年1月17日月曜日

VMware vSphere Hypervisor 仮想マシンの自動起動

vSphere の仮想マシン自動起動設定(VMware vSphere Clientから)


1.構成タブ「仮想マシン起動/シャットダウン」「プロパティ」(右上)を指定します。



2.「システムに連動した仮想マシンの自動起動および停止を許可する」を選択し起動やシャットダウンに関する設定をしていきます。


・デフォルトの起動遅延時間
 システムの起動を遅延させる時間を指定します。
 この遅延時間によりVMware Toolsやシステムのスクリプトを実行します。
 
・デフォルトのシャットダウン遅延時間
 各仮想マシンのシャットダウンを遅延させる時間を指定します。
 シャットダウン遅延時間は、遅延時間が経過するまで仮想マシンがシャットダウンしない場合にのみ適用される。
 ※遅延時間になる前に仮想マシンがシャットダウンした場合は、次の仮想マシンのシャットダウンが開始されます。

3.これだけでは、まだダメです。次に各仮想マシンごとに自動/手動を決めていきます。
仮想マシンを選択して「上へ移動」を押し「自動起動」のリストまで移動させます。


このように「自動起動」の下に配置されるように移動させます。



※起動およびシャットダウンの動作はデフォルトが適用されますが、各仮想マシンごとに変えることも可能です。→仮想マシン選択後に「編集」で設定することができます。

2011年1月12日水曜日

Redmine1.1.0へアップデート(svn)

CentOS5にインストール済み、trunkバージョンのRedmine 1.0.4を1.1.0へアップデートしてみました。
1.0.5より、Rubyの国際化ライブラリi18nのバージョン0.4.2が実行時に必要ということなので先にインストールします。尚、データベースはPostgreSQL 8.4.3で構築されています。

●i18n 0.4.2のインストール
インストール済みのi18nがある場合は、予めアンインストールしておく
# gem uninstall i18n --all
# gem install -v=0.4.2 i18n
Successfully installed i18n-0.4.2
1 gem installed
Installing ri documentation for i18n-0.4.2...
Installing RDoc documentation for i18n-0.4.2...

●インストールの確認
# gem list

*** LOCAL GEMS ***

actionmailer (2.3.5, 2.2.2)
actionpack (2.3.5, 2.2.2)
activerecord (2.3.5, 2.2.2)
activeresource (2.3.5, 2.2.2)
activesupport (2.3.5, 2.2.2)
fastthread (1.0.7)
i18n (0.4.2)
passenger (2.2.15)
pg (0.9.0)
postgres-pr (0.6.3)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7, 0.8.3)
rubygems-update (1.3.7)

●ソースの更新
# cd /home/redmine ※Redmineインストール先ディレクトリへ移動
# svn update
U test/unit/document_test.rb
U test/unit/token_test.rb
U test/unit/repository_git_test.rb
U test/unit/repository_mercurial_test.rb
U test/unit/issue_relation_test.rb
U test/unit/version_test.rb
U test/unit/enumeration_test.rb
U test/unit/board_test.rb
U test/unit/issue_test.rb
U test/unit/issue_status_test.rb
U test/unit/time_entry_activity_test.rb
U test/unit/tracker_test.rb
U test/unit/repository_subversion_test.rb
U test/unit/repository_bazaar_test.rb
U test/unit/role_test.rb
U test/unit/changeset_test.rb
U test/unit/helpers/custom_fields_helper_test.rb
U test/unit/helpers/timelog_helper_test.rb
U test/unit/helpers/application_helper_test.rb
U test/unit/helpers/search_helper_test.rb
U test/unit/helpers/sort_helper_test.rb
U test/unit/helpers/projects_helper_test.rb
U test/unit/helpers/issues_helper_test.rb
U test/unit/comment_test.rb
U test/unit/wiki_test.rb
U test/unit/lib/redmine/i18n_test.rb
U test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb
U test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
U test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
U test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
A test/unit/lib/redmine/safe_attributes_test.rb
U test/unit/lib/redmine/themes_test.rb
U test/unit/lib/redmine/mime_type_test.rb
U test/unit/lib/redmine/views/builders/xml_test.rb
U test/unit/lib/redmine/views/builders/json_test.rb
U test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
U test/unit/lib/redmine/wiki_formatting/macros_test.rb
U test/unit/lib/redmine/menu_manager/menu_item_test.rb
U test/unit/lib/redmine/menu_manager/menu_helper_test.rb
U test/unit/lib/redmine/menu_manager/mapper_test.rb
U test/unit/lib/redmine/menu_manager_test.rb
U test/unit/lib/redmine/plugin_test.rb
U test/unit/lib/redmine/wiki_formatting.rb
U test/unit/lib/redmine/hook_test.rb
U test/unit/lib/redmine/access_control_test.rb
U test/unit/lib/redmine/helpers/gantt_test.rb
U test/unit/lib/redmine/unified_diff_test.rb
U test/unit/lib/redmine/notifiable_test.rb
U test/unit/lib/redmine_test.rb
U test/unit/calendar_test.rb
U test/unit/journal_test.rb
U test/unit/document_category_test.rb
U test/unit/default_data_test.rb
U test/unit/user_test.rb
U test/unit/time_entry_test.rb
U test/unit/repository_test.rb
U test/unit/mail_handler_test.rb
U test/unit/auth_source_ldap_test.rb
U test/unit/journal_observer_test.rb
U test/unit/principal_test.rb
U test/unit/project_nested_set_test.rb
U test/unit/repository_filesystem_test.rb
U test/unit/message_test.rb
U test/unit/wiki_redirect_test.rb
U test/unit/issue_category_test.rb
U test/unit/attachment_test.rb
U test/unit/issue_priority_test.rb
U test/unit/repository_cvs_test.rb
U test/unit/repository_darcs_test.rb
U test/unit/activity_test.rb
U test/unit/group_test.rb
U test/unit/watcher_test.rb
U test/unit/wiki_content_test.rb
U test/unit/enabled_module_test.rb
U test/unit/wiki_page_test.rb
U test/unit/issue_nested_set_test.rb
U test/unit/query_test.rb
U test/unit/search_test.rb
U test/unit/custom_value_test.rb
U test/unit/project_test.rb
U test/unit/member_test.rb
U test/unit/mailer_test.rb
U test/unit/news_test.rb
U test/unit/user_preference_test.rb
U test/unit/custom_field_test.rb
U test/unit/setting_test.rb
U test/unit/testing_test.rb
U test/test_helper.rb
U test/functional/issues_controller_test.rb
U test/functional/news_controller_test.rb
U test/functional/queries_controller_test.rb
U test/functional/trackers_controller_test.rb
U test/functional/mail_handler_controller_test.rb
U test/functional/auto_completes_controller_test.rb
U test/functional/roles_controller_test.rb
U test/functional/my_controller_test.rb
U test/functional/comments_controller_test.rb
U test/functional/wikis_controller_test.rb
U test/functional/admin_controller_test.rb
U test/functional/context_menus_controller_test.rb
U test/functional/welcome_controller_test.rb
U test/functional/account_controller_test.rb
U test/functional/calendars_controller_test.rb
U test/functional/workflows_controller_test.rb
U test/functional/time_entry_reports_controller_test.rb
U test/functional/journals_controller_test.rb
U test/functional/project_enumerations_controller_test.rb
U test/functional/gantts_controller_test.rb
U test/functional/users_controller_test.rb
U test/functional/issue_moves_controller_test.rb
U test/functional/repositories_cvs_controller_test.rb
U test/functional/application_controller_test.rb
U test/functional/activities_controller_test.rb
U test/functional/search_controller_test.rb
U test/functional/repositories_bazaar_controller_test.rb
U test/functional/messages_controller_test.rb
U test/functional/attachments_controller_test.rb
U test/functional/sys_controller_test.rb
U test/functional/groups_controller_test.rb
U test/functional/issues_controller_transaction_test.rb
U test/functional/watchers_controller_test.rb
U test/functional/issue_statuses_controller_test.rb
U test/functional/repositories_controller_test.rb
U test/functional/projects_controller_test.rb
U test/functional/members_controller_test.rb
U test/functional/repositories_git_controller_test.rb
U test/functional/repositories_mercurial_controller_test.rb
U test/functional/issue_categories_controller_test.rb
U test/functional/reports_controller_test.rb
U test/functional/custom_fields_controller_test.rb
U test/functional/settings_controller_test.rb
U test/functional/timelog_controller_test.rb
U test/functional/documents_controller_test.rb
U test/functional/files_controller_test.rb
U test/functional/repositories_darcs_controller_test.rb
U test/functional/wiki_controller_test.rb
U test/functional/previews_controller_test.rb
U test/functional/auth_sources_controller_test.rb
U test/functional/repositories_subversion_controller_test.rb
U test/functional/issue_relations_controller_test.rb
U test/functional/versions_controller_test.rb
U test/functional/enumerations_controller_test.rb
U test/functional/boards_controller_test.rb
U test/integration/application_test.rb
U test/integration/lib/redmine/menu_manager_test.rb
A test/integration/lib/redmine/themes_test.rb
U test/integration/api_test/token_authentication_test.rb
U test/integration/api_test/users_test.rb
U test/integration/api_test/time_entries_test.rb
U test/integration/api_test/http_basic_login_test.rb
U test/integration/api_test/projects_test.rb
U test/integration/api_test/issues_test.rb
U test/integration/api_test/http_basic_login_with_api_token_test.rb
A test/integration/api_test/news_test.rb
U test/integration/api_test/disabled_rest_api_test.rb
U test/integration/routing_test.rb
U test/integration/admin_test.rb
U test/integration/projects_test.rb
U test/integration/issues_test.rb
U test/integration/account_test.rb
U test/integration/layout_test.rb
U test/fixtures/mail_handler/ticket_reply_with_status.eml
U test/fixtures/roles.yml
U test/fixtures/custom_values.yml
D test/fixtures/files/060719210727_changeset.diff
A test/fixtures/files/060719210727_changeset_iso8859-1.diff
A test/fixtures/files/060719210727_changeset_utf8.diff
U test/fixtures/issues.yml
U test/fixtures/wiki_contents.yml
U test/fixtures/wiki_pages.yml
U test/fixtures/enabled_modules.yml
D test/fixtures/repositories/mercurial_repository.tar.gz
A test/fixtures/repositories/mercurial_repository.hg
U test/fixtures/attachments.yml
U test/fixtures/news.yml
A .hgignore
U app/helpers/repositories_helper.rb
U app/helpers/custom_fields_helper.rb
U app/helpers/users_helper.rb
U app/helpers/application_helper.rb
U app/helpers/attachments_helper.rb
U app/models/repository/git.rb
U app/models/repository/mercurial.rb
U app/models/mail_handler.rb
U app/models/repository.rb
U app/models/issue.rb
U app/models/query.rb
U app/models/custom_field.rb
U app/models/user.rb
U app/models/version.rb
U app/models/issue_status.rb
U app/models/tracker.rb
U app/models/changeset.rb
U app/models/role.rb
U app/models/wiki.rb
U app/models/project.rb
U app/models/news.rb
U app/controllers/issues_controller.rb
U app/controllers/auto_completes_controller.rb
U app/controllers/my_controller.rb
U app/controllers/context_menus_controller.rb
U app/controllers/journals_controller.rb
U app/controllers/timelog_controller.rb
U app/controllers/users_controller.rb
U app/controllers/application_controller.rb
U app/controllers/news_controller.rb
U app/controllers/repositories_controller.rb
U app/controllers/projects_controller.rb
U app/controllers/activities_controller.rb
U app/views/layouts/base.rhtml
U app/views/settings/_issues.rhtml
U app/views/issue_moves/new.rhtml
U app/views/users/_memberships.rhtml
U app/views/users/_mail_notifications.html.erb
U app/views/users/index.api.rsb
U app/views/users/_form.rhtml
U app/views/users/show.api.rsb
U app/views/issue_relations/_form.rhtml
A app/views/news/index.api.rsb
U app/views/repositories/revision.rhtml
U app/views/repositories/_revisions.rhtml
U app/views/repositories/_dir_list_content.rhtml
U app/views/repositories/diff.rhtml
U app/views/repositories/annotate.rhtml
U app/views/common/_diff.rhtml
U app/views/projects/settings/_modules.rhtml
U app/views/projects/new.html.erb
U app/views/projects/index.api.rsb
U app/views/projects/_form.rhtml
U app/views/projects/show.api.rsb
U app/views/gantts/show.html.erb
U app/views/wiki/history.rhtml
U app/views/wiki/diff.rhtml
U app/views/issues/bulk_edit.rhtml
U app/views/issues/index.api.rsb
U app/views/issues/show.rhtml
U app/views/issues/_changesets.rhtml
U app/views/issues/show.api.rsb
U db/migrate/20101104182107_add_unique_index_on_members.rb
U vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb
U vendor/plugins/rfpdf/lib/rfpdf/fpdf.rb
U config/settings.yml
U config/locales/lt.yml
U config/locales/sr-YU.yml
U config/locales/ro.yml
U config/locales/lv.yml
U config/locales/zh.yml
U config/locales/pt.yml
U config/locales/ca.yml
U config/locales/pt-BR.yml
U config/locales/tr.yml
U config/locales/ru.yml
U config/locales/en-GB.yml
U config/locales/id.yml
U config/locales/el.yml
U config/locales/en.yml
U config/locales/gl.yml
U config/locales/cs.yml
U config/locales/es.yml
U config/locales/mk.yml
U config/locales/zh-TW.yml
U config/locales/eu.yml
U config/locales/ko.yml
U config/locales/mn.yml
U config/locales/it.yml
U config/locales/sk.yml
U config/locales/sl.yml
U config/locales/uk.yml
U config/locales/sr.yml
U config/locales/da.yml
U config/locales/sv.yml
U config/locales/de.yml
U config/locales/bg.yml
U config/locales/ja.yml
U config/locales/he.yml
U config/locales/fi.yml
U config/locales/bs.yml
U config/locales/fr.yml
U config/locales/nl.yml
U config/locales/hr.yml
U config/locales/pl.yml
U config/locales/th.yml
U config/locales/no.yml
U config/locales/hu.yml
U config/locales/vi.yml
U config/boot.rb
U config/initializers/30-redmine.rb
U config/initializers/10-patches.rb
U doc/INSTALL
U doc/CHANGELOG
U lib/redmine/themes.rb
U lib/redmine/helpers/gantt.rb
U lib/redmine/i18n.rb
U lib/redmine/scm/adapters/subversion_adapter.rb
U lib/redmine/scm/adapters/bazaar_adapter.rb
U lib/redmine/scm/adapters/mercurial/hg-template-0.9.5.tmpl
U lib/redmine/scm/adapters/mercurial/hg-template-1.0.tmpl
U lib/redmine/scm/adapters/abstract_adapter.rb
U lib/redmine/scm/adapters/git_adapter.rb
U lib/redmine/scm/adapters/mercurial_adapter.rb
U lib/redmine/scm/adapters/cvs_adapter.rb
U lib/redmine/scm/adapters/darcs_adapter.rb
A lib/redmine/safe_attributes.rb
U lib/redmine/version.rb
U lib/redmine/views/builders/structure.rb
U lib/redmine/views/builders/xml.rb
U lib/tasks/testing.rake
U lib/tasks/migrate_from_trac.rake
U lib/tasks/migrate_from_mantis.rake
U lib/tasks/ci.rake
U public/images/task_parent_end.png
U public/javascripts/context_menu.js
U public/javascripts/application.js
U public/stylesheets/application.css
Updated to revision 4702.

●データベース更新
# rake db:migrate RAILS_ENV="production"
(in /home/redmine)

●プラグインに対するデータベース更新
# rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production
Cannot find old migration table - assuming nothing needs to be done
旧バージョンに対するアップのため必要ないと表示されたのでそのまま次へ進みます。

# rake db:migrate_plugins RAILS_ENV=production
(in /home/redmine)
Migrating engines...
Migrating acts_as_activity_provider...
Migrating acts_as_attachable...
Migrating acts_as_customizable...
Migrating acts_as_event...
Migrating acts_as_list...
Migrating acts_as_searchable...
Migrating acts_as_tree...
Migrating acts_as_versioned...
Migrating acts_as_watchable...
Migrating awesome_nested_set...
Migrating classic_pagination...
Migrating coderay-0.9.2...
Migrating gravatar...
Migrating open_id_authentication...
Migrating prepend_engine_views...
Migrating rfpdf...
Migrating ruby-net-ldap-0.0.4...

●Clean up
# rake tmp:cache:clear
# rake tmp:sessions:clear

●アプリケーションサーバの再起動
私はApache経由で稼働させているためApacheを再起動します。

以上です。

Redmine 1.1新機能についてはRedmine.JPのブログにて解説されています。

2010年12月8日水曜日

FortiClientVPN

フォーティネット社が提供するクライアントセキュリティ製品にFortiClient(FortiClient Endpoint Security)がありますが、そのVPN部分のみを取り出しパッケージ化しているFortiClientVPNをWindows 7 32Bit版にインストールしてみました。V4.0から新たに提供されているパッケージであまり知られていないのではと思います。2010/12/07現在、V4.2.2.0267が最新

フォーティネット社のサポートアカウントをお持ちの方はサポートページより「FortiClient VPN」「FortiClient VPNTool」をダウンロードしてください。

尚、接続先となるFortiGate側にIPsec設定(パスワード認証)が済んでいるものとします。設定についてはこちらを参照してください。

  • FortiClient VPNのインストール
インストールは使用許諾に同意するするぐらいなので特に問題になるところはありません。インストール後はFortiClientVPN用の仮想ネットワークアダプターが作成されます。

起動してみると、当然接続設定がないので「接続するトンネルがありません」となる・・・おや?メニューがない・・・見られるのはソフト情報のみ・・・



では、どこで設定するのかというと、もうひとつダウンロードしたFortiClientVPNToolを使用します。これはVPNのトンネル登録や証明書を管理します。FortiClientVPNToolフォルダを適当な場所に配置してその中にあるFortiClientVPNEditorを起動しましてFortiClientのようにVPN情報を追加します。設定についてはこちらを参照してください。




FortiClientVPNEditorで登録したトンネル設定はレジストリに書き込まれます。
従って設定後はFortiClientVPNToolを消去しても問題ありません。

再度FortiClientVPNを開くと接続先が現れ接続ボタンで接続することができます。
使い勝手はシンプルで非常によいと思いますが、たまに切断できないときがあったり再接続がうまくいかなかったりとやや不安定です。今後の改善に期待したいところですね。
 





2010年12月3日金曜日

FortiClient4.0系をインストールするとWebやメールができなくなる

一部の他社製セキュリティソフト(ウイルスバスター20××等)がインストールされているWindowsVistaまたはWindows7にFortiClient4.0系のVPN機能のみインストールして同時常駐しているとWeb等のトラフィックに障害が発生します。(ブラウザでネットが閲覧できない、メールの送受信ができないなど)
  • 原因
FortiClient のFortiProxyというプロセスが邪魔しているようです。従ってこのFortiProxyプロセスを無効にする必要があります。

  • 対策
・GUIからでは操作ができないためコマンドを使って操作します。
まずFortiClientをシャットダウンさせてからコマンドプロンプトを管理者として実行させます。

スタートメニュー>アクセサリ>コマンドプロンプト>右クリックメニュー

・コマンドプロンプトにて「net stop fortishield」を実行させます

 
・レジストリエディタにて以下の設定値を1から0に変更します

32bitの場合
HKEY_LOCAL_MACHINE\Software\Fortinet\FortiClient\FA_FORTIPROXY\enabled

64bitの場合
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Fortinet\FortiClient\FA_FORTIPROXY\enabled

あとはPCを再起動して完了です。
 
参考:Webbrowsing Probleme bei aktuellen FortiClients

2010年11月2日火曜日

VMware ToolsをCentOSへインストール

VMware ESXi 4.1上に構築したCentOS5.5にVMware Toolsをインストールします。

仮想マシンの電源がONになっている必要がありますので、必ず電源をONにします。vSphereでvCenter Serverへ管理者でログインして対象の仮想サーバを選択します。次に上記メニューからインベントリ→仮想マシン→ゲスト→VMware Toolsのインストール/アップグレードの順に指定します。



インストール確認のメッセージが表示されますのでOKを押します。



仮想マシンのコンソールを表示させrootでログインします。
※Nicドライバの入れ替えも発生するのでSSH等リモートでは実行しないようにします。


VMware Toolsのメディア(CDとして)をマウントさせます。
# mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only


中身を確認してみます。
# ls /mnt/
VMwareTools-8.3.2-257589.tar.gzが存在すればマウントOKです。
※2010/11/02現在


メディアからLinux上にコピーします。(基本どこでもよいが、/usr/local/srcに入れます)
# cp /mnt/VMwareTools-8.3.2-257589.tar.gz /usr/local/src
# cd /usr/local/src
# tar zxvf VMwareTools-8.3.2-257589.tar.gz


インストーラーを実行します。
ただしXウインドウが組み込まれていない状態を想定しています。

# perl ./vmware-tools-distrib/vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin]  ← Enter

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]  ← Enter

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]  ← Enter

In which directory do you want to install the daemon files?
[/usr/sbin]  ← Enter

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]  ← Enter

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] ← Enter

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]  ← Enter

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you want?
[yes]  ← Enter

The installation of VMware Tools 8.3.2 build-257589 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now?
[yes] ← Enter

Initializing...

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
   Virtual Printing daemon:                                [  OK  ]
   Unmounting HGFS shares:                                 [  OK  ]
   Guest filesystem driver:                                [  OK  ]

Found a compatible pre-built module for vmmemctl.  Installing it...

Could not create the '/mnt/hgfs' directory.
The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]  ← Enter

Found a compatible pre-built module for vmxnet.  Installing it...

Found a compatible pre-built module for vmblock.  Installing it...

Found a compatible pre-built module for vmci.  Installing it...

Found a compatible pre-built module for vsock.  Installing it...

Found a compatible pre-built module for vmxnet3.  Installing it...

Found a compatible pre-built module for pvscsi.  Installing it...

No X install found.
Creating a new initrd boot image for the kernel.
   Checking acpi hot plug                                  [  OK  ]
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [  OK  ]
   Paravirtual SCSI module:                                [  OK  ]
   Guest memory manager:                                   [  OK  ]
   Guest vmxnet fast network device:                       [  OK  ]
   VM communication interface:                             [  OK  ]
   VM communication interface socket family:               [  OK  ]
   Guest operating system daemon:                          [  OK  ]
   Virtual Printing daemon:                                [  OK  ]
The configuration of VMware Tools 8.3.2 build-257589 for Linux for this running
kernel completed successfully.
You must restart your X session before any mouse or graphics changes take
effect.
You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.
To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.
To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start

Enjoy,

--the VMware team

Found VMware Tools CDROM mounted at /mnt. Ejecting device /dev/cdrorom

ネットワーク止めて・・・rmmod pcnet32~なんて書かれていますが、面倒なので仮想マシンを再起動しちゃいました。

# reboot

再起動後にサマリを確認して「VMware Tools: OK」になっていれば完了です。


2010年11月1日月曜日

VMware vSphere Hypervisor(VMware ESXi 4.1)にCentOSをインストール

先日構築したVMware vSphere Hypervisor/VMware ESXi 4.1 (詳しくはこちら)にCentOSをインストールしてみたいと思います(とりあえず「動かす」をメインに考え細かい設定はしていません)。
事前にこちらを参考に新規仮想マシンを作成しておきます。

CentOS5のインストールはネットワーク経由でインストールしたいと思います。ネットワーク用ISOファイルを予めダウンロードしておきます。http://ftp.riken.jp/Linux/centos/5/os/i386/images/boot.iso

VMware vSphere ClientでvSphereにログインして先ほどダウンロードしたISOファイルをvSphere上にそのままアップロードしておき、これをboot指定したいと思います。
構成タブ>datastore1を右クリックしてデータストアの参照を選択します。

 データストア ブラウザが起動しエクスプローラー風の画面が表示されます。そのままアップしてもよいが、ここには作成した仮想マシンがあるためできればファイル用に別ディレクトリを作成します。出来上がったディレクトリに移動してファイルをアップロードしておきます。


 仮想マシンの設定プロパティ-を開きCD/DVDドライブでデータストアISOファイルからアップロードしたISOファイルを指定します。(仮想マシンの電源はまだ入れない)
必ず「パワーオン時に接続 」にチェックを入れておきます。

仮想マシンを開きコンソールタブを選択しておきます。

仮想マシンの電源をオンにしてインストール画面が表示されるか確認します。

実際のインストールは、こちらで紹介したので参照いただければと思います。(5.3ですが基本は同じです。)

VMware vSphere Clientで新規仮想マシンの作成

先日インストールしたVMware vSphere Hypervisor に VMware vSphere Clientを使い仮想マシンを作成してみたいと思います。

●VMware vSphere ClientでvCenter Serverにログインし「新規仮想マシンの作成」を実行します。上記メニューの「インベントリ」→「ホスト」→「新規仮想マ シン」からでもOKです。また仮想マシンタブで仮想マシン一覧を表示してその画面上で右クリックしても新規作成できます。どれも内容は同じです。



●ウィザードが実行されますので画面に沿って設定していきます。構成は標準でも問題はないですが内容を理解するためにもできる限り「カスタム」を選択しましょう。

●任意の名前を設定します。このシステム内で重複しないよう指定します。

●ファイルの保存場所を指定します。ここでは1か所しかないため必然的にdatastore1になります。

●仮想マシンのバージョンを指定します。ここでは旧バージョンは意識しないためバージョン7を指定します。

●インストールするOS(ゲストOS)を指定します。CentOSをインストールするのでLinuxを指定し適切なバージョンを選択します。

●プロセッサの数を指定します。vCenter Serverのコア数やインストールするOSでサポートされているプロセッサ数により選択幅は異なりますが、テスト用としてここでは1CPUとします。※後で変更も可能だが減らすと不具合が出る可能性があります。

●メモリサイズを指定します。 vCenter Serverに搭載されているメモリを超えない範囲で指定します。

●ネットワークカードを指定します。デフォルトでよいでしょう。(アダプタの種類についてはこちらを参照)

●SCSIコントローラを指定します。デフォルトでよいでしょう。

●仮想ディスクを指定します。ここでは新規に作成します。

●ディスクサイズを指定します。テストであれば10GBもあれば十分でしょう。これも後で増やすことが可能です。


<参考>
領域をオンデマンドで割り当ておよびコミット(シンプロビジョニング)

仮にディスクサイズを50GBに設定すると50GBフルに確保しますが、これでは使われていない領域も確保されてしまうため多くのOSをインストールしていくと無駄が増えます。これを回避する方法として実際に使われた領域のみを確保する設定ができます。(仮想マシンでは設定サイズで表示されます)ただしハードがサポートしている必要がある。



●仮想ディスクの詳細オプション指定。デフォルトでよいでしょう。


●作成完了です。


Google検索