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のブログにて解説されています。

Google検索