Ubuntu Server 14.04 LTS - GRUB 无法在虚拟机上安装

Ubuntu Server 14.04 LTS - GRUB 无法在虚拟机上安装

我正在尝试安装并运行Ubuntu 服务器 14.04.1 LTS在 VirtualBox 上进行测试。但是,我甚至无法顺利完成安装过程,并且无论我如何配置系统,每次安装 GRUB 引导加载程序都会失败。

我运行安装并保留所有内容的默认值:

Partitioning Method: Guided - use entire disk and set up LVM
Disk: SCSI3 (0,0,0) (sda) - 2.1 GB ATA VBOX HARDDISK
Amount of volume group to use for guided partitioning: 1.9 GB

The partition tables of the following devices are changed:
   LVM VG dev-vg, LV root
   LVM VG dev-vg, LV swap_1
   SCSI3 (0,0,0) (sda)

The following partitions are going to be formatted:
   LVM VG dev-vg, LV root as ext4
   LVM VG dev-vg, LV swap_1 as swap
   partition #1 of SCSI3 (0,0,0) (sda) as ext2

Write the changes to disk (y/N): y

Automatic updates:
   [*] No automatic updates

Additional packages to install:
   [*] LAMP server
   [*] PostgreSQL server

一切进展顺利,直到:

[!!] Install the GRUB boot loader on a hard disk
   Installation step failed
   An installation step failed. You can try to run the failing item again
   from the menu, or skip it and choose something else. The failing step is:
   Install the GRUB boot loader on a hard disk

重新启动后,屏幕变黑,无法手动启动。

我真的无法找出错误的根源,因此我很乐意听到任何关于此的想法。

我的VirtualBox:

[General]
Name:               sdm
Operating System:   Ubuntu (64 bit)

[System]
Base Memory:    512 MB
Boot Order:     Floppy, CD/DVD, Hard Disk
Acceleration:   VT-x/AMD-V, Nested Paging

[Display]
Video Memory:           12 MB
Remote Desktop Server:  Disabled
Video Capture:          Disabled

[Storage]
Controller: IDE
  IDE Secondary Master: [CD/DVD] Empty
Controller: SATA
  SATA Port 0:          sdm.vmdk (Normal, 2.00 GB)

[Audio]
Host Driver:    Core Audio
Controller:     ICH AC97

[Network]
Adapter 1:  Intel PRO/1000 MT Desktop (NAT)

[USB]
Device Filter:  0 (0 active)

[Shared Folder]
None

[Description]
None

答案1

我终于摆脱了错误。说实话,这很愚蠢。

问题实际上是,/boot即使 UI 中显示了分区,但分区并未创建。使用引导式分区仍然可以使所有内容运行,但是当系统要求您时Write the changes to the disk?,您需要<Back>查看所有分区的详细列表。单击时<Next>,安装最终将正确识别并按预期对所有内容进行分区。

答案2

我在使用 virtualbox 时也遇到了类似的问题。另一个答案没有帮助。我做的也很简单。我创建了一个 vmdk 硬盘而不是 vmi(将 HD 设置为我想要的大小)。就是这样,希望这有帮助!

仅供参考,我安装了 kwickserver 安装 cd 用于邮件和即时消息

相关内容