I am trying to create a virtual machine with the template i created. I am not succesful, getting vnc screen "Boot failed: Could not read from CDROM (code 0004) No bootable device."

Hi,

I am a newbie to OpenNebula, from the past one week i am trying to bring up a Virtual Machine from the template i created by using an ISO file (CENTOS-6.6-Minimal) and an empty datablock. I am doing it through Opennebula Sunstone & I used following website (http://www.whotouchedmygun.com/2014/03/17/create-a-vm-image-in-opennebula/) for the help. When i instantiated 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, if there is any 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@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@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@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@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

Hi Vivek,

I opened a similar issue some days ago, Boot failed: not a bootable disk / no bootable device after installing a Ubuntu image through ON .

Basically, I needed to select as 1st boot “HD’ and as second boot “CDROOM” in the template created to read from the cdrom and install in the new image. I am not sure if you are getting the same issues but I hope it helps :smile:

Cheers,
Esteban

Hi Esteban,

Thank you so much, i am working on, the way you suggested, sorry for the
late reply. I will let you know the update.

Thanks and Regards,
Vivek P V
+91-8197995825