Hi Ingo, >From OpenNebula official documentation [1] the PATH attribute description is:
"Path to the original **file** that will be copied to the image repository. If not specified for a DATABLOCK type image, an empty image will be created." Try using the file /var/images/*.img as PATH's attribute value. Should work. [1]: http://opennebula.org/documentation:rel3.6:img_template Cheers and Goodwill, v On Wed, Sep 26, 2012 at 10:28 AM, Ingo Stieglitz <[email protected]> wrote: > Hi Valentin, > > The content of the ubuntuvmdk.img file is this > > NAME = Ubuntu_11_vmdk > PATH = /var/images > TYPE = OS > > like it is written in the guide > (http://cloudblab.files.wordpress.com/2012/05/opennebula-r-3-4-and-vmware-esxi5-0-using-sharedvmware-and-ssh-transfer-drivers1.pdf) > > In the guide I followed to install 3.2 there the path variable was set to > "PATH = vmware:///var/images" so I tried this to, but the same error occurs. > > Regards, Ingo > > 2012/9/26 Valentin Bud <[email protected]> >> >> Hi there, >> >> What's the content of ubuntuvmdk.img image template? You should have a >> PATH attribute pointing to the image file. >> >> By the looks of your logs, PATH points to /var/images. >> >> Cheers and Goodwill, >> v >> >> On Wed, Sep 26, 2012 at 9:40 AM, Ingo Stieglitz <[email protected]> >> wrote: >> > Hi there, >> > >> > After I updated my 3.2 to 3.4 I followed a guide from the wiki to set up >> > the >> > correct datastores and images. >> > At one point I should use the following command >> > >> > "oneimage create ubuntuvmdk.img --datastore production" >> > >> > but I get an error and the oned.log shows this: >> > >> > ################################### >> > Wed Sep 26 15:14:14 2012 [ImM][I]: Command execution fail: >> > /srv/cloud/one/var/remotes/datastore/fs/cp >> > >> > PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjU8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC9HTkFNRT48TkFNRT5VYnVudHVfMTFfdm1kazwvTkFNRT48UEVSTUlTU0lPTlM+PE9XTkVSX1U+MTwvT1dORVJfVT48T1dORVJfTT4xPC9PV05FUl9NPjxPV05FUl9B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EPnNoYXJlZDwvVE1fTUFEPjxCQVNFX1BBVEg+L3Nydi9jbG91ZC9vbmUvdmFyL2RhdGFzdG9yZXMvMTAwPC9CQVNFX1BBVEg+PENMVVNURVJfSUQ+LTE8L0NMVVNURVJfSUQ+PENMVVNURVI+PC9DTFVTVEVSPjxJTUFHRVM+PC9JTUFHRVM+PFRFTVBMQVRFPjxEU19NQUQ+PCFbQ0RBVEFbZnNdXT48L0RTX01BRD48VE1fTUFEPjwhW0NEQVRBW3NoYXJlZF1dPjwvVE1fTUFEPjwvVEVNUExBVEU+PC9EQVRBU1RPUkU+PC9EU19EUklWRVJfQUNUSU9OX0RBVEE+ >> > 5 >> > Wed Sep 26 15:14:14 2012 [ImG][D]: Message received: LOG I 5 cp: Copying >> > local image /var/images to the image repository >> > >> > Wed Sep 26 15:14:14 2012 [ImM][I]: cp: Copying local image /var/images >> > to >> > the image repository >> > Wed Sep 26 15:14:14 2012 [ImG][D]: Message received: LOG E 5 cp: Command >> > "cp >> > -f /var/images >> > /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a" >> > failed: >> > cp: omitting directory `/var/images' >> > >> > Wed Sep 26 15:14:14 2012 [ImM][E]: cp: Command "cp -f /var/images >> > /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a" >> > failed: >> > cp: omitting directory `/var/images' >> > Wed Sep 26 15:14:14 2012 [ImG][D]: Message received: LOG E 5 Error >> > copying >> > /var/images to >> > /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a >> > >> > Wed Sep 26 15:14:14 2012 [ImM][E]: Error copying /var/images to >> > /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a >> > Wed Sep 26 15:14:14 2012 [ImG][D]: Message received: LOG I 5 ExitCode: 1 >> > >> > Wed Sep 26 15:14:14 2012 [ImM][I]: ExitCode: 1 >> > Wed Sep 26 15:14:14 2012 [ImG][D]: Message received: CP FAILURE 5 Error >> > copying /var/images to >> > /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a >> > >> > Wed Sep 26 15:14:14 2012 [ImM][E]: Error copying image in the >> > repository: >> > Error copying /var/images to >> > /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a >> > ############################ >> > >> > So I tried to figure out why it is not working and I think there is a >> > mistake with the parameter of the copy command. >> > The script uses "cp -f" to copy the content of /var/images, but as an >> > directory, shouldn't it be "cp -r" the get the content recursively? >> > The "-f" parameter is to force the copy if the destination exists, or am >> > I >> > wrong? >> > >> > I would love to hear some other opinions on this and maybe some idea how >> > I >> > can create the image without error. >> > >> > Thanks so far, Ingo >> > >> > >> > >> > >> > _______________________________________________ >> > Users mailing list >> > [email protected] >> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >> > >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > _______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
