[one-users] deploy vm failed

Miguel Morillo Iruela miguel.morillo at gmail.com
Mon Aug 1 13:52:07 PDT 2011


Hello,

I'm trying to configure Opennebula 2.2.1 in Ubuntu 11.04 and some Xen nodes
in Centos 5.6 (xen-3.0.3), I have installed Opennebula from source and an
NFS storage dir to share the installation dir and images with Xen nodes
(/srv/cloud/one).  I have test also with tm_ssh and tm_nfs.

I can create a host and it can be monitored

I can create an Image (ttylinux or xen image) correctly

I can create Virtual Networks such "Small network" that comes with ttylinux
example

I can create Virtual machines but when they are deployed I have always the
next error:
NAME   = ttylinux2
CPU    = 0.1
MEMORY = 64
DISK   = [ IMAGE_ID = 1 ]
NIC    = [ NETWORK_ID = 1 ]
FEATURES=[ acpi="no" ]


Sun Jul 31 23:42:11 2011 [DiM][I]: New VM state is ACTIVE.
Sun Jul 31 23:42:11 2011 [LCM][I]: New VM state is PROLOG.
Sun Jul 31 23:42:11 2011 [VM][I]: Virtual Machine has no context
Sun Jul 31 23:42:18 2011 [TM][I]: tm_clone.sh:
opennebula:/srv/cloud/images/ttylinux/ttylinux.img
node1:/srv/cloud/one/var//8/images/disk.0
Sun Jul 31 23:42:18 2011 [TM][I]: tm_clone.sh: DST:
/srv/cloud/one/var//8/images/disk.0
Sun Jul 31 23:42:18 2011 [TM][I]: tm_clone.sh: Creating directory
/srv/cloud/one/var//8/images
Sun Jul 31 23:42:18 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
/srv/cloud/one/var//8/images".
Sun Jul 31 23:42:18 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
/srv/cloud/one/var//8/images".
Sun Jul 31 23:42:19 2011 [TM][I]: tm_clone.sh: Cloning
/srv/cloud/images/ttylinux/ttylinux.img
Sun Jul 31 23:42:19 2011 [TM][I]: tm_clone.sh: Executed "cp -r
/srv/cloud/images/ttylinux/ttylinux.img
/srv/cloud/one/var//8/images/disk.0".
Sun Jul 31 23:42:19 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
/srv/cloud/one/var//8/images/disk.0".
Sun Jul 31 23:42:19 2011 [LCM][I]: New VM state is BOOT
Sun Jul 31 23:42:19 2011 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/8/deployment.0
Sun Jul 31 23:42:19 2011 [VMM][E]: No kernel or bootloader defined and no
default provided.
Sun Jul 31 23:42:19 2011 [VMM][E]: deploy_action, error generating
deployment file: /srv/cloud/one/var/8/deployment.0
Sun Jul 31 23:42:20 2011 [DiM][I]: New VM state is FAILED
Sun Jul 31 23:42:21 2011 [TM][W]: Ignored: LOG - 8 tm_delete.sh: Deleting
/srv/cloud/one/var//8/images
Sun Jul 31 23:42:21 2011 [TM][W]: Ignored: LOG - 8 tm_delete.sh: Executed
"rm -rf /srv/cloud/one/var//8/images".
Sun Jul 31 23:42:21 2011 [TM][W]: Ignored: TRANSFER SUCCESS 8 -
Mon Aug  1 15:59:54 2011 [DiM][I]: New VM state is DONE.


If I insert the bootloader I only have one error but the deploy fails...

NAME   = ttylinux2
CPU    = 0.1
MEMORY = 64
DISK   = [ IMAGE_ID = 1 ]
NIC    = [ NETWORK_ID = 1 ]
FEATURES=[ acpi="no" ]
OS = [ bootloader = "/usr/bin/pygrub" ]

