[one-users] Error Deploying VM

Tino Vazquez tinova at opennebula.org
Fri Mar 11 10:33:24 PST 2011


Hi,

The mount point is the same, so you don't need the VM_DIR variable.
Please comment it away, restart oned and try again.

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Fri, Mar 11, 2011 at 7:30 PM, Kyle Jake Plimack
<kplimack at saymedia.com> wrote:
> I updated vm_dir, but got the same error.
>
> My setup is as follows
>
> Master:
> /var/lib/one    oak-vm-host004(rw,async,no_subtree_check,no_root_squash)
>
> Node:
> oak-dev-nebula001:/var/lib/one on /var/lib/one type nfs (rw,soft,intr,rsize=32768,wsize=32768,addr=172.16.3.175)
>
> VM_DIR=/var/lib/one/var/images
> SCRIPTS_REMOTE_DIR=/var/lib/one/remotes
> IMAGE_REPOSITORY_PATH = /var/lib/one/images
> DEFAULT_IMAGE_TYPE    = "OS"
> DEFAULT_DEVICE_PREFIX = "vd"
>
> NAME                  : oak-dev-vmhost004
> CLUSTER               : default
> STATE                 : MONITORED
> IM_MAD                : im_kvm
> VM_MAD                : vmm_kvm
> TM_MAD                : tm_nfs
>
> Everything under /var/lib/one is owned by oneadmin.cloud
>
> It looks like the deployment.0 file is getting generated in here (/var/lib/one/5/deployment.0), but its looking for it here (ailed to create domain from /var/lib/one/var/images/5/images/deployment.0)
>
>
> oneadmin at oak-dev-nebula001:~$ cat /var/log/one/5.log
> Fri Mar 11 10:17:14 2011 [DiM][I]: New VM state is ACTIVE.
> Fri Mar 11 10:17:14 2011 [LCM][I]: New VM state is PROLOG.
> Fri Mar 11 10:17:14 2011 [VM][I]: Virtual Machine has no context
> Fri Mar 11 10:17:14 2011 [TM][I]: tm_clone.sh: oak-dev-nebula001:/var/lib/one/images/ttylinux.img oak-dev-vmhost004:/var/lib/one/var/images/5/images/disk.0
> Fri Mar 11 10:17:14 2011 [TM][I]: tm_clone.sh: DST: /var/lib/one/5/images/disk.0
> Fri Mar 11 10:17:14 2011 [TM][I]: tm_clone.sh: Creating directory /var/lib/one/5/images
> Fri Mar 11 10:17:14 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p /var/lib/one/5/images".
> Fri Mar 11 10:17:14 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w /var/lib/one/5/images".
> Fri Mar 11 10:17:14 2011 [TM][I]: tm_clone.sh: Cloning /var/lib/one/images/ttylinux.img
> Fri Mar 11 10:17:14 2011 [TM][I]: tm_clone.sh: Executed "cp -r /var/lib/one/images/ttylinux.img /var/lib/one/5/images/disk.0".
> Fri Mar 11 10:17:14 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw /var/lib/one/5/images/disk.0".
> Fri Mar 11 10:17:14 2011 [LCM][I]: New VM state is BOOT
> Fri Mar 11 10:17:14 2011 [VMM][I]: Generating deployment file: /var/lib/one/5/deployment.0
> Fri Mar 11 10:17:14 2011 [VMM][I]: Command execution fail: 'if [ -x "/var/lib/one/remotes/vmm/kvm/deploy" ]; then /var/lib/one/remotes/vmm/kvm/deploy /var/lib/one/var/images/5/images/deployment.0; else                              exit 42; fi'
> Fri Mar 11 10:17:14 2011 [VMM][I]: STDERR follows.
> Fri Mar 11 10:17:14 2011 [VMM][I]: error: Failed to create domain from /var/lib/one/var/images/5/images/deployment.0
> Fri Mar 11 10:17:14 2011 [VMM][I]: error: unable to set user and group to '114:116' on '/var/lib/one/var/images/5/images/disk.0': No such file or directory
> Fri Mar 11 10:17:14 2011 [VMM][I]: ExitCode: 255
> Fri Mar 11 10:17:14 2011 [VMM][E]: Error deploying virtual machine: error: Failed to create domain from /var/lib/one/var/images/5/images/deployment.0
> Fri Mar 11 10:17:14 2011 [DiM][I]: New VM state is FAILED
> Fri Mar 11 10:17:14 2011 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Deleting /var/lib/one/5/images
>
> Fri Mar 11 10:17:14 2011 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Executed "rm -rf /var/lib/one/5/images".
>
> Fri Mar 11 10:17:14 2011 [TM][W]: Ignored: TRANSFER SUCCESS 5 -
>
>
>
>
> On Mar 11, 2011, at 9:22 AM, Tino Vazquez wrote:
>
>> Hi,
>>
>> VM_DIR has to be the mount point of $ONE_LOCATION/var in the remote
>> nodes, so if /var/lib/one is being mounted by the nodes as
>> /data/cloud/one, you should set VM_DIR to /data/cloud/one/ and not to
>> /data/cloud/one/var/images.
>>
>> Hope it helps,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Fri, Mar 11, 2011 at 6:18 PM, Kyle Plimack <kplimack at saymedia.com> wrote:
>>> Yes, I set in on the master to /data/cloud/one/var/images.  Would posting it here help?
>>>
>>> Tino Vazquez <tinova at opennebula.org> wrote:
>>>
>>>
>>> Hi,
>>>
>>> Did you set the VM_DIR variable in $ONE_LOCATION/etc/oned.conf?
>>>
>>> Regards,
>>>
>>> -Tino
>>>
>>> --
>>> Constantino Vázquez Blanco, MSc
>>> OpenNebula Major Contributor
>>> www.OpenNebula.org | @tinova79
>>>
>>>
>>>
>>> On Fri, Mar 11, 2011 at 8:23 AM, Kyle Jake Plimack
>>> <kplimack at saymedia.com> wrote:
>>>> I'm brand new to OpenNebula and I'm trying to deploy ttylinux provided by
>>>> opennebula.org on a kvm host.  I've configured them with a shared nfs image
>>>> repository, but to use their local storage for vm_dir.  When I try to create
>>>> the vm from a template, it fails... the oned.log follows.   Can someone
>>>> point me in the right direction to debug this?  I've scoured the interwebs
>>>> already..
>>>> Thanks, Kyle Plimack
>>>> ##############################################################################
>>>> Oned.log:
>>>> Thu Mar 10 23:11:06 2011 [DiM][D]: Deploying VM 4
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: LOG - 4 tm_clone.sh:
>>>> oak-dev-nebula001:/var/lib/one/images/ttylinux.img
>>>> oak-dev-vmhost004:/data/cloud/one/var/4/images/disk.0
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: LOG - 4 tm_clone.sh:
>>>> DST: /var/lib/one/4/images/disk.0
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: LOG - 4 tm_clone.sh:
>>>> Creating directory /var/lib/one/4/images
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: LOG - 4 tm_clone.sh:
>>>> Executed "mkdir -p /var/lib/one/4/images".
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: LOG - 4 tm_clone.sh:
>>>> Executed "chmod a+w /var/lib/one/4/images".
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: LOG - 4 tm_clone.sh:
>>>> Cloning /var/lib/one/images/ttylinux.img
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: LOG - 4 tm_clone.sh:
>>>> Executed "cp -r /var/lib/one/images/ttylinux.img
>>>> /var/lib/one/4/images/disk.0".
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: LOG - 4 tm_clone.sh:
>>>> Executed "chmod a+rw /var/lib/one/4/images/disk.0".
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: TRANSFER SUCCESS 4 -
>>>> Thu Mar 10 23:11:06 2011 [VMM][D]: Message received: LOG - 4 Command
>>>> execution fail: 'if [ -x "/var/lib/one/remotes/vmm/kvm/deploy" ]; then
>>>> /var/lib/one/remotes/vmm/kvm/deploy /data/cloud/one/var/4/imag
>>>> es/deployment.0; else                              exit 42; fi'
>>>> Thu Mar 10 23:11:06 2011 [VMM][D]: Message received: LOG - 4 STDERR follows.
>>>> Thu Mar 10 23:11:06 2011 [VMM][D]: Message received: LOG - 4 error: Failed
>>>> to create domain from /data/cloud/one/var/4/images/deployment.0
>>>> Thu Mar 10 23:11:06 2011 [VMM][D]: Message received: LOG - 4 error: unable
>>>> to set user and group to '114:116' on '/data/cloud/one/var/4/images/disk.0':
>>>> No such file or directory
>>>> Thu Mar 10 23:11:06 2011 [VMM][D]: Message received: LOG - 4 ExitCode: 255
>>>> Thu Mar 10 23:11:06 2011 [VMM][D]: Message received: DEPLOY FAILURE 4 error:
>>>> Failed to create domain from /data/cloud/one/var/4/images/deployment.0
>>>> Thu Mar 10 23:11:06 2011 [VMM][D]: Message received: error: unable to set
>>>> user and group to '114:116' on '/data/cloud/one/var/4/images/disk.0': No
>>>> such file or directory
>>>> Thu Mar 10 23:11:06 2011 [VMM][D]: Message received: ExitCode: 255
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: LOG - 4 tm_delete.sh:
>>>> Deleting /var/lib/one/4/images
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: LOG - 4 tm_delete.sh:
>>>> Executed "rm -rf /var/lib/one/4/images".
>>>> Thu Mar 10 23:11:06 2011 [TM][D]: Message received: TRANSFER SUCCESS 4 -
>>>> Thu Mar 10 23:11:08 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
>>>> ##############################################################################
>>>> ttylinux.template
>>>> NAME    = ttylinux
>>>> CPU     = 1
>>>> MEMORY  = 128
>>>> DISK    = [
>>>>         source          = "/var/lib/one/images/ttylinux.img",
>>>>         target          = "vd",
>>>>         readonly        = "no" ]
>>>> NIC     = [ NETWORK = "Public" ]
>>>> FEATURES        = [acpi="no"]
>>>> ##############################################################################
>>>> I only have one cluster-node set up so far:
>>>> oneadmin at oak-dev-nebula001:~/$ onehost show 5
>>>> HOST 5 INFORMATION
>>>>
>>>> ID                    : 5
>>>> NAME                  : oak-dev-vmhost004
>>>> CLUSTER               : default
>>>> STATE                 : MONITORED
>>>> IM_MAD                : im_kvm
>>>> VM_MAD                : vmm_kvm
>>>> TM_MAD                : tm_nfs
>>>> HOST SHARES
>>>>
>>>> MAX MEM               : 16471536
>>>> USED MEM (REAL)       : 420380
>>>> USED MEM (ALLOCATED)  : 0
>>>> MAX CPU               : 800
>>>> USED CPU (REAL)       : 0
>>>> USED CPU (ALLOCATED)  : 0
>>>> RUNNING VMS           : 0
>>>> MONITORING INFORMATION
>>>>
>>>> ARCH=x86_64
>>>> CPUSPEED=1595
>>>> FREECPU=800.0
>>>> FREEMEMORY=16350472
>>>> HOSTNAME=oak-dev-vmhost004
>>>> HYPERVISOR=kvm
>>>> MODELNAME=Intel(R) Xeon(R) CPU L5310 @ 1.60GHz
>>>> NETRX=0
>>>> NETTX=0
>>>> TOTALCPU=800
>>>> TOTALMEMORY=16471536
>>>> USEDCPU=0.0
>>>> USEDMEMORY=420380
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opennebula.org
>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>
>>>>
>>>
>
>



More information about the Users mailing list