VMware vCenter Converter Standalone を使用した Ubuntu 12.04 仮想マシンの P2V 変換が、「GRUB コマンドのインストールのエラー」というエラーで 97% の確率で失敗する
search cancel

VMware vCenter Converter Standalone を使用した Ubuntu 12.04 仮想マシンの P2V 変換が、「GRUB コマンドのインストールのエラー」というエラーで 97% の確率で失敗する

book

Article ID: 340666

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:

免責事項: これは英文の記事 「P2V conversion of an Ubuntu 12.04 virtual machine using VMware vCenter Converter Standalone fails at 97% with the error: Error installing GRUB Command (2052628)」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。


  • Ubuntu 12.04 仮想マシンの P2V 変換を実行できない
  • Ubuntu 仮想マシンの物理から仮想への変換の実行が失敗する
  • Ubuntu 12.04 仮想マシンの P2V 変換は、97% の確率で失敗する
  • 次のエラーが表示される

    FAILED: 変換中にエラーが発生しました:「GrubInstaller::InstallGrub: /usr/lib/vmware-converter/installGrub.sh failed with return code: 1, and message: Installing GRUB2 on (hd0).../usr/sbin/grub-setup: warn: この GPT パーティション ラベルには BIOS 起動パーティションがなく、組み込みは不可能です。/usr/sbin/grub-setup: warn: 組み込みは不可能です。このセットアップでは、ブロックリストを使用して GRUB をインストールすることしかできません。ただし、ブロックリストは信頼できないので、使用することはお勧めできません。/usr/sbin/grub-setup: error: ブロックリストでは続行できません。(hd0) での GRUB2 のインストールに失敗しました。/dev/sda で GRUB2 をインストールしています.../usr/sbin/grub-setup: warn: この GPT パーティション ラベルには BIOS 起動パーティションがなく、組み込みは不可能です。/usr/sbin/grub-setup: warn: 組み込みは不可能です。このセットアップでは、ブロックリストを使用して GRUB をインストールすることしかできません。ただし、ブロックリストは信頼できないので、使用することはお勧めできません。/usr/sbin/grub-setup: error: ブロックリストでは続行できません。GRUB コマンドのインストールのエラー:
  • vmware-converter-server-x.log ファイルに、次のようなエントリが含まれる

    --> Installing GRUB2 on (hd0)...
    --> /usr/sbin/grub-setup: warn: This GPT partition label has no BIOS Boot Partition; embedding won't be possible!.
    --> /usr/sbin/grub-setup: warn: Embedding is not possible.GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
    --> /usr/sbin/grub-setup: error: will not proceed with blocklists.
    --> Installing GRUB2 on (hd0) failed.
    --> Installing GRUB2 on /dev/sda...
    --> /usr/sbin/grub-setup: warn: This GPT partition label has no BIOS Boot Partition; embedding won't be possible!.
    --> /usr/sbin/grub-setup: warn: Embedding is not possible.GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
    --> /usr/sbin/grub-setup: error: will not proceed with blocklists.
    --> Error installing GRUB
    --> Command: grub-install --no-floppy /dev/sda


Environment

VMware vCenter Converter Standalone 5.1.x

Cause

この問題が発生するのは、GUID パーティション テーブル (GPT) で必要となる BIOS 起動パーティションが見つからない場合です。
この問題が発生するのは、コンバータがターゲット ヘルパー仮想マシンに BIOS 起動パーティションを作成できなかったためです。

Resolution

この問題を解決するには、起動パーティションを作成する必要があります。
起動パーティションを作成するには
  1. 元の Linux ディストリビューション DVD を仮想マシンにマウントし、DVD から起動します。
  2. 起動メニューからレスキュー オプションを選択します。
  3. ルート ファイル システムを含むディスクを特定します。
  4. シェルを開始するオプションを選択します。
  5. BIOS 起動パーティションを修正します。

    BIOS 起動パーティションを修正するには、次のコマンドを実行します。

    1. root@ubuntu:~# parted /dev/sda
    2. (parted) unit MB
    3. (parted) p free

      次のような出力が表示されます。

      Model: Areca ARC-1210-VOL#00 (scsi)
      Disk /dev/sda: 4000000MB
      Sector size (logical/physical): 512B/512B
      Partition Table: gpt
      Number Start End Size File system Name Flags
      1 0.02MB 4000MB 4000MB linux-swap(v1)
      2 4000MB 4300MB 300MB ext3 boot
      3 4300MB 104300MB 100000MB ext3
      104300MB 4000000MB 3895700MB Free Space

    4. (parted) mkpart primary 104300 104400
    5. (parted) p

      次のような出力が表示されます。

      Model: Areca ARC-1210-VOL#00 (scsi)
      Disk /dev/sda: 4000000MB
      Sector size (logical/physical): 512B/512B
      Partition Table: gpt
      Number Start End Size File system Name Flags
      1 0.02MB 4000MB 4000MB linux-swap(v1)
      2 4000MB 4300MB 300MB ext3 boot
      3 4300MB 104300MB 100000MB ext3
      4 104301MB 104400MB 99.6MB primary

    6. (parted)set 4 bios_grub on

      :このコマンドにより、このパーティションが BIOS 起動パーティションとして有効になります。

    7. (parted) q

  6. 次のコマンドを実行して GRUB をインストールします。

    root@debian:~# grub-install /dev/sda

  7. /etc/fstab ファイルで UUID を更新します。

    /etc/fstab ファイルで UUID を更新するには
    1. blkid コマンドを実行し、起動ディスクの新しい UUID を特定します。その他のディスク デバイスがある場合は、その UUID もメモします。
    2. テキスト エディタを使用して /etc/fstab ファイルを編集します。
    3. 手順 7a で特定した正しい UUID で、起動ディスクの UUID を置き換えます。
    4. その他のデバイスがある場合は、その UUID を置き換えます。
    5. ファイルを保存して閉じます。
    6. 起動ディスクの正しい UUID で /boot/grub/grub.cfg ファイルを更新します。

  8. DVD を仮想マシンから切断し、仮想マシンを再起動します。



Additional Information

P2V conversion of an Ubuntu 12.04 virtual machine using VMware vCenter Converter Standalone fails at 97% with the error: Error installing GRUB Command