[one-users] copying error during "oneimage create"

Ruben S. Montero rsmontero at opennebula.org
Thu Jun 7 15:17:42 PDT 2012


In order to prevent the registration of  "unsecure" files (e.g. oneadmin
ssh key, the whole OpenNebula db) There are certain directories
restricted to copy from (note that cp operations are made with the
oneadmin identity).

This can be configured per Datastore as explained in [1].


$ onedatastore update 100

and then add in the editor session opened by the command:

SAFE_DIRS = "/home/oneadmin/images/"



[1] http://www.opennebula.org/documentation:rel3.4:fs_ds#configuring_the_filesystem_datastores

On Thu, Jun 7, 2012 at 4:36 PM, Massimo Canonico <mex at di.unipmn.it> wrote:
> Hi all,
> after launching this command:
>  oneimage create ubuntu.oneimg --datastore 100
> I got an error:
> MESSAGE="Error copying image in the repository: Not allowed to copy image
> file /home/oneadmin/images/CentOS-6.2.img"
> I have just two machines and they do not share a filesystem, so I decided to
> create a datastore with "fs" as  TYPE and "ssh" as TM:
> [oneadmin at minicloud03 images]$ onedatastore list
>   0 system          -        0      -      shared
>   1 default         -        0      fs     shared
>  100 minicloudDS     -        1      fs     ssh
> Now, I think that the problem is in the host machine. Considering that in
> the front-end I have used the self-contained mode, which directory should be
> available in the host?
> In the host I have a user called "oneadmin" which the home directory is
> "/var/lib/one". I have created in the host a directory
> (/var/lib/one/datastores) with no luck.
> From the front-end to host (minicloud.di.unipmn.it), this command works
> without problem (no passwd is required):
> scp <file> minicloud.di.unipmn.it:/var/lib/one/
> May you explain me where the image will be copied?
> Thanks,
>  Massimo
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula

More information about the Users mailing list