Oracle VirtualBoxから仮想アプライアンスとしてエクスポートしてからOracle VMにインポートしたOracle Linux 7を実行している仮想マシンが正常に起動されず、終了して緊急シェルに移動する場合があります。 これは、initramfsイメージにxen-blkfrontドライバが存在しないことが原因で発生します。 通常、影響を受けるシステムの起動時の出力は次のようになります。
[ OK ] Reached target Basic System. dracut-initqueue[227]: Warning: Counld not boot. dracut-initqueue[227]: Warning: /dev/mapper/ol-root does not exist dracut-initqueue[227]: Warning: /dev/ol/root does not exist dracut-initqueue[227]: Warning: /dev/ol/swap does not exist Starting Dracut Emergency Shell ... Warning: /dev/mapper/ol-root does not exist Warning: /dev/ol/root does not exist Warning: /dev/ol/swap does not exist
回避策: この問題には2つの回避策があります。 1つ目は、欠落しているドライバを追加してから、Oracle VirtualBoxからOracle Linux 7仮想マシンをエクスポートする方法です。 これを行うには、エクスポートの実行前に次のコマンドをルートとして実行します。
# dracut --add-drivers "xen-blkfront xen-netfront" --force
エクスポート前にこの手順を実行できない場合は、一時的に仮想マシンをHVMとして起動し、起動前に次のブート・オプションをGRUBに追加します。
xen_emul_unplug=never
仮想マシンが起動されたら、次のコマンドをルートとして実行して、欠落しているドライバを追加できます。
# dracut --add-drivers "xen-blkfront xen-netfront" --force
ドライバがinitramfsに追加されたら、仮想マシンを再起動します。
Oracle Bug#21244825