[one-users] Create an Image and registering

Krishna R. Kantam krishna at txcorp.com
Fri Feb 4 09:42:36 PST 2011


Though I was getting the error below it seems an image was registered. Does it mean is there a problem in registering the image?

[root at localhost bin]# oneimage list
  ID     USER                 NAME TYPE              REGTIME PUB PER STAT  #VMS
   0 oneadmin       Ubuntu Desktop   OS   Jan 23, 2011 20:03 Yes  No disa     0
  15 oneadmin Ubuntu Web Developme   OS   Jan 24, 2011 00:35 Yes  No disa     0

-Krishna.


On Feb 4, 2011, at 12:35 PM, Krishna R. Kantam wrote:

> Great Thanks,
> 
> So I changed the paths and checked the permissions. The srv/cloud/var/images/ folder always shows conetents 1 item with 2GB (which is ubuntu.img) and free space available is 0 bytes.
> 
> registerubuntu.one file:
> 
> NAME          = "Ubuntu Web Development"
> PATH          = /srv/cloud/one/var/images/ubuntu.img
> PUBLIC        = YES
> DESCRIPTION   = "Ubuntu 10.04 desktop"
> 
> oned.config
> 
> IMAGE_REPOSITORY_PATH = /srv/cloud/var/images
> DEFAULT_IMAGE_TYPE    = "OS"
> DEFAULT_DEVICE_PREFIX = "hd"
> 
> 
> MANAGER_TIMER=30
> 
> HOST_MONITORING_INTERVAL = 600
> 
> VM_POLLING_INTERVAL      = 600
> 
> VM_DIR=/srv/cloud/one/var/images
> 
> SCRIPTS_REMOTE_DIR=/var/tmp/one
> 
> PORT=2633
> 
> DB = [ backend = "sqlite" ]
> 
> 
> Now I get this error message:
> 
> [root at localhost bin]# oneimage register /srv/cloud/one/var/registerubuntu.one
> Error: [ImageAllocate] Error trying to CREATE IMAGE Error inserting Image in DB.
> 
> -Krishna.
> 
> 
> On Feb 3, 2011, at 4:33 PM, Ruben S. Montero wrote:
> 
>> Hi
>> 
>> This error is because a failure copying 
>> 
>> /srv/cloud/one/var/images/ubuntu.img
>> to
>> 
>> /srv/cloud/var/images/83bfdec6884733dfc1030be8505f0717e3e21122
>> 
>> Maybe you have a misconfigured repository path in oned.conf? Check paths, permissions, free space....
>> 
>> Cheers
>> 
>> Ruben
>> 
>> 
>> On Thu, Feb 3, 2011 at 9:02 PM, Krishna R. Kantam <krishna at txcorp.com> wrote:
>> Hello everyone,
>> 
>> I have OpenNebula 2.0.1 and i am trying to create and register an image. Please see the log below and I keep getting the error message. What file extension do I need for the template? or how can I create a template please help
>> 
>> -Krishna
>> 
>> [root at localhost bin]# dd if=/dev/zero of=/srv/cloud/one/var/images/ubuntu.img bs=1M count=2000
>> 2000+0 records in
>> 2000+0 records out
>> 2097152000 bytes (2.1 GB) copied, 9.26583 seconds, 226 MB/s
>> [root at localhost bin]# mkfs.ext3 /srv/cloud/one/var/images/ubuntu.imgmke2fs 1.39 (29-May-2006)
>> /srv/cloud/one/var/images/ubuntu.img is not a block special device.
>> Proceed anyway? (y,n) y
>> Filesystem label=
>> OS type: Linux
>> Block size=4096 (log=2)
>> Fragment size=4096 (log=2)
>> 256000 inodes, 512000 blocks
>> 25600 blocks (5.00%) reserved for the super user
>> First data block=0
>> Maximum filesystem blocks=524288000
>> 16 block groups
>> 32768 blocks per group, 32768 fragments per group
>> 16000 inodes per group
>> Superblock backups stored on blocks: 
>>         32768, 98304, 163840, 229376, 294912
>> 
>> Writing inode tables: done                            
>> Creating journal (8192 blocks): done
>> Writing superblocks and filesystem accounting information: done
>> 
>> This filesystem will be automatically checked every 31 mounts or
>> 180 days, whichever comes first.  Use tune2fs -c or -i to override.
>> 
>> [root at localhost bin]# cat /srv/cloud/one/var/registerubuntu.one
>> NAME          = "Ubuntu Web Development"
>> PATH          = /srv/cloud/one/var/images/ubuntu.img
>> PUBLIC        = YES
>> DESCRIPTION   = "Ubuntu 10.04 desktop"
>> 
>> [root at localhost bin]# oneimage register /srv/cloud/one/var/registerubuntu.one
>> Error: No such file or directory - /srv/cloud/var/images/83bfdec6884733dfc1030be8505f0717e3e21122
>> 
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> 
>> 
>> 
>> 
>> -- 
>> Dr. Ruben Santiago Montero
>> Associate Professor (Profesor Titular), Complutense University of Madrid
>> 
>> URL: http://dsa-research.org/doku.php?id=people:ruben
>> Weblog: http://blog.dsa-research.org/?author=7
> 
> _______________________________________________
> 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/20110204/40f99ac4/attachment-0003.htm>


More information about the Users mailing list