[one-users] Cannot open deployment file after generating
Tino Vazquez
tinova at fdi.ucm.es
Mon May 31 03:35:18 PDT 2010
Hi Giang,
Do you have correctly set the VM_DIR in the oned.conf file?
Regards,
-Tino
--
Constantino Vázquez, Grid & Virtualization 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 Mon, May 17, 2010 at 6:12 AM, GIANG NGUYENVAN <mvnli_giang at yahoo.com> wrote:
> Hello.
> When I try to run the ttylinux example in opennebula homepage, I got stuck
> with the error like that "Error deploying virtual machine: Can not open
> deployment file " although I have successfully created that file. I don't
> understand what Oned want?
> And also, to create the deployment file, I must change some code in the Lib
> folder. This code cause One cannot find the deployment file (I have reported
> this error about 1 month ago). The code is like:
>
> def get_local_deployment_file(rfile)
>
> lfile = nil
>
> one_location = ENV["ONE_LOCATION"]
>
> if one_location == nil
> var_location = "/var/lib/one/"
> else
> var_location = one_location + "/var/"
> end
>
> m = rfile.match(/.*?\/(\d+)\/images\/(deployment.\d+)$/)
>
> lfile = "#{var_location}#{m[1]}/#{m[2]}" if m
>
> lfile = nil if lfile and !File.exists?(lfile)
>
> return lfile
> end
> I changed the highlighted line to lfile = "#{var_location}#{m[1]}#{m[2]}" if
> m (remore the symbol "/" as you see)
>
> Also, this is the Vm log file about that stupid error.
>
> Mon May 17 10:55:12 2010 [DiM][I]: New VM state is ACTIVE.
> Mon May 17 10:55:13 2010 [LCM][I]: New VM state is PROLOG.
> Mon May 17 10:55:13 2010 [VM][I]: Virtual Machine has no context
> Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh:
> nguyenlinh:/srv/cloud/ttylinux/ttylinux.img
> 172.29.70.92:/srv/cloud/one/var/3/images/disk.0
> Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: DST:
> /srv/cloud/one//var/3/images/disk.0
> Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Creating directory
> /srv/cloud/one//var/3/images
> Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Executed "mkdir -p
> /srv/cloud/one//var/3/images".
> Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
> /srv/cloud/one//var/3/images".
> Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Cloning
> /srv/cloud/ttylinux/ttylinux.img
> Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Executed "cp
> /srv/cloud/ttylinux/ttylinux.img /srv/cloud/one//var/3/images/disk.0".
> Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
> /srv/cloud/one//var/3/images/disk.0".
> Mon May 17 10:55:13 2010 [LCM][I]: New VM state is BOOT
> Mon May 17 10:55:13 2010 [VMM][I]: Generating deployment file:
> /srv/cloud/one/var/3/deployment.0
> Mon May 17 10:55:13 2010 [VMM][E]: Error deploying virtual machine: Can not
> open deployment file
> Mon May 17 10:55:14 2010 [DiM][I]: New VM state is FAILED
> Mon May 17 10:55:15 2010 [TM][W]: Ignored: LOG - 3 tm_delete.sh: Deleting
> /srv/cloud/one//var/3/images
>
> Mon May 17 10:55:15 2010 [TM][W]: Ignored: LOG - 3 tm_delete.sh: Executed
> "rm -rf /srv/cloud/one//var/3/images".
> Mon May 17 10:55:15 2010 [TM][W]: Ignored: TRANSFER SUCCESS 3 -
> Mon May 17 11:05:19 2010 [DiM][I]: New VM state is DONE.
>
> Anyone please help me. Thanks everyone for reading :)
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
More information about the Users
mailing list