[one-users] virtual machine images

Tino Vazquez tinova at fdi.ucm.es
Fri Jan 22 03:44:24 PST 2010


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
>



More information about the Users mailing list