Mon Aug  1 22:08:29 2011 [DiM][I]: New VM state is ACTIVE.
Mon Aug  1 22:08:30 2011 [LCM][I]: New VM state is PROLOG.
Mon Aug  1 22:08:30 2011 [VM][I]: Virtual Machine has no context
Mon Aug  1 22:08:35 2011 [TM][I]: tm_clone.sh:
opennebula:/srv/cloud/one/var//images/dcc95e49f324ce936f459ef135079cc69a12eef6
node1:/srv/cloud/one/var//15/images/disk.0
Mon Aug  1 22:08:35 2011 [TM][I]: tm_clone.sh: DST:
/srv/cloud/one/var//15/images/disk.0
Mon Aug  1 22:08:35 2011 [TM][I]: tm_clone.sh: Creating directory
/srv/cloud/one/var//15/images
Mon Aug  1 22:08:35 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
/srv/cloud/one/var//15/images".
Mon Aug  1 22:08:35 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
/srv/cloud/one/var//15/images".
Mon Aug  1 22:08:35 2011 [TM][I]: tm_clone.sh: Cloning
/srv/cloud/one/var//images/dcc95e49f324ce936f459ef135079cc69a12eef6
Mon Aug  1 22:08:35 2011 [TM][I]: tm_clone.sh: Executed "cp -r
/srv/cloud/one/var//images/dcc95e49f324ce936f459ef135079cc69a12eef6
/srv/cloud/one/var//15/images/disk.0".
Mon Aug  1 22:08:35 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
/srv/cloud/one/var//15/images/disk.0".
Mon Aug  1 22:08:36 2011 [LCM][I]: New VM state is BOOT
Mon Aug  1 22:08:36 2011 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/15/deployment.0
Mon Aug  1 22:08:37 2011 [VMM][I]: Command execution fail: 'if [ -x
"/tmp/one/vmm/xen/deploy" ]; then /tmp/one/vmm/xen/deploy
/srv/cloud/one/var//15/images/deployment.0;
else                              exit 42; fi'
Mon Aug  1 22:08:37 2011 [VMM][I]: STDERR follows.
Mon Aug  1 22:08:38 2011 [VMM][I]: Traceback (most recent call last):
Mon Aug  1 22:08:38 2011 [VMM][I]: File "/usr/bin/pygrub", line 691, in ?
Mon Aug  1 22:08:38 2011 [VMM][I]: chosencfg = run_grub(file, entry, fs)
Mon Aug  1 22:08:38 2011 [VMM][I]: File "/usr/bin/pygrub", line 545, in
run_grub
Mon Aug  1 22:08:38 2011 [VMM][I]: g = Grub(file, fs)
Mon Aug  1 22:08:38 2011 [VMM][I]: File "/usr/bin/pygrub", line 203, in
__init__
Mon Aug  1 22:08:38 2011 [VMM][I]: self.read_config(file, fs)
Mon Aug  1 22:08:38 2011 [VMM][I]: File "/usr/bin/pygrub", line 402, in
read_config
Mon Aug  1 22:08:38 2011 [VMM][I]: if self.cf.filename is None:
Mon Aug  1 22:08:38 2011 [VMM][I]: AttributeError: Grub instance has no
attribute 'cf'
Mon Aug  1 22:08:38 2011 [VMM][I]: No handlers could be found for logger
"xend"
Mon Aug  1 22:08:39 2011 [VMM][I]: Error: Boot loader didn't return any
data!
Mon Aug  1 22:08:39 2011 [VMM][I]: ExitCode: 1
Mon Aug  1 22:08:39 2011 [VMM][E]: Error deploying virtual machine:
Traceback (most recent call last):
Mon Aug  1 22:08:40 2011 [DiM][I]: New VM state is FAILED
Mon Aug  1 22:08:41 2011 [TM][W]: Ignored: LOG - 15 tm_delete.sh: Deleting
/srv/cloud/one/var//15/images
Mon Aug  1 22:08:41 2011 [TM][W]: Ignored: LOG - 15 tm_delete.sh: Executed
"rm -rf /srv/cloud/one/var//15/images".
Mon Aug  1 22:08:41 2011 [TM][W]: Ignored: TRANSFER SUCCESS 15 -
Mon Aug  1 22:09:32 2011 [DiM][I]: New VM state is DONE.



Some information, if somebody can help me:

oneadmin at opennebula:~/var$ oneimage list
  ID     USER                 NAME TYPE              REGTIME PUB PER STAT
#VMS
   0 oneadmin          Centos i386   OS   Jul 29, 2011 22:55 Yes  No
rdy     0
   1 oneadmin            ttylinux2   OS   Aug 01, 2011 13:56 Yes  No
used     1
oneadmin at opennebula:~/var$
oneadmin at opennebula:~/var$ onevnet list
  ID USER     NAME              TYPE BRIDGE P #LEASES
   0 oneadmin VM_LAN          Ranged  peth0 Y       0
   1 oneadmin Small network    Fixed virbr0 N       1
oneadmin at opennebula:~/var$ onehost list
  ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM
STAT
   4 node1             default    0    200    199    200    3.9G    383M
on
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110801/74a9e95f/attachment-0002.htm>


More information about the Users mailing list