[one-users] VM in PROLOG state & then goes to FAILED state

Preetham Nagaraju preetham.nagaraju at gmail.com
Sun May 5 23:32:57 PDT 2013


*Hi Sir,*

I tried creating vm, but the vm got stuck in "PROLOG" state only and after
sometime goes to "FAILED" state.....

I am using 2 m/c's where first m/c has opennebula 3.9.80 in it and acts as
Frontend m/c & the second m/c has Ubuntu 12.04 os with XEN hypervisor in
it.....

First, in frontend m/c i imported the *"CentOS Server 5.8 - xen" *os from
marketplace and after it came to *"Ready"* state, i started creating
template...

At the time of creating template gave the template name, set the cpu & vcpu
with memory.....In storage tab selected the imported image as Disk,
selected the created Network,.... using Opennebula sunstone gui.......

In OS Booting tab, i have selected these things:-
*Arch :- x86_64
**Boot :- HD
**Root :- sda1
**kernel_cmd :- ro
**Bootloader :- /usr/lib/xen-4.1/bin/pygrub*

CPU 0.5 OS
 ROOT sda1 BOOTLOADER /usr/lib/xen-4.1/bin/pygrub ARCH x86_64 BOOT hd
KERNEL_CMD ro DISK
 IMAGE CentOS Server 5.8 - xen CLONE YES SOURCE
/var/lib/one/var/datastores/100/d985d5a5d29de9cfa8094ed02db3081d DATASTORE_ID
100  DEV_PREFIX hd  TARGET hda  IMAGE_ID 10  READONLY NO  TM_MAD shared SAVE
NO  DATASTORE user_ds  TYPE FILE  DISK_ID 0  VCPU 1  NIC
 VLAN NO  IP6_LINK fe80::400:c0ff:fea8:8ccc  NIC_ID 0  NETWORK localhost MAC
02:00:c0:a8:8c:cc  BRIDGE br0  NETWORK_ID 1  IP 192.168.140.204
MEMORY 512 GRAPHICS
 LISTEN 0.0.0.0  PORT 5934  TYPE VNC  TEMPLATE_ID 19  VMID 34

In Kernel & Ramdisk tab, *there is nothing to selec*t.......

In Input/Output tab selected the vnc and then gave *"CREATE"* .....
template was created successfully....

After creating template gave instantiate and the vm got created but it is
going to *"PROLOG"* state and then goes to *"FAILED"* state and not coming
to *"ON"* state......

So, I tried creating Template manually, but then also VM's goes to *"PROLOG"
* state and then to *"FAILED" *state..

Please find my template below:-

#---------------------------------------
# VM definition example
#---------------------------------------

NAME = "VmXen"
CPU    = 0.5
MEMORY = 512

#REQUIREMENTS = "HOSTNAME=\"node\""

RANK         = FREECPU

# --- kernel & boot device ---

OS = [
kernel = "/boot/vmlinuz-3.2.0-23-generic-pae",
initrd = "/boot/initrd.img-3.2.0-23-generic-pae",
    root = "sda1",
    boot = "sda"
    ]
#OS     = [ bootloader=/usr/lib/xen-4.1/bin/pygrub ]

DISK = [
#    image = "CentOS Server 5.8 - xen",
    IMAGE_ID = 10,
    target = "sda",
    readonly = "no"
    ]

#DISK = [ type   = swap,        size   = 512]

NIC = [ NETWORK_ID = 1 ]
#NIC    = [ NETWORK = "localhost" ]
#NIC    = [ NETWORK = "Private network" ]

FEATURES=[ acpi="no" ]

GRAPHICS = [
type    = "vnc",
listen  = "localhost",
port    = "5902"
]

#CONTEXT = [
#    hostname = "$NAME",
#    ip_public = "$NIC[IP, NETWORK=\"localhost\"]",
#    files  = "/var/lib/one/templates/init.sh",
#    target = "sdc"
#    ]

RAW    = [type  = "xen", data  = "vcpus=1"]


Sir, please guide me if there is anything wrong in my template.....

*And please find below the vm log details:-*

Fri May 3 11:46:05 2013 [DiM][I]: New VM state is ACTIVE.
Fri May 3 11:46:05 2013 [LCM][I]: New VM state is PROLOG.
Fri May 3 11:53:30 2013 [LCM][E]: monitor_done_action, VM in a wrong state
Fri May 3 11:53:30 2013 [LCM][E]: monitor_done_action, VM in a wrong state
Fri May 3 12:04:08 2013 [LCM][E]: monitor_done_action, VM in a wrong state
Fri May 3 12:04:08 2013 [LCM][E]: monitor_done_action, VM in a wrong state
Fri May 3 12:05:13 2013 [TM][I]: clone: Cloning
/var/lib/one/var/datastores/100/d985d5a5d29de9cfa8094ed02db3081d in
node1:/var/lib/one/var//datastores/0/36/disk.0
Fri May 3 12:05:13 2013 [TM][I]: ExitCode: 0
Fri May 3 12:05:14 2013 [TM][I]: Command execution fail:
/var/lib/one/var/remotes/tm/shared/context
/var/lib/one/var/vms/36/context.sh /var/lib/one/templates/init.sh
node1:/var/lib/one/var//datastores/0/36/disk.1 36 0
Fri May 3 12:05:14 2013 [TM][I]: context: Generating context block device
at node1:/var/lib/one/var//datastores/0/36/disk.1
Fri May 3 12:05:14 2013 [TM][E]: context: Command "cp -R
/var/lib/one/templates/init.sh /var/lib/one/var/datastores/.isofiles/36"
failed: cp: cannot stat `/var/lib/one/templates/init.sh': No such file or
directory
Fri May 3 12:05:14 2013 [TM][E]: Error copying
/var/lib/one/templates/init.sh to /var/lib/one/var/datastores/.isofiles/36
Fri May 3 12:05:14 2013 [TM][I]: ExitCode: 1
Fri May 3 12:05:14 2013 [TM][E]: Error executing image transfer script:
Error copying /var/lib/one/templates/init.sh to
/var/lib/one/var/datastores/.isofiles/36
Fri May 3 12:05:14 2013 [DiM][I]: New VM state is FAILED


-- 

***Regards,***

*Preetham. N*

*
*
*



*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130506/7b23ea3a/attachment-0001.htm>


More information about the Users mailing list