[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.

VIVEK THALORA vivektpv at gmail.com
Wed Apr 29 09:04:12 PDT 2015


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,<domain
type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
        <name>one-9</name>
        <cputune>
                <shares>1024</shares>
        </cputune>
        <memory>524288</memory>
        <os>
                <type arch='x86_64'>hvm</type>
                <boot dev='cdrom'/>
        </os>
        <devices>
                <emulator>/usr/libexec/qemu-kvm</emulator>
                <disk type='file' device='cdrom'>
                        <source file='/var/lib/one//datastores/0/9/disk.0'/>
                        <target dev='hdb'/>
                        <readonly/>
                        <driver name='qemu' type='raw' cache='none'/>
                </disk>
                <disk type='file' device='disk'>
                        <source file='/var/lib/one//datastores/0/9/disk.1'/>
                        <target dev='sda'/>
                        <driver name='qemu' type='qcow2' cache='none'/>
                </disk>
                <disk type='file' device='cdrom'>
                        <source file='/var/lib/one//datastores/0/9/disk.2'/>
                        <target dev='hda'/>
                        <readonly/>
                        <driver name='qemu' type='raw'/>
                </disk>
                <interface type='bridge'>
                        <source bridge='br0'/>
                        <mac address='02:00:c0:a8:a8:a3'/>
                </interface>
                <graphics type='vnc' listen='0.0.0.0' port='5909'/>
        </devices>
        <features>
                <acpi/>
        </features>
</domain>

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: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20150429/062cd576/attachment.htm>


More information about the Users mailing list