<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000;"><div>Hello.<br>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?<br>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:<br> <br> def get_local_deployment_file(rfile)<br><br> lfile = nil<br><br> one_location = ENV["ONE_LOCATION"]<br><br> if one_location ==
nil<br> var_location = "/var/lib/one/"<br> else<br> var_location = one_location + "/var/"<br> end<br><br> m = rfile.match(/.*?\/(\d+)\/images\/(deployment.\d+)$/)<br><br> <span style="background-color: rgb(255, 255, 0);"> lfile = "#{var_location}#{m[1]}/#{m[2]}" if m</span><br><br> lfile = nil if lfile and !File.exists?(lfile)<br><br> return lfile<br> end<br>I changed the highlighted line to <span style="background-color: rgb(255, 255, 0);">lfile = "#{var_location}#{m[1]}#{m[2]}" if m</span> (remore the symbol "/" as you see)<br><br>Also, this is the Vm
log file about that stupid error. <br><br>Mon May 17 10:55:12 2010 [DiM][I]: New VM state is ACTIVE.<br>Mon May 17 10:55:13 2010 [LCM][I]: New VM state is PROLOG.<br>Mon May 17 10:55:13 2010 [VM][I]: Virtual Machine has no context<br>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<br>Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: DST: /srv/cloud/one//var/3/images/disk.0<br>Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one//var/3/images<br>Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Executed "mkdir -p /srv/cloud/one//var/3/images".<br>Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one//var/3/images".<br>Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Cloning /srv/cloud/ttylinux/ttylinux.img<br>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".<br>Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one//var/3/images/disk.0".<br>Mon May 17 10:55:13 2010 [LCM][I]: New VM state is BOOT<br>Mon May 17 10:55:13 2010 [VMM][I]: Generating deployment file: /srv/cloud/one/var/3/deployment.0<br><span style="background-color: rgb(255, 255, 0);">Mon May 17 10:55:13 2010 [VMM][E]: Error deploying virtual machine: Can not open deployment file </span><br>Mon May 17 10:55:14 2010 [DiM][I]: New VM state is FAILED<br>Mon May 17 10:55:15 2010 [TM][W]: Ignored: LOG - 3 tm_delete.sh: Deleting /srv/cloud/one//var/3/images<br><br>Mon May 17 10:55:15 2010 [TM][W]: Ignored: LOG - 3 tm_delete.sh: Executed "rm -rf /srv/cloud/one//var/3/images".<br>Mon May 17 10:55:15 2010 [TM][W]: Ignored: TRANSFER SUCCESS 3 -<br>Mon May 17 11:05:19 2010 [DiM][I]: New VM state is DONE.<br><br>Anyone please help me. Thanks everyone for reading :)<br></div>
</div><br></body></html>