[one-users] virtual machine images

Tino Vazquez tinova at fdi.ucm.es
Fri Jan 22 06:34:59 PST 2010


Hi Nikola

The following line from your log

Fri Jan 22 15:01:18 2010 [VMM][I]: Password:

indicates that, most likely, the sudoers file is not correctly
configure so <oneadmin> can execute "/usr/sbin/xm" as the root user
without being prompt by a password.

Regards,

-Tino

--
Constantino Vázquez, Grid Technology Engineer/Researcher:
http://www.dsa-research.org/tinova
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org



On Fri, Jan 22, 2010 at 3:21 PM, Nikola Garafolic
<nikola.garafolic at srce.hr> wrote:
> I have /data/one shared via nfs, so I commented VM_DIR in oned.conf.
>
> But still I encounter problems:
>
> Fri Jan 22 14:54:19 2010 [DiM][I]: New VM state is ACTIVE.
> Fri Jan 22 14:54:19 2010 [LCM][I]: New VM state is PROLOG.
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_clone.sh:
> opennebula1.srce.hr:/data/one/images/centos5.img
> node01:/data/one/var//15/images/disk.0
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_clone.sh: DST:
> /data/one/var//15/images/disk.0
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_clone.sh: Creating directory
> /data/one/var//15/images
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_clone.sh: Executed "mkdir -p
> /data/one/var//15/images".
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
> /data/one/var//15/images".
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_clone.sh: Cloning
> /data/one/images/centos5.img
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_clone.sh: Executed "cp
> /data/one/images/centos5.img /data/one/var//15/images/disk.0".
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
> /data/one/var//15/images/disk.0".
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_context.sh: Executed "mkdir -p
> /data/one/var//15/images/isofiles".
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_context.sh: Executed "cp -R
> /data/one/var/15/context.sh /data/one/var//15/images/isofiles".
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_context.sh: Executed "mkisofs -o
> /data/one/var//15/images/disk.1 -J -R /data/one/var//15/images/isofiles".
> Fri Jan 22 15:01:16 2010 [TM][I]: tm_context.sh: Executed "rm -rf
> /data/one/var//15/images/isofiles".
> Fri Jan 22 15:01:16 2010 [LCM][I]: New VM state is BOOT
> Fri Jan 22 15:01:17 2010 [VMM][I]: Generating deployment file:
> /data/one/var/15/deployment.0
> Fri Jan 22 15:01:17 2010 [VMM][W]: Could not find target device to attach
> context, will continue without it.
> Fri Jan 22 15:01:18 2010 [VMM][I]: Command execution fail: 'cat >
> /data/one/var//15/images/deployment.0 && sudo /usr/sbin/xm create
> /data/one/var//15/images/deployment.0 && sudo /usr/ bin/xm sched-cred -d
> one-15 -w 256'
> Fri Jan 22 15:01:18 2010 [VMM][I]: STDERR follows.
> Fri Jan 22 15:01:18 2010 [VMM][I]: Password:
> Fri Jan 22 15:01:18 2010 [VMM][I]: ExitCode: 1
> Fri Jan 22 15:01:18 2010 [VMM][E]: Error deploying virtual machine
> Fri Jan 22 15:01:18 2010 [DiM][I]: New VM state is FAILED
> Fri Jan 22 15:01:28 2010 [TM][W]: Ignored: LOG - 15 tm_delete.sh: Deleting
> /data/one/var//15/images
>
> Fri Jan 22 15:01:28 2010 [TM][W]: Ignored: LOG - 15 tm_delete.sh: Executed
> "rm -rf /data/one/var//15/images".
>
> Fri Jan 22 15:01:28 2010 [TM][W]: Ignored: TRANSFER SUCCESS 15 -
>
>
> First deployment is saved in /data/one/var/15/deployment.0, then it is
> supposed to be in /data/one/var/15/images/deployment.0 (on the node), but
> its like it never gets there?
>
> /data/one and /data/one/images are both shared (rw) via nfs to two nodes
>  that are used for testing.
>
> Regards,
> Nikola
>
> Tino Vazquez wrote:
>>
>> Hi,
>> If /data/one is the path of OpenNebula in all the hosts, then you
>> don't need the VM_DIR. In any case, you need VM_DIR to point to the
>> remote mount point of $ONE_LOCATION/var. So, if in the remote nodes
>> the /data/one folder is mounted in :
>>
>>  - the same path, unset VM_DIR (comment it out) or set it to
>> VM_DIR=/data/one/var
>>  - other path (like /mnt/one) then set it to the var directory
>> (VM_DIR=/mnt/one/var)
>>
>> Hope it helps,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez, Grid Technology Engineer/Researcher:
>> http://www.dsa-research.org/tinova
>> DSA Research Group: http://dsa-research.org
>> Globus GridWay Metascheduler: http://www.GridWay.org
>> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>>
>>
>>
>> On Fri, Jan 22, 2010 at 12:30 PM, Nikola Garafolic
>> <nikola.garafolic at srce.hr> wrote:
>>>
>>> Tino,
>>>
>>> VM_DIR=/data/one/images
>>>
>>> is set in oned.conf
>>>
>>> and in oneadmin .bash_profile is:
>>>
>>> export ONE_LOCATION=/data/one
>>>
>>> That are paths that are set in my setup.
>>>
>>> Regards,
>>> Nikola
>>>
>>> Tino Vazquez wrote:
>>>>
>>>> Hi Nikola,
>>>>
>>>> Did you set VM_DIR in $ONE_LOCATION/etc/oned.conf?
>>>>
>>>> Regards,
>>>>
>>>> -Tino
>>>>
>>>> --
>>>> Constantino Vázquez, Grid Technology Engineer/Researcher:
>>>> http://www.dsa-research.org/tinova
>>>> DSA Research Group: http://dsa-research.org
>>>> Globus GridWay Metascheduler: http://www.GridWay.org
>>>> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>>>>
>>>>
>>>>
>>>> On Thu, Jan 21, 2010 at 2:05 PM, Nikola Garafolic
>>>> <nikola.garafolic at srce.hr> wrote:
>>>>>
>>>>> As Mr. Stefan Freitag discovered, problem seems to be with paths.
>>>>> Following
>>>>> is part of vm.log file:
>>>>>
>>>>> Wed Jan 20 13:20:00 2010 [VMM][I]: Generating deployment file:
>>>>> /data/one/var/7/deployment.0
>>>>> Wed Jan 20 13:20:00 2010 [VMM][W]: Could not find target device to
>>>>> attach
>>>>> context, will continue without it.
>>>>> Wed Jan 20 13:20:01 2010 [VMM][I]: Command execution fail: 'cat >
>>>>> /data/one//7/images/deployment.0 && sudo /usr/sbin/xm create
>>>>> /data/one//7/images/deployment.0 && sudo /usr/sbin/xm sched-cred -d
>>>>> one-7
>>>>> -w
>>>>> 256'
>>>>>
>>>>> deployment file is written in /data/one/var and when it is supposed to
>>>>> be
>>>>> executed, then it looks for it in /data/one (no var here).
>>>>>
>>>>> Did I misconfigure something during install? I dont remember setting
>>>>> any
>>>>>  other path than ONE_LOCATION.
>>>>>
>>>>> Regards,
>>>>> Nikola
>>>>>
>>>>> Nikola Garafolic wrote:
>>>>>>
>>>>>> Here is vm.log from VM 7:
>>>>>>
>>>>>> Wed Jan 20 13:19:20 2010 [DiM][I]: New VM state is ACTIVE.
>>>>>> Wed Jan 20 13:19:20 2010 [LCM][I]: New VM state is PROLOG.
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_clone.sh:
>>>>>> opennebula1.srce.hr:/data/one/images/centos.5-4.x86-64.img
>>>>>> node02:/data/one//7/images/disk.0
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_clone.sh: DST:
>>>>>> /data/one/var/7/images/disk.0
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_clone.sh: Creating directory
>>>>>> /data/one/var/7/images
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_clone.sh: Executed "mkdir -p
>>>>>> /data/one/var/7/images".
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
>>>>>> /data/one/var/7/images".
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_clone.sh: Cloning
>>>>>> /data/one/varimages/centos.5-4.x86-64.img
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_clone.sh: Executed "cp
>>>>>> /data/one/varimages/centos.5-4.x86-64.img
>>>>>> /data/one/var/7/images/disk.0".
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
>>>>>> /data/one/var/7/images/disk.0".
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_context.sh: Executed "mkdir -p
>>>>>> /data/one/var/7/images/isofiles".
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_context.sh: Executed "cp -R
>>>>>> /data/one/var/7/context.sh /data/one/var/7/images/isofiles".
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_context.sh: Executed "mkisofs -o
>>>>>> /data/one/var/7/images/disk.1 -J -R /data/one/var/7/images/isofiles".
>>>>>> Wed Jan 20 13:20:00 2010 [TM][I]: tm_context.sh: Executed "rm -rf
>>>>>> /data/one/var/7/images/isofiles".
>>>>>> Wed Jan 20 13:20:00 2010 [LCM][I]: New VM state is BOOT
>>>>>> Wed Jan 20 13:20:00 2010 [VMM][I]: Generating deployment file:
>>>>>> /data/one/var/7/deployment.0
>>>>>> Wed Jan 20 13:20:00 2010 [VMM][W]: Could not find target device to
>>>>>> attach
>>>>>> context, will continue without it.
>>>>>> Wed Jan 20 13:20:01 2010 [VMM][I]: Command execution fail: 'cat >
>>>>>> /data/one//7/images/deployment.0 && sudo /usr/sbin/xm create
>>>>>> /data/one//7/images/deployment.0 && sudo /usr/sbin/xm sched-cred -d
>>>>>> one-7 -w
>>>>>> 256'
>>>>>> Wed Jan 20 13:20:01 2010 [VMM][I]: STDERR follows.
>>>>>> Wed Jan 20 13:20:01 2010 [VMM][I]: bash:
>>>>>> /data/one//7/images/deployment.0:
>>>>>> No such file or directory
>>>>>> Wed Jan 20 13:20:01 2010 [VMM][I]: ExitCode: 1
>>>>>> Wed Jan 20 13:20:01 2010 [VMM][E]: Error deploying virtual machine
>>>>>> Wed Jan 20 13:20:01 2010 [DiM][I]: New VM state is FAILED
>>>>>> Wed Jan 20 13:20:02 2010 [TM][W]: Ignored: LOG - 7 tm_delete.sh:
>>>>>> Deleting
>>>>>> /data/one/var/7/images
>>>>>>
>>>>>> Wed Jan 20 13:20:02 2010 [TM][W]: Ignored: LOG - 7 tm_delete.sh:
>>>>>> Executed
>>>>>> "rm -rf /data/one/var/7/images".
>>>>>>
>>>>>> Wed Jan 20 13:20:02 2010 [TM][W]: Ignored: TRANSFER SUCCESS 7 -
>>>>>>
>>>>>> Wed Jan 20 13:21:31 2010 [DiM][I]: New VM state is DONE.
>>>>>>
>>>>>> Seems like problem with context.
>>>>>>
>>>>>> vnet template:
>>>>>>
>>>>>> NAME  = "Private LAN"
>>>>>> TYPE  = "FIXED"
>>>>>> BRIDGE= "virbr0"
>>>>>> LEASES= [IP="10.8.16.94",MAC="00:ff:72:17:20:27"]
>>>>>>
>>>>>> vm template:
>>>>>>
>>>>>> NAME = "c5.4"
>>>>>>
>>>>>> CPU    = 1
>>>>>> MEMORY = 512
>>>>>>
>>>>>>
>>>>>> OS = [
>>>>>>  kernel   = "/vmlinuz",
>>>>>>  kernel   = "/boot/vmlinuz-2.6-xen",
>>>>>>  initrd   = "/initrd.img",
>>>>>>  root     = "sda" ]
>>>>>>
>>>>>>
>>>>>> DISK = [
>>>>>>  source   = "/data/one/images/centos.5-4.x86-64.img",
>>>>>>  target   = "sda",
>>>>>>  readonly = "no" ]
>>>>>>
>>>>>>
>>>>>>
>>>>>> NIC = [ mac="00:ff:72:17:20:27"]
>>>>>>
>>>>>> NIC = [ NETWORK="Private LAN"]
>>>>>>
>>>>>>
>>>>>>
>>>>>> GRAPHICS = [
>>>>>>  type    = "vnc",
>>>>>>  listen  = "127.0.0.1",
>>>>>>  port    = "5"]
>>>>>>
>>>>>>
>>>>>> CONTEXT = [
>>>>>>  hostname   = "$NAME",
>>>>>>  ip_private = "$NIC[IP, NETWORK=\"Private LAN\"]",
>>>>>>  ip_gen     = "10.8.16.94"]
>>>>>>
>>>>>> Centos 5.4 image is the one from stacklet site.
>>>>>>
>>>>>> Regards,
>>>>>> Nikola
>>>>>>
>>>>>> Tino Vazquez wrote:
>>>>>>>
>>>>>>> Hi there,
>>>>>>>
>>>>>>> Please send through the $ONE_LOCATION/var/<vm_id>/vm.log to try to
>>>>>>> spot the problem.
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> -Tino
>>>>>>>
>>>>>>> --
>>>>>>> Constantino Vázquez, Grid Technology Engineer/Researcher:
>>>>>>> http://www.dsa-research.org/tinova
>>>>>>> DSA Research Group: http://dsa-research.org
>>>>>>> Globus GridWay Metascheduler: http://www.GridWay.org
>>>>>>> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Jan 20, 2010 at 3:35 PM, Nikola Garafolic
>>>>>>> <nikola.garafolic at srce.hr> wrote:
>>>>>>>>
>>>>>>>> Image works properly with xen. But something is obviously wrong with
>>>>>>>> vm
>>>>>>>> template or vnet template.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Nikola
>>>>>>>>
>>>>>>>> Tino Vazquez wrote:
>>>>>>>>>
>>>>>>>>> Hi Nikola,
>>>>>>>>>
>>>>>>>>> Probably the first step will be to create a VM and try to run it
>>>>>>>>> directly from Xen, to make sure it works. Then you can move to
>>>>>>>>> OpenNebula to enable its distributed execution.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>>
>>>>>>>>> -Tino
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Constantino Vázquez, Grid Technology Engineer/Researcher:
>>>>>>>>> http://www.dsa-research.org/tinova
>>>>>>>>> DSA Research Group: http://dsa-research.org
>>>>>>>>> Globus GridWay Metascheduler: http://www.GridWay.org
>>>>>>>>> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Jan 15, 2010 at 3:20 PM, Nikola Garafolic
>>>>>>>>> <nikola.garafolic at srce.hr> wrote:
>>>>>>>>>>
>>>>>>>>>> Dear Sirs,
>>>>>>>>>> I am trying to get open nebula 1.4 working. I created one vm with
>>>>>>>>>> xen
>>>>>>>>>> and
>>>>>>>>>> now it seems that I cannot get it to run. There is sure some error
>>>>>>>>>> in
>>>>>>>>>> configuration of vm in template.
>>>>>>>>>> Its confusing for me, am I supposed to install it with xen and
>>>>>>>>>> then
>>>>>>>>>> use
>>>>>>>>>> the
>>>>>>>>>> image or how am I supposed to get the image for vm?
>>>>>>>>>>
>>>>>>>>>> Thanks in advance.
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> Nikola
>>>>>>>>>> --
>>>>>>>>>> Nikola Garafolic
>>>>>>>>>> SRCE, Sveucilisni racunski centar
>>>>>>>>>> tel: +385 1 6165 804
>>>>>>>>>> email: nikola.garafolic at srce.hr
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Users mailing list
>>>>>>>>>> Users at lists.opennebula.org
>>>>>>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>>>>>>
>>>>>>>> --
>>>>>>>> Nikola Garafolic
>>>>>>>> SRCE, Sveucilisni racunski centar
>>>>>>>> tel: +385 1 6165 804
>>>>>>>> email: nikola.garafolic at srce.hr
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Users mailing list
>>>>>>>> Users at lists.opennebula.org
>>>>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>>>>
>>>>> --
>>>>> Nikola Garafolic
>>>>> SRCE, Sveucilisni racunski centar
>>>>> tel: +385 1 6165 804
>>>>> email: nikola.garafolic at srce.hr
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opennebula.org
>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>
>>>
>>> --
>>> Nikola Garafolic
>>> SRCE, Sveucilisni racunski centar
>>> tel: +385 1 6165 804
>>> email: nikola.garafolic at srce.hr
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>
>
> --
> Nikola Garafolic
> SRCE, Sveucilisni racunski centar
> tel: +385 1 6165 804
> email: nikola.garafolic at srce.hr
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



More information about the Users mailing list