From cyrille.duverne at euranova.eu Tue May 26 05:14:34 2015 From: cyrille.duverne at euranova.eu (Duverne, Cyrille) Date: Tue, 26 May 2015 14:14:34 +0200 Subject: [one-users] I am getting following error when i tried to install CentOS VM with an ISO file and an empty Datablock. Boot failed: Could not read from CDROM (code 0004) No bootable device. Message-ID: <1432642474.556463aa47c6f@euranova.eu> Hello Vivek, ? Could you tell which version of OpenNebula you're running ? Could you paste the template you're using to instantiate your VM ? ? If you just want to run a basic CentOS image, you can use the one available on OpenNebula's Marketplace (available from Sunstone). ? Enjoy CyD At Wednesday, 29/04/2015 on 18:04 VIVEK THALORA wrote: Hi, I am a newbie to OpenNebula, from the past one week i am trying to bring up a Virtual Machine by using an ISO file (CENTOS-6.6-Minimal) and an empty datablock. I was doing it through Opennebula Sunstone & I was referring following website (http://www.whotouchedmygun.com/2014/03/17/create-a-vm-image-in-opennebula/) for the help. But after completion when i tried to start the VM i am getting following error, Boot failed: Could not read from CDROM (code 0004) No bootable device.? In my case KVM Hypervisor,Opennebula Server all are on the same server and storage is local hard disk. Please suggest me if anything i need to modify. I couldn't get a proper solution on my internet search, or if there is any other alternate approach for the fulfillment of the same goal please suggest. Any solution from your side will be greatly appreciated. The output of file /var/lib/one/datastores/0/9/deployment.0 is, ? ? ? ? one-9 ? ? ? ? ? ? ? ? ? ? ? ? 1024 ? ? ? ? ? ? ? ? 524288 ? ? ? ? ? ? ? ? ? ? ? ? hvm ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? /usr/libexec/qemu-kvm ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? If required please find the output of the following commands, [root at virtsvr02 ~]# file /var/lib/one/datastores/0/9/* /var/lib/one/datastores/0/9/deployment.0: ASCII text /var/lib/one/datastores/0/9/disk.0: symbolic link to `/var/lib/one/datastores/1/f90ddbc1ca16ca09b5474b4d672e834e' /var/lib/one/datastores/0/9/disk.1: symbolic link to `/var/lib/one/datastores/1/88b232605a7c139ff34c977652de25b4' /var/lib/one/datastores/0/9/disk.2: # ISO 9660 CD-ROM filesystem data 'CONTEXT ' /var/lib/one/datastores/0/9/disk.2.iso: symbolic link to `/var/lib/one/datastores/0/9/disk.2' [root at virtsvr02 ~]# ls ltr /var/lib/one/datastores/0/9/* lrwxrwxrwx 1 oneadmin oneadmin 58 Apr 29 11:06 /var/lib/one/datastores/0/9/disk.0 -> /var/lib/one/datastores/1/f90ddbc1ca16ca09b5474b4d672e834e lrwxrwxrwx 1 oneadmin oneadmin 58 Apr 29 11:06 /var/lib/one/datastores/0/9/disk.1 -> /var/lib/one/datastores/1/88b232605a7c139ff34c977652de25b4 -rw-r--r- 1 oneadmin oneadmin 374784 Apr 29 11:06 /var/lib/one/datastores/0/9/disk.2 lrwxrwxrwx 1 oneadmin oneadmin 34 Apr 29 11:06 /var/lib/one/datastores/0/9/disk.2.iso > /var/lib/one/datastores/0/9/disk.2 -rw-rw-r- 1 oneadmin oneadmin 1051 Apr 29 11:06 /var/lib/one/datastores/0/9/deployment.0 [root at virtsvr02 ~]# file /var/lib/one/datastores/1/* /var/lib/one/datastores/1/88b232605a7c139ff34c977652de25b4: QEMU QCOW Image (v3), 7340032000 bytes /var/lib/one/datastores/1/c012276cfb37c4306ab33d11d722d28d: QEMU QCOW Image (v2), 10737418240 bytes /var/lib/one/datastores/1/f90ddbc1ca16ca09b5474b4d672e834e: # ISO 9660 CD-ROM filesystem data 'CentOS 7 x86_64 ' (bootable) [root at virtsvr02 ~]# ls ltr /var/lib/one/datastores/1/* -rw-r--r- 1 oneadmin oneadmin 870252544 Apr 23 05:53 /var/lib/one/datastores/1/c012276cfb37c4306ab33d11d722d28d rw-r--r- 1 oneadmin oneadmin 197120 Apr 24 09:34 /var/lib/one/datastores/1/88b232605a7c139ff34c977652de25b4 rw-r--r- 1 oneadmin oneadmin 666894336 Apr 24 09:42 /var/lib/one/datastores/1/f90ddbc1ca16ca09b5474b4d672e834e Thanks & Regards, Vivek P V -------------- next part -------------- An HTML attachment was scrubbed... URL: From Juanjose.Fuentes at sigmaaie.org Fri May 29 04:54:30 2015 From: Juanjose.Fuentes at sigmaaie.org (=?utf-8?B?SnVhbiBKb3PDqSBGdWVudGVz?=) Date: Fri, 29 May 2015 11:54:30 +0000 Subject: [one-users] DISK 0: User 0 does not own an image with name Message-ID: <0F921E11EA05B44289A5D9E1C9E6B099029A588E32@epsilon.sigmaaie.org> Hi, We?re getting an error when instantiating a template: $ onetemplate instantiate "tplCentOS7" [TemplateInstantiate] Error allocating a new virtual machine. DISK 0: User 0 does not own an image with name: diskCentOS7 . Set IMAGE_UNAME or IMAGE_UID of owner in DISK. $ onetemplate show 1 TEMPLATE 1 INFORMATION ID : 1 NAME : tplCentOS7 USER : oneadmin GROUP : oneadmin REGISTER TIME : 05/29 12:17:28 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- TEMPLATE CONTENTS CONTEXT=[ NETWORK="YES", SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ] CPU="1.0" DISK=[ IMAGE="diskCentOS7", IMAGE_ID="1", IMAGE_UID="0", IMAGE_UNAME="oneadmin" ] GRAPHICS=[ LISTEN="0.0.0.0", TYPE="vnc" ] MEMORY="512" NIC=[ NETWORK="private" ] OS=[ ARCH="x86_64" ] SUNSTONE_CAPACITY_SELECT="YES" SUNSTONE_NETWORK_SELECT="YES" VCPU="1" Tail -f oned.log Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920 UID:0 TemplatePoolInfo invoked , -2, -1, -1 Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920 UID:0 TemplatePoolInfo result SUCCESS, "1 What I'd the output of : oneimage show 1 Sent from my Verizon Wireless 4G LTE smartphone -------- Original message -------- From: Juan Jos? Fuentes Date: 05/29/2015 6:54 AM (GMT-06:00) To: users at lists.opennebula.org Subject: [one-users] DISK 0: User 0 does not own an image with name Hi, We?re getting an error when instantiating a template: $ onetemplate instantiate "tplCentOS7" [TemplateInstantiate] Error allocating a new virtual machine. DISK 0: User 0 does not own an image with name: diskCentOS7 . Set IMAGE_UNAME or IMAGE_UID of owner in DISK. $ onetemplate show 1 TEMPLATE 1 INFORMATION ID???????????? : 1 NAME?????????? : tplCentOS7 USER?????????? : oneadmin GROUP????????? : oneadmin REGISTER TIME? : 05/29 12:17:28 PERMISSIONS OWNER????????? : um- GROUP????????? : --- OTHER????????? : --- TEMPLATE CONTENTS CONTEXT=[ ? NETWORK="YES", ? SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ] CPU="1.0" DISK=[ ? IMAGE="diskCentOS7", ? IMAGE_ID="1", ? IMAGE_UID="0", ? IMAGE_UNAME="oneadmin" ] GRAPHICS=[ ? LISTEN="0.0.0.0", ? TYPE="vnc" ] MEMORY="512" NIC=[ ? NETWORK="private" ] OS=[ ? ARCH="x86_64" ] SUNSTONE_CAPACITY_SELECT="YES" SUNSTONE_NETWORK_SELECT="YES" VCPU="1" Tail -f oned.log Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920 UID:0 TemplatePoolInfo invoked , -2, -1, -1 Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920 UID:0 TemplatePoolInfo result SUCCESS, "1 From Juanjose.Fuentes at sigmaaie.org Fri May 29 05:49:16 2015 From: Juanjose.Fuentes at sigmaaie.org (=?utf-8?B?SnVhbiBKb3PDqSBGdWVudGVz?=) Date: Fri, 29 May 2015 12:49:16 +0000 Subject: [one-users] DISK 0: User 0 does not own an image with name In-Reply-To: References: Message-ID: <0F921E11EA05B44289A5D9E1C9E6B099029A5890D0@epsilon.sigmaaie.org> $ oneimage show 1 IMAGE 1 INFORMATION ID : 1 NAME : imgCentOS7 USER : oneadmin GROUP : oneadmin DATASTORE : default TYPE : OS REGISTER TIME : 05/29 12:15:45 PERSISTENT : No SOURCE : /var/lib/one//datastores/1/2b3e4040220f46e13aa3e987cc3e20a8 PATH : http://marketplace.c12g.com/appliance/53e7bf928fb81d6a69000002/download SIZE : 10G STATE : rdy RUNNING_VMS : 0 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- IMAGE TEMPLATE DEV_PREFIX="hd" DRIVER="qcow2" VIRTUAL MACHINES Thank you for your answer. Jjf. De: Robert Foote [mailto:rfoote at bpsnode.com] Enviado el: viernes, 29 de mayo de 2015 14:04 Para: Juan Jos? Fuentes; users at lists.opennebula.org Asunto: RE: [one-users] DISK 0: User 0 does not own an image with name What I'd the output of : oneimage show 1 Sent from my Verizon Wireless 4G LTE smartphone -------- Original message -------- From: Juan Jos? Fuentes Date: 05/29/2015 6:54 AM (GMT-06:00) To: users at lists.opennebula.org Subject: [one-users] DISK 0: User 0 does not own an image with name Hi, We?re getting an error when instantiating a template: $ onetemplate instantiate "tplCentOS7" [TemplateInstantiate] Error allocating a new virtual machine. DISK 0: User 0 does not own an image with name: diskCentOS7 . Set IMAGE_UNAME or IMAGE_UID of owner in DISK. $ onetemplate show 1 TEMPLATE 1 INFORMATION ID???????????? : 1 NAME?????????? : tplCentOS7 USER?????????? : oneadmin GROUP????????? : oneadmin REGISTER TIME? : 05/29 12:17:28 PERMISSIONS OWNER????????? : um- GROUP????????? : --- OTHER????????? : --- TEMPLATE CONTENTS CONTEXT=[ ? NETWORK="YES", ? SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ] CPU="1.0" DISK=[ ? IMAGE="diskCentOS7", ? IMAGE_ID="1", ? IMAGE_UID="0", ? IMAGE_UNAME="oneadmin" ] GRAPHICS=[ ? LISTEN="0.0.0.0", ? TYPE="vnc" ] MEMORY="512" NIC=[ ? NETWORK="private" ] OS=[ ? ARCH="x86_64" ] SUNSTONE_CAPACITY_SELECT="YES" SUNSTONE_NETWORK_SELECT="YES" VCPU="1" Tail -f oned.log Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920 UID:0 TemplatePoolInfo invoked , -2, -1, -1 Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920 UID:0 TemplatePoolInfo result SUCCESS, "1 References: <0F921E11EA05B44289A5D9E1C9E6B099029A5890D0@epsilon.sigmaaie.org> Message-ID: <060c01d09a0e$543f2b30$fcbd8190$@bpsnode.com> Ok, see how the disk image is called 'imgCentOS7' in oneadmin show 1, however your template is trying to use the name ' diskCentOS7' for the image name. Modify your template to use 'imgCentOS7' and you should be able to instantiate. Robert Foote Chief Technical Officer 1111 Light Street, 4th Floor Baltimore, MD 21230 Phone | 1-800-611-8763 Ext. 201 www.bpsnode.com -----Original Message----- From: Juan Jos? Fuentes [mailto:Juanjose.Fuentes at sigmaaie.org] Sent: Friday, May 29, 2015 7:49 AM To: 'Robert Foote'; users at lists.opennebula.org Subject: RE: [one-users] DISK 0: User 0 does not own an image with name $ oneimage show 1 IMAGE 1 INFORMATION ID : 1 NAME : imgCentOS7 USER : oneadmin GROUP : oneadmin DATASTORE : default TYPE : OS REGISTER TIME : 05/29 12:15:45 PERSISTENT : No SOURCE : /var/lib/one//datastores/1/2b3e4040220f46e13aa3e987cc3e20a8 PATH : http://marketplace.c12g.com/appliance/53e7bf928fb81d6a69000002/download SIZE : 10G STATE : rdy RUNNING_VMS : 0 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- IMAGE TEMPLATE DEV_PREFIX="hd" DRIVER="qcow2" VIRTUAL MACHINES Thank you for your answer. Jjf. De: Robert Foote [mailto:rfoote at bpsnode.com] Enviado el: viernes, 29 de mayo de 2015 14:04 Para: Juan Jos? Fuentes; users at lists.opennebula.org Asunto: RE: [one-users] DISK 0: User 0 does not own an image with name What I'd the output of : oneimage show 1 Sent from my Verizon Wireless 4G LTE smartphone -------- Original message -------- From: Juan Jos? Fuentes Date: 05/29/2015 6:54 AM (GMT-06:00) To: users at lists.opennebula.org Subject: [one-users] DISK 0: User 0 does not own an image with name Hi, We?re getting an error when instantiating a template: $ onetemplate instantiate "tplCentOS7" [TemplateInstantiate] Error allocating a new virtual machine. DISK 0: User 0 does not own an image with name: diskCentOS7 . Set IMAGE_UNAME or IMAGE_UID of owner in DISK. $ onetemplate show 1 TEMPLATE 1 INFORMATION ID : 1 NAME : tplCentOS7 USER : oneadmin GROUP : oneadmin REGISTER TIME : 05/29 12:17:28 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- TEMPLATE CONTENTS CONTEXT=[ NETWORK="YES", SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ] CPU="1.0" DISK=[ IMAGE="diskCentOS7", IMAGE_ID="1", IMAGE_UID="0", IMAGE_UNAME="oneadmin" ] GRAPHICS=[ LISTEN="0.0.0.0", TYPE="vnc" ] MEMORY="512" NIC=[ NETWORK="private" ] OS=[ ARCH="x86_64" ] SUNSTONE_CAPACITY_SELECT="YES" SUNSTONE_NETWORK_SELECT="YES" VCPU="1" Tail -f oned.log Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920 UID:0 TemplatePoolInfo invoked , -2, -1, -1 Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920 UID:0 TemplatePoolInfo result SUCCESS, "1 References: <0F921E11EA05B44289A5D9E1C9E6B099029A5890D0@epsilon.sigmaaie.org> <060c01d09a0e$543f2b30$fcbd8190$@bpsnode.com> Message-ID: That's why if you're hard-coding your templates like that, you should be using the "UID + Name" if you want compatability; OR you use only "Image ID" directly, as it will never fail. Also remember guys, OpenNebula Mailing List is now a Forum. -- On Fri, 29 May 2015 05:52:31 -0700, Robert Foote wrote: > Ok, see how the disk image is called 'imgCentOS7' in oneadmin show 1, > however your template is trying to use the name ' diskCentOS7' for the > image name. > > Modify your template to use 'imgCentOS7' and you should be able to > instantiate. > > Robert Foote > Chief Technical Officer > 1111 Light Street, 4th Floor > Baltimore, MD 21230 > Phone | 1-800-611-8763 Ext. 201 > www.bpsnode.com > > > -----Original Message----- > From: Juan Jos? Fuentes [mailto:Juanjose.Fuentes at sigmaaie.org] > Sent: Friday, May 29, 2015 7:49 AM > To: 'Robert Foote'; users at lists.opennebula.org > Subject: RE: [one-users] DISK 0: User 0 does not own an image with name > > > $ oneimage show 1 > IMAGE 1 INFORMATION > ID : 1 > NAME : imgCentOS7 > USER : oneadmin > GROUP : oneadmin > DATASTORE : default > TYPE : OS > REGISTER TIME : 05/29 12:15:45 > PERSISTENT : No > SOURCE : > /var/lib/one//datastores/1/2b3e4040220f46e13aa3e987cc3e20a8 > PATH : > http://marketplace.c12g.com/appliance/53e7bf928fb81d6a69000002/download > SIZE : 10G > STATE : rdy > RUNNING_VMS : 0 > > PERMISSIONS > OWNER : um- > GROUP : --- > OTHER : --- > > IMAGE TEMPLATE > DEV_PREFIX="hd" > DRIVER="qcow2" > > VIRTUAL MACHINES > > Thank you for your answer. > > Jjf. > > > > De: Robert Foote [mailto:rfoote at bpsnode.com] Enviado el: viernes, 29 de > mayo de 2015 14:04 > Para: Juan Jos? Fuentes; users at lists.opennebula.org > Asunto: RE: [one-users] DISK 0: User 0 does not own an image with name > > What I'd the output of : oneimage show 1 > > > > Sent from my Verizon Wireless 4G LTE smartphone > > > -------- Original message -------- > From: Juan Jos? Fuentes > Date: 05/29/2015 6:54 AM (GMT-06:00) > To: users at lists.opennebula.org > Subject: [one-users] DISK 0: User 0 does not own an image with name > > Hi, > > We?re getting an error when instantiating a template: > > $ onetemplate instantiate "tplCentOS7" > [TemplateInstantiate] Error allocating a new virtual machine. DISK 0: > User 0 does not own an image with name: diskCentOS7 . Set IMAGE_UNAME or > IMAGE_UID of owner in DISK. > > > $ onetemplate show 1 > TEMPLATE 1 INFORMATION > ID : 1 > NAME : tplCentOS7 > USER : oneadmin > GROUP : oneadmin > REGISTER TIME : 05/29 12:17:28 > > PERMISSIONS > OWNER : um- > GROUP : --- > OTHER : --- > > TEMPLATE CONTENTS > CONTEXT=[ > NETWORK="YES", > SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ] CPU="1.0" > DISK=[ > IMAGE="diskCentOS7", > IMAGE_ID="1", > IMAGE_UID="0", > IMAGE_UNAME="oneadmin" ] > GRAPHICS=[ > LISTEN="0.0.0.0", > TYPE="vnc" ] > MEMORY="512" > NIC=[ > NETWORK="private" ] > OS=[ > ARCH="x86_64" ] > SUNSTONE_CAPACITY_SELECT="YES" > SUNSTONE_NETWORK_SELECT="YES" > VCPU="1" > > Tail -f oned.log > Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920 UID:0 TemplatePoolInfo > invoked , -2, -1, -1 Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920 > UID:0 TemplatePoolInfo result SUCCESS, " Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7376 UID:0 TemplateInfo > invoked , 1 Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7376 UID:0 > TemplateInfo result SUCCESS, "1 Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:2784 UID:0 > TemplateInstantiate invoked , 1, "", false, "..." > Fri May 29 13:50:50 2015 [Z0][ONE][E]: DISK 0: User 0 does not own an > image with name: diskCentOS7 . Set IMAGE_UNAME or IMAGE_UID of owner in > DISK. > Fri May 29 13:50:50 2015 [Z0][ReM][E]: Req:2784 UID:0 > TemplateInstantiate result FAILURE [TemplateInstantiate] Error > allocating a new virtual machine. DISK 0: User 0 does not own an image > with name: diskCentOS7 . Set IMAGE_UNAME or IMAGE_UID of owner in DISK. > > Kind regards, > > Jjf.