R
R
Roman Bogachev2015-06-18 23:19:38
Virtualization
Roman Bogachev, 2015-06-18 23:19:38

Deploy error or "missing DISK mandatory" on OpenNebula?

Step 1 .
Load ISO from OS

IMAGE 18 INFORMATION                                                            
ID             : 18                  
NAME           : CentOS 6.6          
USER           : oneadmin            
GROUP          : oneadmin            
DATASTORE      : default             
TYPE           : CDROM               
REGISTER TIME  : 06/18 22:53:23      
PERSISTENT     : Yes                 
SOURCE         :                     
PATH           : /var/lib/one/iso/CentOS-6.6-x86_64-minimal.iso
SIZE           : 383M                
STATE          : used                
RUNNING_VMS    : 1                   

PERMISSIONS                                                                     
OWNER          : uma                 
GROUP          : ---                 
OTHER          : ---                 

IMAGE TEMPLATE                                                                  
DEV_PREFIX="hd"

Step 2.
I create an empty block for the future system
IMAGE 20 INFORMATION                                                            
ID             : 20                  
NAME           : CentOS - 20GB       
USER           : RomanBogachev       
GROUP          : oneadmin            
DATASTORE      : default             
TYPE           : DATABLOCK           
REGISTER TIME  : 06/18 22:58:39      
PERSISTENT     : Yes                 
SOURCE         : /var/lib/one//datastores/1/6d85d9a3e6c8e13b522e13fd8b01e8ad
FSTYPE         : qcow2               
SIZE           : 19.5G               
STATE          : used                
RUNNING_VMS    : 1                   

PERMISSIONS                                                                     
OWNER          : uma                 
GROUP          : ---                 
OTHER          : ---                 

IMAGE TEMPLATE                                                                  
DEV_PREFIX="sd"
DRIVER="qcow2"

Step 3.
Create a template
CPU="1"
MEMORY="512"
SCHED_REQUIREMENTS="ID=\"0\""
OS=[BOOT="cdrom"]
NIC=[NETWORK_UNAME="oneadmin",NETWORK="Private"]
CONTEXT=[SSH_PUBLIC_KEY="",NETWORK="YES"]
DISK=[READONLY="yes",IMAGE="CentOS 6.6",IMAGE_UNAME="oneadmin"]
DISK=[IMAGE="CentOS - 20GB",IMAGE_UNAME="RomanBogachev"]
FEATURES=[ACPI="yes"]
GRAPHICS=[TYPE="VNC",LISTEN="0.0.0.0"]

Step 4.
I create a virtual machine for the subsequent installation of the OS, BUT I get an error
Thu Jun 18 23:05:35 2015 [DiM][I]: New VM state is ACTIVE.
Thu Jun 18 23:05:35 2015 [LCM][I]: New VM state is PROLOG.
Thu Jun 18 23:05:35 2015 [TM][E]: missing DISK mandatory attributes (SOURCE, TM_MAD, CLONE, DATASTORE_ID) for VM 68, DISK 0
Thu Jun 18 23:05:35 2015 [DiM][I]: New VM state is FAILED

Searching the net didn't help much. As far as I understand, it swears that these parameters are not specified. But in the neighboring template from the market, these parameters are not. And the manual doesn't say anything about them either.
Tell me, please, in which direction to dig?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question