问题描述
我一直在努力寻找一个合适的Ubuntu服务器(12.04)ISO,以便在我的VBox VM上安装Ubuntu来宾操作系统。
以下是相关统计信息:
-
主机:AMD 64位
-
主机操作系统:Ubuntu Desktop 11.04
-
VM作业系统:Linux
-
VM OS版本:Ubuntu
-
下载并尝试ISO:
ubuntu-12.04-server-amd64.iso
当我尝试启动VM时,出现主菜单,第一个选项显示为Install Ubuntu。当我选择它时,我收到一条错误消息:
This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot – please use a kernel appropriate for your CPU.
编辑:该消息使我认为我有一台32位计算机,但正在尝试运行64位ISO。我相信这是64位的,但是,因为uname -m
在终端中生成x86-64
…并且执行lscpu
会生成:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
CPU(s): 2
Thread(s) per core: 1
Core(s) per socket: 2
CPU socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 23
Stepping: 10
CPU MHz: 1200.000
L1d cache: 32K
L1i cache: 32K
L2 cache: 1024K
这是一个开始:我在Windows机器上下载了ISO,因为我的Ubuntu机器(运行Ubuntu Desktop 11.04并托管VM-to-be的机器)具有糟糕的网络连接。因此,我下载到Windows客户端,将ISO放入闪存驱动器,将其复制到我的Ubuntu计算机上,然后将其保存在本地。我想知道下载页面是否看到我正在尝试从Windows客户端下载并换成i686的x86-64版本?否则,我下载了错误的ISO。
有人可以告诉我什么是正确的ISO吗?我确定可以肯定,AMD 64位版本正是我所需要的。
最佳思路
您的ISO可能是正确的。您需要做的是确保设置了64位虚拟机。从VBox website(重点是我):
64位来宾
VirtualBox supports 64-bit guest operating systems, even on 32-bit host operating systems, provided that the following conditions are met:
You need a 64-bit processor with hardware virtualization support (see the section called “Hardware vs. software virtualization”).
You must enable hardware virtualization for the particular VM for which you want 64-bit support; software virtualization is not supported for 64-bit VMs.
If you want to use 64-bit guest support on a 32-bit host operating system, you must also select a 64-bit operating system for the particular VM. Since supporting 64 bits on 32-bit hosts incurs additional overhead, VirtualBox only enables this support upon explicit request.
On 64-bit hosts (which typically come with hardware virtualization support), 64-bit guest operating systems are always supported regardless of settings, so you can simply install a 64-bit operating system in the guest.
Warning
On any host, you should enable the I/O APIC for virtual machines that you intend to use in 64-bit mode. This is especially true for 64-bit Windows VMs. See the section called “”Advanced” tab”. In addition, for 64-bit Windows guests, you should make sure that the VM uses the Intel networking device, since there is no 64-bit driver support for the AMD PCNet card; see the section called “Virtual networking hardware”.
If you use the “Create VM” wizard of the VirtualBox graphical user interface (see the section called “Creating your first virtual machine”), VirtualBox will automatically use the correct settings for each selected 64-bit operating system type.
因此,只需尝试创建一个新的虚拟机并选择Ubuntu 64作为操作系统。 VirtualBox应该正确配置所有设置,并且您应该能够毫无问题地进行安装。
次佳思路
您可以直接从其中一个镜像下载。是的ubuntu-12.04-server-amd64.iso是正确的64位版本。
也许您正在运行32位基本操作系统。运行uname -a检查内核版本。以下是64位输出的示例。
p0rkjello@de01u0001:~$ uname -a
Linux de01u0001 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
我拥有的AMD系统的输出
p0rkjello@de01u0001:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 6
On-line CPU(s) list: 0-5
Thread(s) per core: 1
Core(s) per socket: 6
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD