[one-users] Image "ImageQCow2" does not exists for user 0

Erico Augusto Cavalcanti Guedes eacg at cin.ufpe.br
Wed Apr 10 10:51:58 PDT 2013


Hello again,

I managed to solve the problem reading [1]:
"Resources have to be referenced by its ID in VM Templates."

On my VM template file, on DISK section, I commented out image attribute:
DISK   = [
  type = "disk",
#  image =  "ImageQCow2",
  target   = "hda",
  driver = "qcow2",
  readonly = "no",
  IMAGE_ID = 0,
  IMAGE_UID = 0 ]

So:
$ onevm create vm_proxy.template
ID: 1

Thanks once more,

Erico.

[1] http://opennebula.org/documentation:archives:rel3.0:compatibility


2013/4/10 Erico Augusto Cavalcanti Guedes <eacg at cin.ufpe.br>

> Hello,
>
>
> 2013/4/2 Carlos Martín Sánchez <cmartin at opennebula.org>
>
>> Hi,
>>
>> Could you please paste the output of "oneimage show 0 -x"? I'm thinking
>> that maybe the name has a trailing space that can't be seen in the CLI
>> output....
>>
>>
> as asked (sorry for the delay...):
>
> <IMAGE>
>   <ID>0</ID>
>   <UID>0</UID>
>   <GID>0</GID>
>   <UNAME>oneadmin</UNAME>
>   <GNAME>oneadmin</GNAME>
>   <NAME>ImageQCow2</NAME>
>    <PERMISSIONS>
>     <OWNER_U>1</OWNER_U>
>     <OWNER_M>1</OWNER_M>
>     <OWNER_A>0</OWNER_A>
>     <GROUP_U>1</GROUP_U>
>     <GROUP_M>1</GROUP_M>
>     <GROUP_A>0</GROUP_A>
>     <OTHER_U>1</OTHER_U>
>     <OTHER_M>1</OTHER_M>
>     <OTHER_A>0</OTHER_A>
>   </PERMISSIONS>
>   <TYPE>0</TYPE>
>   <DISK_TYPE>0</DISK_TYPE>
>   <PERSISTENT>0</PERSISTENT>
>   <REGTIME>1364503159</REGTIME>
>   <SOURCE>/srv/cloud/one/var/
> datastores/100/f68b7e09767df51b1b7b94e205e24b20</SOURCE>
>   <PATH>/images/Ubuntu12.04Modificado5Empty.qcow</PATH>
>    <FSTYPE/>
>   <SIZE>3095</SIZE>
>   <STATE>1</STATE>
>   <RUNNING_VMS>0</RUNNING_VMS>
>   <CLONING_OPS>0</CLONING_OPS>
>   <CLONING_ID>-1</CLONING_ID>
>   <DATASTORE_ID>100</DATASTORE_ID>
>   <DATASTORE>ModcsDS</DATASTORE>
>   <VMS/>
>   <TEMPLATE>
>     <DEV_PREFIX><![CDATA[hd]]></DEV_PREFIX>
>   </TEMPLATE>
>  </IMAGE>
>
>
> Unfortunately, I didn't find any trailing space(do you agree?).
> Any further idea?
>
> Thanks again.
>
> Erico.
>
>
>
>> Regards
>>
>> --
>> Carlos Martín, MSc
>> Project Engineer
>> OpenNebula - The Open-source Solution for Data Center Virtualization
>> www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
>>
>>
>> On Fri, Mar 29, 2013 at 12:46 AM, Erico Augusto Cavalcanti Guedes <
>> eacg at cin.ufpe.br> wrote:
>>
>>> Dears one users,
>>>
>>> I'm updating from 3.4.1 to 3.8.3:
>>>
>>> oneadmin at mc4-frontend:~$ oneuser list
>>>   ID NAME            GROUP      AUTH           VMS
>>> MEMORY         CPU
>>>    0 oneadmin        oneadmin   core             -
>>> -           -
>>>    1 serveradmin     oneadmin   server_c         -
>>> -           -
>>> oneadmin at mc4-frontend:~$ onegroup list
>>>   ID NAME                          USERS       VMS
>>> MEMORY         CPU
>>>    0 oneadmin                          2         -
>>> -           -
>>>    1 users                             0         -
>>> -           -
>>> oneadmin at mc4-frontend:~$ oneimage list
>>>   ID USER       GROUP      NAME            DATASTORE     SIZE TYPE PER
>>> STAT RVMS
>>>    0 oneadmin   oneadmin   ImageQCow2      ModcsDS         3G OS    No
>>> rdy     0
>>> oneadmin at mc4-frontend:~$ oneimage show 0
>>> IMAGE 0
>>> INFORMATION
>>> ID             : 0
>>> NAME           : ImageQCow2
>>> USER           : oneadmin
>>> GROUP          : oneadmin
>>> DATASTORE      : ModcsDS
>>> TYPE           : OS
>>> REGISTER TIME  : 03/28 17:39:19
>>> PERSISTENT     : No
>>> SOURCE         :
>>> /srv/cloud/one/var/datastores/100/f68b7e09767df51b1b7b94e205e24b20
>>> PATH           : /images/Ubuntu12.04Modificado5Empty.qcow
>>> SIZE           : 3G
>>> STATE          : rdy
>>> RUNNING_VMS    : 0
>>>
>>> PERMISSIONS
>>>
>>> OWNER          : uma
>>> GROUP          : uma
>>> OTHER          : uma
>>>
>>> IMAGE
>>> TEMPLATE
>>> DEV_PREFIX="hd"
>>>
>>> oneadmin at mc4-frontend:~$ cat templates/vm_proxy.template
>>> CPU    = 1
>>> MEMORY = 128
>>>
>>> OS=[
>>>         boot=hd,
>>>         ARCH = i686,
>>>         driver=qcow2
>>> ]
>>>
>>> DISK   = [
>>>   type = "disk",
>>>   image =  "ImageQCow2",
>>>   target   = "hda",
>>>   driver = "qcow2",
>>>   readonly = "no",
>>>   IMAGE_ID = 0,
>>>   IMAGE_UID = 0 ]
>>>
>>> NIC    = [
>>>  # NETWORK = "Modcs",
>>>   NETWORK = "Cloud",
>>>   BRIDGE = "br0"
>>>   ]
>>>
>>> FEATURES=[ acpi="no" ]
>>>
>>> GRAPHICS = [
>>>   TYPE    = "vnc",
>>>   LISTEN  = "0.0.0.0"
>>>  ]
>>>
>>> oneadmin at mc4-frontend:~$ ls -l /images/Ubuntu12.04Modificado5Empty.qcow
>>> -rwxr-xr-x 1 oneadmin oneadmin 3244490752 Mar 28 17:28
>>> /images/Ubuntu12.04Modificado5Empty.qcow
>>>
>>> What can be missing that results in:
>>> oneadmin at mc4-frontend:~$ onevm create templates/vm_proxy.template
>>> [VirtualMachineAllocate] Error allocating a new virtual machine. Image
>>>  "ImageQCow2" does not exists for user 0
>>>
>>> Thanks a lot,
>>>
>>> Erico.
>>>
>>> _______________________________________________
>>> 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/20130410/ade8e9dc/attachment-0002.htm>


More information about the Users mailing list