错误:未知的操作系统类型 hvm - 帮助部署 VM - OpenNebula

错误:未知的操作系统类型 hvm - 帮助部署 VM - OpenNebula

当我尝试创建虚拟机时出现以下错误:

日志:

Tue Mar 12 16:57:23 2013 [DiM][I]: New VM state is ACTIVE.
Tue Mar 12 16:57:23 2013 [LCM][I]: New VM state is PROLOG.
Tue Mar 12 16:57:23 2013 [VM][I]: Virtual Machine has no context
Tue Mar 12 16:57:24 2013 [TM][I]: clone: Cloning /opt/opennebula/var/datastores/1/c33decbb2be7e2fe5bf27d6e3ba53790 in sneakysam:/opt/opennebula/var//datastores/0/0/disk.0
Tue Mar 12 16:57:24 2013 [TM][I]: ExitCode: 0
Tue Mar 12 16:57:24 2013 [LCM][I]: New VM state is BOOT
Tue Mar 12 16:57:24 2013 [VMM][I]: Generating deployment file: /opt/opennebula/var/vms/0/deployment.0
Tue Mar 12 16:57:25 2013 [VMM][I]: ExitCode: 0
Tue Mar 12 16:57:25 2013 [VMM][I]: Successfully execute network driver operation: pre.
Tue Mar 12 16:57:25 2013 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /opt/opennebula/var//datastores/0/0/deployment.0 sneakysam 0 sneakysam
Tue Mar 12 16:57:25 2013 [VMM][I]: error: Failed to create domain from /opt/opennebula/var//datastores/0/0/deployment.0
Tue Mar 12 16:57:25 2013 [VMM][I]: error: unknown OS type hvm
Tue Mar 12 16:57:25 2013 [VMM][E]: Could not create domain from /opt/opennebula/var//datastores/0/0/deployment.0
Tue Mar 12 16:57:25 2013 [VMM][I]: ExitCode: 255
Tue Mar 12 16:57:25 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.
Tue Mar 12 16:57:25 2013 [VMM][E]: Error deploying virtual machine: Could not create domain from /opt/opennebula/var//datastores/0/0/deployment.0
Tue Mar 12 16:57:25 2013 [DiM][I]: New VM state is FAILED

虚拟机信息:

Virtual Machine information - one-0
ID            0
Name    one-0
Owner  oneadmin
Group   oneadmin
State     FAILED
LCM State           LCM_INIT
Host       --
Start time            16:57:01 03/12/2013
Deploy ID            -
Permissions        
     Owner             um-
     Group              ---
     Other               ---

虚拟机模板:

DISK       
TYPE      FILE
DATASTORE        default
TARGET                hda
IMAGE_ID           0
SAVE     NO
DISK_ID                0
SOURCE               /opt/opennebula/var/datastores/1/c33decbb2be7e2fe5bf27d6e3ba53790
IMAGE  ttylinux - VMware
READONLY          NO
IMAGE_UNAME               oneadmin
DEV_PREFIX       hd
DATASTORE_ID 1
CLONE  YES
TM_MAD            shared
CPU       1
TEMPLATE_ID    0
RAW      
TYPE      kvm
MEMORY             256
NAME   one-0
VMID    0
OS          
ARCH     i686
BOOT    hd
GRAPHICS           
TYPE      vnc
PORT     5900
LISTEN  0.0.0.0

答案1

检查 kvm 模块是否正确加载(可能没有):

# lsmod | grep kvm

它应该打印类似这样的内容:

kvm_intel             121968  0 
kvm                   287708  1 kvm_intel

如果没有,请检查您是否已正确安装 qemu-kvm。在 Ubuntu/Debian 上:

# sudo apt-get install qemu-kvm

您还可以尝试使用以下命令手动加载该模块:

# sudo modprobe kvm

另一个常见问题是,您尝试在不支持虚拟化的 CPU 或 BIOS 禁用虚拟化支持的主机上使用 kvm(请检查主板/CPU 文档)。在 Linux 上,只需此命令

# egrep '^flags.*(vmx|svm)' /proc/cpuinfo

最后,我看到您正在使用一个名为“ttylinux - VMware”的图像,但您正在尝试使用 KVM,因此您应该尝试使用这个

相关内容