[one-users] Create an Image and registering

Krishna R. Kantam krishna at txcorp.com
Thu Feb 3 12:02:25 PST 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110203/86605644/attachment-0003.htm>


More information about the Users mailing list