[one-users] VM_DIR not used with Xen deployment?

Jaime Melis j.melis at fdi.ucm.es
Mon Nov 16 03:05:55 PST 2009


Hi,
have you set the environment variable ONE_LOCATION?

regards,
Jaime

On Mon, Nov 16, 2009 at 7:50 AM, Scott Hamilton <
scott.hamilton at det.nsw.edu.au> wrote:

>
>    I am new to Open Nebula and am attempting to create a VM on a Xen booted
> host with one-1.3.85 (opennebula 1.4 beta2), however the
> VirtualMachineManager.cpp doesn't seem to taking into account the setting of
> VM_DIR when it creates the deployment file.
>
>    So it is creating the file in the default /var/lib/one/ rather under
> $VM_DIR/var
>
>
> Mon Nov 16 17:26:59 2009 [DiM][I]: New VM state is ACTIVE.
> Mon Nov 16 17:26:59 2009 [LCM][I]: New VM state is PROLOG.
> Mon Nov 16 17:26:59 2009 [VM][I]: Virtual Machine has no context
> Mon Nov 16 17:27:00 2009 [LCM][I]: New VM state is BOOT
> Mon Nov 16 17:27:00 2009 [VMM][I]: Generating deployment file: /var/lib/one/19/deployment.0
> Mon Nov 16 17:27:00 2009 [VMM][I]: Command execution fail: 'cat > /srv/cloud/one/var/19/images/deployment.0 && sudo /usr/sbin/xm create /srv/cloud/one/var/19/images/deployment.0 && sudo /usr/sbin/xm sched-cred -d one-19 -w 256'
> Mon Nov 16 17:27:00 2009 [VMM][I]: STDERR follows.
> Mon Nov 16 17:27:00 2009 [VMM][I]: bash: /srv/cloud/one/var/19/images/deployment.0: No such file or directory
> Mon Nov 16 17:27:00 2009 [VMM][I]: ExitCode: 1
> Mon Nov 16 17:27:00 2009 [VMM][E]: Error deploying virtual machine
> Mon Nov 16 17:27:01 2009 [DiM][I]: New VM state is FAILED
>
>
> I've looked through all the vmm_xen related files I could find, but I can't
> see what is called before VirtualMachineManager.cpp is called to setup the
> vm->get_deployment_file()??
>
> Any hints of what is called, beforehand that might help ensure the correct
> deployment file location is set?
>
>
> Mon Nov 16 17:26:28 2009 [ONE][I]: Init OpenNebula Log system
> Mon Nov 16 17:26:28 2009 [ONE][I]: Log Level: 3 [0=ERROR,1=WARNING,2=INFO,3=DEBUG]
> Mon Nov 16 17:26:28 2009 [ONE][I]: ----------------------------------------------
> Mon Nov 16 17:26:28 2009 [ONE][I]:        OpenNebula Configuration File
> Mon Nov 16 17:26:28 2009 [ONE][I]: ----------------------------------------------
> Mon Nov 16 17:26:28 2009 [ONE][I]:
> --------------------------------------------
>         DEBUG_LEVEL=3
>         HM_MAD=EXECUTABLE=one_hm
>         HOST_MONITORING_INTERVAL=60
>         IM_MAD=ARGUMENTS=im_xen/im_xen.conf,EXECUTABLE=one_im_ssh,NAME=im_xen
>         IM_MAD=ARGUMENTS=im_kvm/im_kvm.conf,EXECUTABLE=one_im_ssh,NAME=im_kvm
>         MAC_PREFIX=00:03
>         MANAGER_TIMER=30
>         NETWORK_SIZE=254
>         PORT=2633
>         TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs
>         VM_DIR=/srv/cloud/one/var
>         VM_MAD=DEFAULT=vmm_xen/vmm_xen.conf,EXECUTABLE=one_vmm_xen,NAME=vmm_xen,TYPE=xen
>         VM_MAD=DEFAULT=vmm_kvm/vmm_kvm.conf,EXECUTABLE=one_vmm_kvm,NAME=vmm_kvm,TYPE=kvm
>         VM_POLLING_INTERVAL=60
> --------------------------------------------
> Mon Nov 16 17:26:28 2009 [VMM][I]: Starting Virtual Machine Manager...
> Mon Nov 16 17:26:28 2009 [LCM][I]: Starting Life-cycle Manager...
> Mon Nov 16 17:26:28 2009 [VMM][I]: Virtual Machine Manager started.
> Mon Nov 16 17:26:28 2009 [LCM][I]: Life-cycle Manager started.
> Mon Nov 16 17:26:28 2009 [InM][I]: Starting Information Manager...
> Mon Nov 16 17:26:28 2009 [InM][I]: Information Manager started.
> Mon Nov 16 17:26:28 2009 [TrM][I]: Starting Transfer Manager...
> Mon Nov 16 17:26:28 2009 [DiM][I]: Starting Dispatch Manager...
> Mon Nov 16 17:26:28 2009 [TrM][I]: Transfer Manager started.
> Mon Nov 16 17:26:28 2009 [DiM][I]: Dispatch Manager started.
> Mon Nov 16 17:26:28 2009 [ReM][I]: Starting Request Manager...
> Mon Nov 16 17:26:28 2009 [ReM][I]: Starting XML-RPC server, port 2633 ...
> Mon Nov 16 17:26:28 2009 [ReM][I]: Request Manager started.
> Mon Nov 16 17:26:28 2009 [HKM][I]: Starting Hook Manager...
> Mon Nov 16 17:26:28 2009 [HKM][I]: Hook Manager started.
> Mon Nov 16 17:26:30 2009 [VMM][I]: Loading Virtual Machine Manager drivers.
> Mon Nov 16 17:26:30 2009 [VMM][I]:      Loading driver: vmm_xen (XEN)
> Mon Nov 16 17:26:30 2009 [VMM][I]:      Driver vmm_xen loaded.
> Mon Nov 16 17:26:30 2009 [VMM][I]:      Loading driver: vmm_kvm (KVM)
> Mon Nov 16 17:26:30 2009 [VMM][I]:      Driver vmm_kvm loaded.
> Mon Nov 16 17:26:30 2009 [InM][I]: Loading Information Manager drivers.
> Mon Nov 16 17:26:30 2009 [InM][I]:      Loading driver: im_xen
> Mon Nov 16 17:26:31 2009 [InM][I]:      Driver im_xen loaded
> Mon Nov 16 17:26:31 2009 [InM][I]:      Loading driver: im_kvm
> Mon Nov 16 17:26:31 2009 [InM][I]:      Driver im_kvm loaded
> Mon Nov 16 17:26:31 2009 [TM][I]: Loading Transfer Manager drivers.
> Mon Nov 16 17:26:31 2009 [VMM][I]:      Loading driver: tm_nfs
> Mon Nov 16 17:26:31 2009 [TM][I]:       Driver tm_nfs loaded.
> Mon Nov 16 17:26:31 2009 [HKM][I]: Loading Hook Manager driver.
> Mon Nov 16 17:26:31 2009 [HKM][I]:      Hook Manager loaded
> Mon Nov 16 17:26:35 2009 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Nov 16 17:26:40 2009 [ReM][D]: VirtualMachineAction invoked
> Mon Nov 16 17:26:40 2009 [DiM][D]: Finalizing VM 18
> Mon Nov 16 17:26:45 2009 [ReM][D]: VirtualMachineAllocate invoked
> Mon Nov 16 17:26:45 2009 [DiM][D]: Allocating a new VM
> Mon Nov 16 17:26:59 2009 [ReM][D]: VirtualMachineDeploy invoked
> Mon Nov 16 17:26:59 2009 [DiM][D]: Deploying VM 19
> Mon Nov 16 17:26:59 2009 [TM][D]: Message received: TRANSFER SUCCESS 19 -
>
> Mon Nov 16 17:27:00 2009 [VMM][D]: Message received: LOG - 19 Command execution fail: 'cat > /srv/cloud/one/var/19/images/deployment.0 && sudo /usr/sbin/xm create /srv/cloud/one/var/19/images/deployment.0 && sudo /usr/sbin/xm sched-cred -d one-19 -w 256'
>
> Mon Nov 16 17:27:00 2009 [VMM][D]: Message received: LOG - 19 STDERR follows.
>
> Mon Nov 16 17:27:00 2009 [VMM][D]: Message received: LOG - 19 bash: /srv/cloud/one/var/19/images/deployment.0: No such file or directory
>
> Mon Nov 16 17:27:00 2009 [VMM][D]: Message received: LOG - 19 ExitCode: 1
>
> Mon Nov 16 17:27:00 2009 [VMM][D]: Message received: DEPLOY FAILURE 19 -
>
> Mon Nov 16 17:27:01 2009 [TM][D]: Message received: LOG - 19 ONE_LOCATION: , ONE_CONF: /etc/one/oned.conf
>
> Mon Nov 16 17:27:01 2009 [TM][D]: Message received: LOG - 19 VMDIR: /srv/cloud/one/var
>
> Mon Nov 16 17:27:01 2009 [TM][D]: Message received: LOG - 19 tm_delete.sh: Deleting /var/lib/one/19/images
>
> Mon Nov 16 17:27:01 2009 [TM][D]: Message received: LOG - 19 tm_delete.sh: Executed "rm -rf /var/lib/one/19/images".
>
> Mon Nov 16 17:27:01 2009 [TM][D]: Message received: TRANSFER SUCCESS 19 -
>
>
>
>
>
>   Many thanks
>        Scott.
>
>
> **********************************************************************
> This message is intended for the addressee named and may contain
> privileged information or confidential information or both. If you
> are not the intended recipient please delete it and notify the sender.
> **********************************************************************
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20091116/cddaae70/attachment-0001.htm>


More information about the Users mailing list